|
FlatServe 0.3 |
||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||
java.lang.Objectcom.small_it_office.flatserve.core.response.Response
com.small_it_office.flatserve.core.response.TextResponse
com.small_it_office.flatserve.core.response.HtmlTextResponse
public class HtmlTextResponse
HTMLテキストの応答を表すクラスです。
このクラスのオブジェクトをHTTPサービスメソッドの戻り値として返すことで、 Conetnt-Typeが"text/html"のHTTP応答を返すことができます。
親クラスのTextResponseで定義されたsetContent(String)メソッドで
HTMLを文字列で指定します。
| コンストラクタの概要 | |
|---|---|
HtmlTextResponse()
|
|
| メソッドの概要 | |
|---|---|
java.lang.String |
getContentType()
HTTP応答で送信するcontent-typeヘッダの値を返します。 デフォルトでは"text/plain"を返します。 ここでは、"text/html"を返します。 |
| クラス com.small_it_office.flatserve.core.response.TextResponse から継承されたメソッド |
|---|
getContent, getEncoding, setContent, setContentType, setEncoding, writeResponse |
| クラス com.small_it_office.flatserve.core.response.Response から継承されたメソッド |
|---|
getHeader, getHeaders, getStatusCode, sendResponse, setHeader, setStatusCode |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public HtmlTextResponse()
| メソッドの詳細 |
|---|
public java.lang.String getContentType()
TextResponse 内の getContentType
|
FlatServe 0.3 |
||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||