クラス StreamResultDefinition
java.lang.Object
org.iplass.mtp.web.actionmapping.definition.result.ResultDefinition
org.iplass.mtp.web.actionmapping.definition.result.StreamResultDefinition
- すべての実装されたインタフェース:
java.io.Serializable
public class StreamResultDefinition extends ResultDefinition
実行結果として、ストリーム(バイナリデータ、文字列データ)を出力するResult定義です。
- 関連項目:
- 直列化された形式
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 StreamResultDefinition()
-
メソッドの概要
修飾子とタイプ メソッド 説明 ContentDispositionType
getContentDispositionType()
java.lang.String
getContentLengthAttributeName()
java.lang.String
getContentTypeAttributeName()
java.lang.String
getFileNameAttributeName()
java.lang.String
getInputStreamAttributeName()
boolean
isAcceptRanges()
boolean
isUseContentDisposition()
void
setAcceptRanges(boolean acceptRanges)
当該のレスポンスでRangeヘッダによる分割コンテンツを可能とするか否かを設定。void
setContentDispositionType(ContentDispositionType contentDispositionType)
void
setContentLengthAttributeName(java.lang.String contentLengthAttributeName)
void
setContentTypeAttributeName(java.lang.String contentTypeAttributeName)
void
setFileNameAttributeName(java.lang.String fileNameAttributeName)
void
setInputStreamAttributeName(java.lang.String inputStreamAttributeName)
void
setUseContentDisposition(boolean useContentDisposition)
java.lang.String
summaryInfo()
各Resultのサマリー情報を返します。クラスから継承されたメソッド org.iplass.mtp.web.actionmapping.definition.result.ResultDefinition
getCommandResultStatus, getExceptionClassName, setCommandResultStatus, setExceptionClassName
-
コンストラクタの詳細
-
StreamResultDefinition
public StreamResultDefinition()
-
-
メソッドの詳細
-
isAcceptRanges
public boolean isAcceptRanges()- 戻り値:
- 関連項目:
setAcceptRanges(boolean)
-
setAcceptRanges
public void setAcceptRanges(boolean acceptRanges)当該のレスポンスでRangeヘッダによる分割コンテンツを可能とするか否かを設定。 Range対応する場合は、同一リクエストパラメータで同一の結果(コンテンツデータ)が返却されることが前提(参照透過性が必要)。 また、出力対象のコンテンツデータのサイズが既知(ストリーム対象のデータが、BinaryReference、byte[]もしくは、InputStreamかつrequestに"contentLength"のキー名でlongでサイズ指定されていること)であること。- パラメータ:
acceptRanges
-
-
getInputStreamAttributeName
public java.lang.String getInputStreamAttributeName()- 戻り値:
- inputStreamAttributeName
-
setInputStreamAttributeName
public void setInputStreamAttributeName(java.lang.String inputStreamAttributeName)- パラメータ:
inputStreamAttributeName
- セットする inputStreamAttributeName
-
getContentTypeAttributeName
public java.lang.String getContentTypeAttributeName()- 戻り値:
- contentTypeAttributeName
-
setContentTypeAttributeName
public void setContentTypeAttributeName(java.lang.String contentTypeAttributeName)- パラメータ:
contentTypeAttributeName
- セットする contentTypeAttributeName
-
getContentLengthAttributeName
public java.lang.String getContentLengthAttributeName()- 戻り値:
- contentLengthAttributeName
-
setContentLengthAttributeName
public void setContentLengthAttributeName(java.lang.String contentLengthAttributeName)- パラメータ:
contentLengthAttributeName
- セットする contentLengthAttributeName
-
isUseContentDisposition
public boolean isUseContentDisposition()- 戻り値:
- useContentDisposition
-
setUseContentDisposition
public void setUseContentDisposition(boolean useContentDisposition)- パラメータ:
useContentDisposition
- セットする useContentDisposition
-
getContentDispositionType
- 戻り値:
- contentDispositionType
-
setContentDispositionType
- パラメータ:
contentDispositionType
- セットする contentDispositionType
-
getFileNameAttributeName
public java.lang.String getFileNameAttributeName()- 戻り値:
- fileNameAttributeName
-
setFileNameAttributeName
public void setFileNameAttributeName(java.lang.String fileNameAttributeName)- パラメータ:
fileNameAttributeName
- セットする fileNameAttributeName
-
summaryInfo
public java.lang.String summaryInfo()クラスからコピーされた説明:ResultDefinition
各Resultのサマリー情報を返します。- 定義:
summaryInfo
クラス内ResultDefinition
- 戻り値:
- Resultのサマリー情報
-