public interface RequestContext
Modifier and Type | Method and Description |
---|---|
<T> T |
getAttribute(String name) |
String |
getCharacterEncoding()
HTTPリクエストの文字エンコーディングを取得します。
エンコーディングを特定できない場合はUTF-8を返します。
|
long |
getContentLength()
HTTPリクエストヘッダ Content-Length に含まれるリクエスト長を
取得します。ヘッダが存在しない場合は0を返します。
|
MediaType |
getContentType()
HTTPリクエストヘッダ Content-Type に含まれるメディアタイプを
MediaType として取得します。ヘッダが存在しない場合は
nullを返します。 |
Cookies |
getCookies()
HTTPクッキーを保持する
Cookies を取得します。 |
Parameters |
getFormParameters()
HTTPリクエストボディに含まれるパラメータを保持する
Parameters を取得します。 |
Locale |
getLocale()
現在のリクエストにおける
Locale を取得します。 |
List<Locale> |
getLocales()
現在のリクエストにおける
Locale を優先度の順に取得します。 |
Parameters |
getMatrixParameters()
HTTPリクエストURIに含まれるマトリクスパラメータを保持する
Parameters を取得します。 |
Parameters |
getQueryParameters()
HTTPリクエストURIに含まれるクエリパラメータを保持する
Parameters を取得します。 |
InputStream |
getRequestBody()
リクエストボディを保持する
InputStream を取得します。 |
Headers |
getRequestHeaders()
HTTPリクエストヘッダを保持する
Headers を取得します。 |
String |
getRequestMethod() |
RequestPath |
getRequestPath()
現在のリクエストにおける
RequestPath を取得します。 |
<T> void |
setAttribute(String name,
T value) |
Parameters getFormParameters()
Parameters
を取得します。Parameters
Parameters getQueryParameters()
Parameters
を取得します。Parameters
Parameters getMatrixParameters()
Parameters
を取得します。Parameters
InputStream getRequestBody() throws IOException
InputStream
を取得します。InputStream
IOException
- I/Oエラーが発生した場合MediaType getContentType()
MediaType
として取得します。ヘッダが存在しない場合は
nullを返します。MediaType
RequestPath getRequestPath()
RequestPath
を取得します。RequestPath
long getContentLength()
String getCharacterEncoding()
getContentType()
String getRequestMethod()
<T> T getAttribute(String name)
<T> void setAttribute(String name, T value)
Copyright © 2011-2015 Analog Web Framework Development Team. All Rights Reserved.