Package org.restlet.ext.fileupload
Class RepresentationContext
- java.lang.Object
-
- org.restlet.ext.fileupload.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.
-
-
-
Method Detail
-
getCharacterEncoding
public java.lang.String getCharacterEncoding()
Returns the character encoding for the form.- Specified by:
getCharacterEncoding
in interfaceRequestContext
- Returns:
- The character encoding for the form.
-
getContentLength
public int getContentLength()
Returns the content length of the form.- Specified by:
getContentLength
in interfaceRequestContext
- Returns:
- The content length of the form.
-
getContentType
public java.lang.String getContentType()
Returns the content type of the form.- Specified by:
getContentType
in interfaceRequestContext
- 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 interfaceRequestContext
- Returns:
- The input stream.
- Throws:
java.io.IOException
-
-