Class PortletRequestContext

  • All Implemented Interfaces:
    RequestContext, UploadContext

    public class PortletRequestContext
    extends Object
    implements UploadContext

    Provides access to the request information needed for a request made to a portlet.

    Since:
    FileUpload 1.1
    • Constructor Detail

      • PortletRequestContext

        public PortletRequestContext​(javax.portlet.ActionRequest request)
        Construct a context for this request.
        Parameters:
        request - The request to which this context applies.
    • Method Detail

      • getCharacterEncoding

        public String getCharacterEncoding()
        Retrieve the character encoding for the request.
        Specified by:
        getCharacterEncoding in interface RequestContext
        Returns:
        The character encoding for the request.
      • getContentType

        public String getContentType()
        Retrieve the content type of the request.
        Specified by:
        getContentType in interface RequestContext
        Returns:
        The content type of the request.
      • contentLength

        public long contentLength()
        Retrieve the content length of the request.
        Specified by:
        contentLength in interface UploadContext
        Returns:
        The content length of the request.
        Since:
        1.3
      • toString

        public String toString()
        Returns a string representation of this object.
        Overrides:
        toString in class Object
        Returns:
        a string representation of this object.