Package com.aspectran.web.adapter
Class HttpServletRequestAdapter
- java.lang.Object
-
- com.aspectran.core.activity.request.AbstractRequest
-
- com.aspectran.core.adapter.AbstractRequestAdapter
-
- com.aspectran.web.adapter.HttpServletRequestAdapter
-
- All Implemented Interfaces:
RequestAdapter
public class HttpServletRequestAdapter extends AbstractRequestAdapter
The Class HttpServletRequestAdapter.- Since:
- 2011. 3. 13.
-
-
Field Summary
-
Fields inherited from class com.aspectran.core.adapter.AbstractRequestAdapter
adaptee
-
-
Constructor Summary
Constructors Constructor Description HttpServletRequestAdapter(javax.servlet.http.HttpServletRequest request)Instantiates a new HttpServletRequestAdapter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetEncoding()Returns the name of the character encoding used in the body of this request.java.util.LocalegetLocale()Returns the preferredLocale.voidsetEncoding(java.lang.String encoding)Overrides the name of the character encoding used in the body of this request.java.util.Map<java.lang.String,java.lang.Object>touchAttributes()Must be touch first, because it is lazy initialization.MultiValueMap<java.lang.String,java.lang.String>touchHeaders()Returns a map of the request headers that can be modified.ParameterMaptouchParameterMap()Must be touch first, because it is lazy initialization.-
Methods inherited from class com.aspectran.core.activity.request.AbstractRequest
addHeader, containsHeader, extractAttributes, extractParameters, getAllAttributes, getAllHeaders, getAllParameters, getAttribute, getAttributeMap, getAttributeNames, getFileParameter, getFileParameterMap, getFileParameterNames, getFileParameterValues, getHeader, getHeaderNames, getHeaders, getHeaders, getParameter, getParameterMap, getParameterNames, getParameterValues, getRequestMethod, getTimeZone, isMaxLengthExceeded, putAllAttributes, putAllParameters, removeAttribute, removeFileParameter, setAttribute, setAttributeMap, setFileParameter, setFileParameter, setHeader, setHeaders, setLocale, setMaxLengthExceeded, setParameter, setParameter, setParameterMap, setRequestMethod, setTimeZone, touchFileParameterMap
-
Methods inherited from class com.aspectran.core.adapter.AbstractRequestAdapter
getAdaptee, getRequestScope, getRequestScope
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.aspectran.core.adapter.RequestAdapter
addHeader, containsHeader, extractAttributes, extractParameters, getAllAttributes, getAllHeaders, getAllParameters, getAttribute, getAttributeNames, getFileParameter, getFileParameterNames, getFileParameterValues, getHeader, getHeaderNames, getHeaders, getParameter, getParameterNames, getParameterValues, getRequestMethod, getTimeZone, isMaxLengthExceeded, putAllAttributes, putAllParameters, removeAttribute, removeFileParameter, setAttribute, setFileParameter, setFileParameter, setHeader, setLocale, setMaxLengthExceeded, setParameter, setParameter, setTimeZone
-
-
-
-
Method Detail
-
touchHeaders
public MultiValueMap<java.lang.String,java.lang.String> touchHeaders()
Description copied from class:AbstractRequestReturns a map of the request headers that can be modified. If not yet instantiated then create a new one. Must be touch first, because it is lazy initialization.- Overrides:
touchHeadersin classAbstractRequest- Returns:
- an
MultiValueMapobject, may not benull
-
touchParameterMap
public ParameterMap touchParameterMap()
Description copied from class:AbstractRequestMust be touch first, because it is lazy initialization.- Overrides:
touchParameterMapin classAbstractRequest- Returns:
- the parameter map
-
touchAttributes
public java.util.Map<java.lang.String,java.lang.Object> touchAttributes()
Description copied from class:AbstractRequestMust be touch first, because it is lazy initialization.- Overrides:
touchAttributesin classAbstractRequest- Returns:
- the attribute map
-
getEncoding
public java.lang.String getEncoding()
Description copied from interface:RequestAdapterReturns the name of the character encoding used in the body of this request.- Specified by:
getEncodingin interfaceRequestAdapter- Overrides:
getEncodingin classAbstractRequest- Returns:
- a
Stringcontaining the name of the character encoding, ornullif the request does not specify a character encoding
-
setEncoding
public void setEncoding(java.lang.String encoding) throws java.io.UnsupportedEncodingExceptionDescription copied from interface:RequestAdapterOverrides the name of the character encoding used in the body of this request. This method must be called prior to reading request parameters or reading input using getReader(). Otherwise, it has no effect.- Specified by:
setEncodingin interfaceRequestAdapter- Overrides:
setEncodingin classAbstractRequest- Parameters:
encoding- aStringcontaining the name of the character encoding.- Throws:
java.io.UnsupportedEncodingException- if the specified encoding is invalid
-
getLocale
public java.util.Locale getLocale()
Description copied from interface:RequestAdapterReturns the preferredLocale.- Specified by:
getLocalein interfaceRequestAdapter- Overrides:
getLocalein classAbstractRequest- Returns:
- a preferred
Locale
-
-