Class 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

      Constructors 
      Constructor Description
      TowRequestAdapter​(com.aspectran.core.context.rule.type.MethodType requestMethod, io.undertow.server.HttpServerExchange exchange)
      Instantiates a new TowRequestAdapter.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getBody()  
      <T extends com.aspectran.core.util.apon.Parameters>
      T
      getBodyAsParameters​(java.lang.Class<T> requiredType)  
      java.lang.String getEncoding()  
      com.aspectran.core.util.MultiValueMap<java.lang.String,​java.lang.String> getHeaderMap()  
      java.io.InputStream getInputStream()  
      com.aspectran.web.support.http.MediaType getMediaType()
      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 Detail

      • TowRequestAdapter

        public TowRequestAdapter​(com.aspectran.core.context.rule.type.MethodType requestMethod,
                                 io.undertow.server.HttpServerExchange exchange)
        Instantiates a new TowRequestAdapter.
        Parameters:
        requestMethod - the request method
        exchange - the adaptee object
    • Method Detail

      • getHeaderMap

        public com.aspectran.core.util.MultiValueMap<java.lang.String,​java.lang.String> getHeaderMap()
        Specified by:
        getHeaderMap in interface com.aspectran.core.adapter.RequestAdapter
        Overrides:
        getHeaderMap in class com.aspectran.core.activity.request.AbstractRequest
      • getEncoding

        public java.lang.String getEncoding()
        Specified by:
        getEncoding in interface com.aspectran.core.adapter.RequestAdapter
        Overrides:
        getEncoding in class com.aspectran.core.activity.request.AbstractRequest
      • getInputStream

        public java.io.InputStream getInputStream()
                                           throws java.io.IOException
        Specified by:
        getInputStream in interface com.aspectran.core.adapter.RequestAdapter
        Overrides:
        getInputStream in class com.aspectran.core.activity.request.AbstractRequest
        Throws:
        java.io.IOException
      • getBody

        public java.lang.String getBody()
        Specified by:
        getBody in interface com.aspectran.core.adapter.RequestAdapter
        Overrides:
        getBody in class com.aspectran.core.activity.request.AbstractRequest
      • getBodyAsParameters

        public <T extends com.aspectran.core.util.apon.Parameters> T getBodyAsParameters​(java.lang.Class<T> requiredType)
                                                                                  throws com.aspectran.core.activity.request.RequestParseException
        Specified by:
        getBodyAsParameters in interface com.aspectran.core.adapter.RequestAdapter
        Overrides:
        getBodyAsParameters in class com.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()