Package org.iplass.mtp.webapi.definition
Class WebApiStubContent
java.lang.Object
org.iplass.mtp.webapi.definition.WebApiStubContent
- All Implemented Interfaces:
Serializable
WebAPI スタブコンテンツ
WebAPI スタブコンテンツを管理します。
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionコンテンツを取得します。ContentType を取得します。getLabel()
ラベルを取得します。void
setContent
(String content) コンテンツを設定します。void
setContentType
(String contentType) ContentType を設定します。void
ラベルを設定します。
-
Constructor Details
-
WebApiStubContent
public WebApiStubContent()
-
-
Method Details
-
getContentType
ContentType を取得します。getContent()
で取得可能なコンテンツの ContentType です。- Returns:
- contentType ContentType
-
setContentType
ContentType を設定します。getContent()
で取得可能なコンテンツの ContentType です。- Parameters:
contentType
- セットする contentType
-
getLabel
ラベルを取得します。本スタブコンテンツの識別用です。
- Returns:
- label ラベル
-
setLabel
ラベルを設定します。本スタブコンテンツの識別用です。
- Parameters:
label
- ラベル
-
getContent
コンテンツを取得します。スタブレスポンスとして返却するコンテンツです。
- Returns:
- content コンテンツ
-
setContent
コンテンツを設定します。スタブレスポンスとして返却するコンテンツです。
getContentType()
で設定した ContentType に応じたコンテンツを設定してください。- Parameters:
content
- コンテンツ
-