Class StreamResultDefinition
- java.lang.Object
-
- org.iplass.mtp.web.actionmapping.definition.result.ResultDefinition
-
- org.iplass.mtp.web.actionmapping.definition.result.StreamResultDefinition
-
- All Implemented Interfaces:
java.io.Serializable
public class StreamResultDefinition extends ResultDefinition
実行結果として、ストリーム(バイナリデータ、文字列データ)を出力するResult定義です。- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StreamResultDefinition()
-
Method Summary
Modifier and Type Method Description ContentDispositionTypegetContentDispositionType()java.lang.StringgetContentLengthAttributeName()java.lang.StringgetContentTypeAttributeName()java.lang.StringgetFileNameAttributeName()java.lang.StringgetInputStreamAttributeName()booleanisAcceptRanges()booleanisUseContentDisposition()voidsetAcceptRanges(boolean acceptRanges)当該のレスポンスでRangeヘッダによる分割コンテンツを可能とするか否かを設定。 Range対応する場合は、同一リクエストパラメータで同一の結果(コンテンツデータ)が返却されることが前提(参照透過性が必要)。 また、出力対象のコンテンツデータのサイズが既知(ストリーム対象のデータが、BinaryReference、byte[]もしくは、InputStreamかつrequestに"contentLength"のキー名でlongでサイズ指定されていること)であること。voidsetContentDispositionType(ContentDispositionType contentDispositionType)voidsetContentLengthAttributeName(java.lang.String contentLengthAttributeName)voidsetContentTypeAttributeName(java.lang.String contentTypeAttributeName)voidsetFileNameAttributeName(java.lang.String fileNameAttributeName)voidsetInputStreamAttributeName(java.lang.String inputStreamAttributeName)voidsetUseContentDisposition(boolean useContentDisposition)java.lang.StringsummaryInfo()各Resultのサマリー情報を返します。-
Methods inherited from class org.iplass.mtp.web.actionmapping.definition.result.ResultDefinition
getCommandResultStatus, getExceptionClassName, setCommandResultStatus, setExceptionClassName
-
-
-
-
Method Detail
-
isAcceptRanges
public boolean isAcceptRanges()
- Returns:
- See Also:
setAcceptRanges(boolean)
-
setAcceptRanges
public void setAcceptRanges(boolean acceptRanges)
当該のレスポンスでRangeヘッダによる分割コンテンツを可能とするか否かを設定。 Range対応する場合は、同一リクエストパラメータで同一の結果(コンテンツデータ)が返却されることが前提(参照透過性が必要)。 また、出力対象のコンテンツデータのサイズが既知(ストリーム対象のデータが、BinaryReference、byte[]もしくは、InputStreamかつrequestに"contentLength"のキー名でlongでサイズ指定されていること)であること。- Parameters:
acceptRanges-
-
getInputStreamAttributeName
public java.lang.String getInputStreamAttributeName()
- Returns:
- inputStreamAttributeName
-
setInputStreamAttributeName
public void setInputStreamAttributeName(java.lang.String inputStreamAttributeName)
- Parameters:
inputStreamAttributeName- セットする inputStreamAttributeName
-
getContentTypeAttributeName
public java.lang.String getContentTypeAttributeName()
- Returns:
- contentTypeAttributeName
-
setContentTypeAttributeName
public void setContentTypeAttributeName(java.lang.String contentTypeAttributeName)
- Parameters:
contentTypeAttributeName- セットする contentTypeAttributeName
-
getContentLengthAttributeName
public java.lang.String getContentLengthAttributeName()
- Returns:
- contentLengthAttributeName
-
setContentLengthAttributeName
public void setContentLengthAttributeName(java.lang.String contentLengthAttributeName)
- Parameters:
contentLengthAttributeName- セットする contentLengthAttributeName
-
isUseContentDisposition
public boolean isUseContentDisposition()
- Returns:
- useContentDisposition
-
setUseContentDisposition
public void setUseContentDisposition(boolean useContentDisposition)
- Parameters:
useContentDisposition- セットする useContentDisposition
-
getContentDispositionType
public ContentDispositionType getContentDispositionType()
- Returns:
- contentDispositionType
-
setContentDispositionType
public void setContentDispositionType(ContentDispositionType contentDispositionType)
- Parameters:
contentDispositionType- セットする contentDispositionType
-
getFileNameAttributeName
public java.lang.String getFileNameAttributeName()
- Returns:
- fileNameAttributeName
-
setFileNameAttributeName
public void setFileNameAttributeName(java.lang.String fileNameAttributeName)
- Parameters:
fileNameAttributeName- セットする fileNameAttributeName
-
summaryInfo
public java.lang.String summaryInfo()
Description copied from class:ResultDefinition各Resultのサマリー情報を返します。- Specified by:
summaryInfoin classResultDefinition- Returns:
- Resultのサマリー情報
-
-