Class RepresentationContext

  • All Implemented Interfaces:
    org.apache.commons.fileupload.RequestContext

    public class RepresentationContext
    extends java.lang.Object
    implements org.apache.commons.fileupload.RequestContext
    Provides access to the representation information needed by the FileUpload processor.
    • Field Detail

      • multipartForm

        private volatile Representation multipartForm
        The representation to adapt.
    • Constructor Detail

      • RepresentationContext

        public RepresentationContext​(Representation multipartForm)
        Constructor.
        Parameters:
        multipartForm - The multipart form to parse.
    • Method Detail

      • getCharacterEncoding

        public java.lang.String getCharacterEncoding()
        Returns the character encoding for the form.
        Specified by:
        getCharacterEncoding in interface org.apache.commons.fileupload.RequestContext
        Returns:
        The character encoding for the form.
      • getContentLength

        public int getContentLength()
        Returns the content length of the form.
        Specified by:
        getContentLength in interface org.apache.commons.fileupload.RequestContext
        Returns:
        The content length of the form.
      • getContentType

        public java.lang.String getContentType()
        Returns the content type of the form.
        Specified by:
        getContentType in interface org.apache.commons.fileupload.RequestContext
        Returns:
        The content type of the form.
      • getInputStream

        public java.io.InputStream getInputStream()
                                           throws java.io.IOException
        Returns the input stream.
        Specified by:
        getInputStream in interface org.apache.commons.fileupload.RequestContext
        Returns:
        The input stream.
        Throws:
        java.io.IOException