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

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

    Modifier and Type
    Method
    Description
     
    <T extends com.aspectran.utils.apon.Parameters>
    T
    getBodyAsParameters(Class<T> requiredType)
     
     
    com.aspectran.utils.MultiValueMap<String,String>
     
     
    com.aspectran.web.support.http.MediaType
    Gets the media type value included in the Content-Type header.
    void
     
    void
    preparse(TowRequestAdapter requestAdapter)
     

    Methods inherited from class com.aspectran.core.adapter.AbstractRequestAdapter

    getAdaptee, getRequestScope, hasRequestScope

    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

      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 Details

    • getHeaderMap

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

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

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

      public 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.utils.apon.Parameters> T getBodyAsParameters(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()
    • preparse

      public void preparse(TowRequestAdapter requestAdapter)