Class DefaultRequestContext

    • Constructor Detail

      • DefaultRequestContext

        public DefaultRequestContext​(String characterEncoding,
                                     int contentLength,
                                     String contentType,
                                     InputStream inputStream,
                                     javax.servlet.ServletContext servletContext,
                                     Map<String,​Object> attributes)
    • Method Detail

      • getAttribute

        public Object getAttribute​(String name)
        Description copied from interface: IRequestContext
        Retrieves the attribute for the given name.
        Specified by:
        getAttribute in interface IRequestContext
        Parameters:
        name - to retrieve request context attribute for.
        Returns:
        the attribute or null if no attribute was found for the given name.
      • getContentLength

        public int getContentLength()
        Description copied from interface: IRequestContext
        Retrieve the content length of the request.
        Specified by:
        getContentLength in interface IRequestContext
        Returns:
        The content length of the request.
      • getServletContext

        public javax.servlet.ServletContext getServletContext()
        Description copied from interface: IRequestContext
        Retrieve the servlet context of the application.
        Specified by:
        getServletContext in interface IRequestContext
        Returns:
        The servlet context of the application.