Interface IRequestContext

  • All Known Implementing Classes:
    HttpServletRequestContext

    public interface IRequestContext
    Represents the body of an HTTP request.
    Since:
    8.0.0
    Author:
    XIMA MEDIA GmbH
    • Method Detail

      • getAttribute

        @Nullable
        Object getAttribute​(String name)
        Retrieves the attribute for the given name.
        Parameters:
        name - to retrieve request context attribute for.
        Returns:
        the attribute or null if no attribute was found for the given name.
      • getCharacterEncoding

        String getCharacterEncoding()
        Retrieve the character encoding for the request.
        Returns:
        The character encoding for the request.
      • getContentLength

        int getContentLength()
        Retrieve the content length of the request.
        Returns:
        The content length of the request.
      • getContentType

        String getContentType()
        Retrieve the content type of the request.
        Returns:
        The content type of the request.
      • getInputStream

        InputStream getInputStream()
                            throws IOException
        Retrieve the input stream for the request.
        Returns:
        The input stream for the request.
        Throws:
        IOException - if a problem occurs.
      • getServletContext

        javax.servlet.ServletContext getServletContext()
        Retrieve the servlet context of the application.
        Returns:
        The servlet context of the application.