public abstract class AbstractRequestContext extends Object implements RequestContext
Modifier | Constructor and Description |
---|---|
protected |
AbstractRequestContext(RequestPath requestPath,
Locale defaultLocale) |
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 を取得します。 |
protected String |
getDefaultCharacterEncoding() |
Parameters |
getFormParameters()
HTTPリクエストボディに含まれるパラメータを保持する
Parameters を取得します。 |
Locale |
getLocale()
現在のリクエストにおける
Locale を取得します。 |
List<Locale> |
getLocales()
現在のリクエストにおける
Locale を優先度の順に取得します。 |
Parameters |
getMatrixParameters()
HTTPリクエストURIに含まれるマトリクスパラメータを保持する
Parameters を取得します。 |
Parameters |
getQueryParameters()
HTTPリクエストURIに含まれるクエリパラメータを保持する
Parameters を取得します。 |
RequestPath |
getRequestPath()
現在のリクエストにおける
RequestPath を取得します。 |
<T> void |
setAttribute(String name,
T value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRequestBody, getRequestHeaders, getRequestMethod
protected AbstractRequestContext(RequestPath requestPath, Locale defaultLocale)
public MediaType getContentType()
RequestContext
MediaType
として取得します。ヘッダが存在しない場合は
nullを返します。getContentType
in interface RequestContext
MediaType
public Cookies getCookies()
RequestContext
Cookies
を取得します。getCookies
in interface RequestContext
Cookies
public Parameters getQueryParameters()
RequestContext
Parameters
を取得します。getQueryParameters
in interface RequestContext
Parameters
public Parameters getMatrixParameters()
RequestContext
Parameters
を取得します。getMatrixParameters
in interface RequestContext
Parameters
public Parameters getFormParameters()
RequestContext
Parameters
を取得します。getFormParameters
in interface RequestContext
Parameters
public RequestPath getRequestPath()
RequestContext
RequestPath
を取得します。getRequestPath
in interface RequestContext
RequestPath
public List<Locale> getLocales()
RequestContext
Locale
を優先度の順に取得します。getLocales
in interface RequestContext
Locale
public Locale getLocale()
RequestContext
Locale
を取得します。getLocale
in interface RequestContext
Locale
public long getContentLength()
RequestContext
getContentLength
in interface RequestContext
public String getCharacterEncoding()
RequestContext
getCharacterEncoding
in interface RequestContext
RequestContext.getContentType()
protected String getDefaultCharacterEncoding()
public <T> T getAttribute(String name)
getAttribute
in interface RequestContext
public <T> void setAttribute(String name, T value)
setAttribute
in interface RequestContext
Copyright © 2014 Analog Web Framework Development Team. All Rights Reserved.