org.restlet.ext.fileupload
Class RepresentationContext

java.lang.Object
  extended by org.restlet.ext.fileupload.RepresentationContext
All Implemented Interfaces:
RequestContext

public class RepresentationContext
extends Object
implements RequestContext

Provides access to the representation information needed by the FileUpload processor.

Author:
Jerome Louvel

Constructor Summary
RepresentationContext(Representation multipartForm)
          Constructor.
 
Method Summary
 String getCharacterEncoding()
          Returns the character encoding for the form.
 int getContentLength()
          Returns the content length of the form.
 String getContentType()
          Returns the content type of the form.
 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(Representation multipartForm)
Constructor.

Parameters:
multipartForm - The multipart form to parse.
Method Detail

getCharacterEncoding

public 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 String getContentType()
Returns the content type of the form.

Specified by:
getContentType in interface RequestContext
Returns:
The content type of the form.

getInputStream

public InputStream getInputStream()
                           throws IOException
Returns the input stream.

Specified by:
getInputStream in interface RequestContext
Returns:
The input stream.
Throws:
IOException


Copyright © 2005-2013 Restlet.