Package com.aspectran.undertow.adapter
Class TowRequestAdapter
java.lang.Object
com.aspectran.core.activity.request.AbstractRequest
com.aspectran.core.adapter.AbstractRequestAdapter
com.aspectran.undertow.adapter.TowRequestAdapter
- All Implemented Interfaces:
RequestAdapter
The Class TowRequestAdapter.
Created: 2019-07-27
-
Field Summary
Fields inherited from class com.aspectran.core.adapter.AbstractRequestAdapter
adaptee
-
Constructor Summary
ConstructorsConstructorDescriptionTowRequestAdapter
(MethodType requestMethod, io.undertow.server.HttpServerExchange exchange) Instantiates a new TowRequestAdapter. -
Method Summary
Modifier and TypeMethodDescriptiongetBody()
<T extends Parameters>
TgetBodyAsParameters
(Class<T> requiredType) Returns the name of the character encoding used in the body of this request.Returns a map of the request headers that can be modified.Gets the media type value included in the Content-Type header.void
preparse()
void
preparse
(TowRequestAdapter requestAdapter) Methods inherited from class com.aspectran.core.adapter.AbstractRequestAdapter
getAdaptee, getRequestScope, getRequestScope
Methods inherited from class com.aspectran.core.activity.request.AbstractRequest
addHeader, containsHeader, extractAttributes, extractParameters, getAllParameters, getAttribute, getAttributeMap, getAttributeNames, getBodyAsParameters, getFileParameter, getFileParameterMap, getFileParameterNames, getFileParameterValues, getHeader, getHeaderNames, getHeaderValues, getLocale, getMaxRequestSize, getParameter, getParameterMap, getParameterNames, getParameters, getParameters, getParameterValues, getRequestMethod, getTimeZone, hasAttributes, hasFileParameters, hasHeaders, hasParameters, putAllAttributes, putAllFileParameters, putAllParameters, putAllParameters, removeAttribute, removeFileParameter, setAttribute, setAttributeMap, setBody, setEncoding, setFileParameter, setFileParameter, setHeader, setHeaderMap, setLocale, setMaxRequestSize, setParameter, setParameter, setParameterMap, setTimeZone
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, getAllParameters, getAttribute, getAttributeMap, getAttributeNames, getBodyAsParameters, getFileParameter, getFileParameterNames, getFileParameterValues, getHeader, getHeaderNames, getHeaderValues, getLocale, getMaxRequestSize, getParameter, getParameterMap, getParameterNames, getParameters, getParameters, getParameterValues, getRequestMethod, getTimeZone, hasAttributes, hasFileParameters, hasHeaders, hasParameters, putAllAttributes, putAllFileParameters, putAllParameters, putAllParameters, removeAttribute, removeFileParameter, setAttribute, setBody, setEncoding, setFileParameter, setFileParameter, setHeader, setLocale, setMaxRequestSize, setParameter, setParameter, setTimeZone
-
Constructor Details
-
TowRequestAdapter
Instantiates a new TowRequestAdapter.- Parameters:
requestMethod
- the request methodexchange
- the adaptee object
-
-
Method Details
-
getHeaderMap
Description copied from class:AbstractRequest
Returns a map of the request headers that can be modified. If not yet instantiated then create a new one.- Specified by:
getHeaderMap
in interfaceRequestAdapter
- Overrides:
getHeaderMap
in classAbstractRequest
- Returns:
- an
MultiValueMap
object, may not benull
-
getEncoding
Description copied from interface:RequestAdapter
Returns the name of the character encoding used in the body of this request.- Specified by:
getEncoding
in interfaceRequestAdapter
- Overrides:
getEncoding
in classAbstractRequest
- Returns:
- a
String
containing the name of the character encoding, ornull
if the request does not specify a character encoding
-
getInputStream
- Specified by:
getInputStream
in interfaceRequestAdapter
- Overrides:
getInputStream
in classAbstractRequest
- Throws:
IOException
-
getBody
- Specified by:
getBody
in interfaceRequestAdapter
- Overrides:
getBody
in classAbstractRequest
-
getBodyAsParameters
public <T extends Parameters> T getBodyAsParameters(Class<T> requiredType) throws RequestParseException - Specified by:
getBodyAsParameters
in interfaceRequestAdapter
- Overrides:
getBodyAsParameters
in classAbstractRequest
- Throws:
RequestParseException
-
getMediaType
Gets the media type value included in the Content-Type header. -
preparse
public void preparse() -
preparse
-