Class RepresentationContext

  • All Implemented Interfaces:
    RequestContext

    public class RepresentationContext
    extends java.lang.Object
    implements RequestContext
    Provides access to the representation information needed by the FileUpload processor.
    Author:
    Jerome Louvel
    • Constructor Summary

      Constructors 
      Constructor Description
      RepresentationContext​(org.restlet.representation.Representation multipartForm)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getCharacterEncoding()
      Returns the character encoding for the form.
      int getContentLength()
      Returns the content length of the form.
      java.lang.String getContentType()
      Returns the content type of the form.
      java.io.InputStream getInputStream()
      Returns the input stream.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RepresentationContext

        public RepresentationContext​(org.restlet.representation.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 RequestContext
        Returns:
        The character encoding for the form.
      • getContentLength

        public int getContentLength()
        Returns the content length of the form.
        Specified by:
        getContentLength in interface 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 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 RequestContext
        Returns:
        The input stream.
        Throws:
        java.io.IOException