Class PwcCoyoteRequest

  • All Implemented Interfaces:
    jakarta.servlet.http.HttpServletRequest, jakarta.servlet.ServletRequest, HttpRequest, Request

    public class PwcCoyoteRequest
    extends Request
    Customized version of the Tomcat 5 CoyoteRequest This is required for supporting Web Programmatic Login and setting the request encoding (charset).
    Author:
    Jeanfrancois Arcand, Jan Luehe
    • Constructor Detail

      • PwcCoyoteRequest

        public PwcCoyoteRequest()
    • Method Detail

      • setContext

        public void setContext​(Context ctx)
        Description copied from class: Request
        Set the Context within which this Request is being processed. This must be called as soon as the appropriate Context is identified, because it identifies the value to be returned by getContextPath(), and thus enables parsing of the request URI.
        Specified by:
        setContext in interface Request
        Overrides:
        setContext in class Request
        Parameters:
        ctx - The newly associated Context
      • getReader

        public BufferedReader getReader()
                                 throws IOException
        Description copied from class: Request
        Read the Reader wrapping the input stream for this Request. The default implementation wraps a BufferedReader around the servlet input stream returned by createInputStream().
        Specified by:
        getReader in interface jakarta.servlet.ServletRequest
        Overrides:
        getReader in class Request
        Throws:
        IOException - if an input/output error occurs
      • getCharacterEncoding

        public String getCharacterEncoding()
        Return the character encoding for this Request. If there is no request charset specified in the request, determines and sets the request charset using the locale-charset-info, locale-charset-map, and parameter-encoding elements provided in the sun-web.xml.
        Specified by:
        getCharacterEncoding in interface jakarta.servlet.ServletRequest
        Overrides:
        getCharacterEncoding in class Request
      • configureSessionCookie

        public void configureSessionCookie​(jakarta.servlet.http.Cookie cookie)
        Description copied from class: Request
        Configures the given JSESSIONID cookie.
        Overrides:
        configureSessionCookie in class Request
        Parameters:
        cookie - The JSESSIONID cookie to be configured
      • recycle

        public void recycle()
        Description copied from class: Request
        Release all object references, and initialize instance variables, in preparation for reuse of this object.
        Specified by:
        recycle in interface Request
        Overrides:
        recycle in class Request
      • getPostBody

        protected byte[] getPostBody()
                              throws IOException
        Gets the POST body of this request.
        Overrides:
        getPostBody in class Request
        Returns:
        The POST body of this request
        Throws:
        IOException
      • makeCookie

        protected jakarta.servlet.http.Cookie makeCookie​(org.glassfish.grizzly.http.Cookie scookie)
        Overrides:
        makeCookie in class Request