Class HttpServletRequestAdapter

    • Constructor Detail

      • HttpServletRequestAdapter

        public HttpServletRequestAdapter​(MethodType requestMethod,
                                         javax.servlet.http.HttpServletRequest request)
        Instantiates a new HttpServletRequestAdapter.
        Parameters:
        requestMethod - the request method
        request - the activity request wrapper
    • Method Detail

      • getEncoding

        public java.lang.String getEncoding()
        Description copied from interface: RequestAdapter
        Returns the name of the character encoding used in the body of this request.
        Specified by:
        getEncoding in interface RequestAdapter
        Overrides:
        getEncoding in class AbstractRequest
        Returns:
        a String containing the name of the character encoding, or null if the request does not specify a character encoding
      • setEncoding

        public void setEncoding​(java.lang.String encoding)
                         throws java.io.UnsupportedEncodingException
        Description copied from interface: RequestAdapter
        Overrides 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:
        setEncoding in interface RequestAdapter
        Overrides:
        setEncoding in class AbstractRequest
        Parameters:
        encoding - a String containing the name of the character encoding.
        Throws:
        java.io.UnsupportedEncodingException - if the specified encoding is invalid
      • getMediaType

        public MediaType getMediaType()
        Gets the media type value included in the Content-Type header.
      • preparse

        public void preparse()