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:
com.aspectran.core.adapter.RequestAdapter
public class TowRequestAdapter
extends com.aspectran.core.adapter.AbstractRequestAdapter
The Class TowRequestAdapter.
Created: 2019-07-27
-
Field Summary
Fields inherited from class com.aspectran.core.adapter.AbstractRequestAdapter
adaptee -
Constructor Summary
ConstructorsConstructorDescriptionTowRequestAdapter(com.aspectran.core.context.rule.type.MethodType requestMethod, io.undertow.server.HttpServerExchange exchange) Instantiates a new TowRequestAdapter. -
Method Summary
Modifier and TypeMethodDescriptiongetBody()<T extends com.aspectran.utils.apon.Parameters>
TgetBodyAsParameters(Class<T> requiredType) com.aspectran.web.support.http.MediaTypeGets the media type value included in the Content-Type header.voidpreparse()voidpreparse(TowRequestAdapter requestAdapter) Methods inherited from class com.aspectran.core.adapter.AbstractRequestAdapter
getAdaptee, getRequestScope, hasRequestScopeMethods 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, setTimeZoneMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
public TowRequestAdapter(com.aspectran.core.context.rule.type.MethodType requestMethod, io.undertow.server.HttpServerExchange exchange) Instantiates a new TowRequestAdapter.- Parameters:
requestMethod- the request methodexchange- the adaptee object
-
-
Method Details
-
getHeaderMap
- Specified by:
getHeaderMapin interfacecom.aspectran.core.adapter.RequestAdapter- Overrides:
getHeaderMapin classcom.aspectran.core.activity.request.AbstractRequest
-
getEncoding
- Specified by:
getEncodingin interfacecom.aspectran.core.adapter.RequestAdapter- Overrides:
getEncodingin classcom.aspectran.core.activity.request.AbstractRequest
-
getInputStream
- Specified by:
getInputStreamin interfacecom.aspectran.core.adapter.RequestAdapter- Overrides:
getInputStreamin classcom.aspectran.core.activity.request.AbstractRequest- Throws:
IOException
-
getBody
- Specified by:
getBodyin interfacecom.aspectran.core.adapter.RequestAdapter- Overrides:
getBodyin classcom.aspectran.core.activity.request.AbstractRequest
-
getBodyAsParameters
public <T extends com.aspectran.utils.apon.Parameters> T getBodyAsParameters(Class<T> requiredType) throws com.aspectran.core.activity.request.RequestParseException - Specified by:
getBodyAsParametersin interfacecom.aspectran.core.adapter.RequestAdapter- Overrides:
getBodyAsParametersin classcom.aspectran.core.activity.request.AbstractRequest- Throws:
com.aspectran.core.activity.request.RequestParseException
-
getMediaType
public com.aspectran.web.support.http.MediaType getMediaType()Gets the media type value included in the Content-Type header. -
preparse
public void preparse() -
preparse
-