Package org.analogweb.core
Class AbstractRequestContext
- java.lang.Object
-
- org.analogweb.core.AbstractRequestContext
-
- All Implemented Interfaces:
RequestContext
public abstract class AbstractRequestContext extends Object implements RequestContext
- Author:
- snowgoose
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractRequestContext(RequestPath requestPath, Locale defaultLocale)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
getAttribute(String name)
String
getCharacterEncoding()
long
getContentLength()
MediaType
getContentType()
Cookies
getCookies()
protected String
getDefaultCharacterEncoding()
Parameters
getFormParameters()
Locale
getLocale()
List<Locale>
getLocales()
Parameters
getMatrixParameters()
Parameters
getQueryParameters()
RequestPath
getRequestPath()
<T> void
setAttribute(String name, T value)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.analogweb.RequestContext
getRequestBody, getRequestHeaders, getRequestMethod
-
-
-
-
Constructor Detail
-
AbstractRequestContext
protected AbstractRequestContext(RequestPath requestPath, Locale defaultLocale)
-
-
Method Detail
-
getContentType
public MediaType getContentType()
- Specified by:
getContentType
in interfaceRequestContext
-
getCookies
public Cookies getCookies()
- Specified by:
getCookies
in interfaceRequestContext
-
getQueryParameters
public Parameters getQueryParameters()
- Specified by:
getQueryParameters
in interfaceRequestContext
-
getMatrixParameters
public Parameters getMatrixParameters()
- Specified by:
getMatrixParameters
in interfaceRequestContext
-
getFormParameters
public Parameters getFormParameters()
- Specified by:
getFormParameters
in interfaceRequestContext
-
getRequestPath
public RequestPath getRequestPath()
- Specified by:
getRequestPath
in interfaceRequestContext
-
getLocales
public List<Locale> getLocales()
- Specified by:
getLocales
in interfaceRequestContext
-
getLocale
public Locale getLocale()
- Specified by:
getLocale
in interfaceRequestContext
-
getContentLength
public long getContentLength()
- Specified by:
getContentLength
in interfaceRequestContext
-
getCharacterEncoding
public String getCharacterEncoding()
- Specified by:
getCharacterEncoding
in interfaceRequestContext
-
getDefaultCharacterEncoding
protected String getDefaultCharacterEncoding()
-
getAttribute
public <T> T getAttribute(String name)
- Specified by:
getAttribute
in interfaceRequestContext
-
setAttribute
public <T> void setAttribute(String name, T value)
- Specified by:
setAttribute
in interfaceRequestContext
-
-