ccc.plugins.multipart.apache
Class JaxrsRequestContext

java.lang.Object
  extended by ccc.plugins.multipart.apache.JaxrsRequestContext
All Implemented Interfaces:
org.apache.commons.fileupload.RequestContext

public class JaxrsRequestContext
extends java.lang.Object
implements org.apache.commons.fileupload.RequestContext

A simple request context for Apache commons file-upload.

Author:
Civic Computing Ltd.

Constructor Summary
JaxrsRequestContext(java.lang.String charEncoding, int contentLength, java.lang.String contentType, java.io.InputStream inputStream)
          Constructor.
 
Method Summary
 java.lang.String getCharacterEncoding()
          
 int getContentLength()
          
 java.lang.String getContentType()
          
 java.io.InputStream getInputStream()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JaxrsRequestContext

public JaxrsRequestContext(java.lang.String charEncoding,
                           int contentLength,
                           java.lang.String contentType,
                           java.io.InputStream inputStream)
Constructor.

Parameters:
charEncoding - The character encoding of the input stream.
contentLength - The number of bytes on the input stream.
contentType - The input stream's media type.
inputStream - The stream to parse as multipart.
Method Detail

getCharacterEncoding

public java.lang.String getCharacterEncoding()

Specified by:
getCharacterEncoding in interface org.apache.commons.fileupload.RequestContext

getContentLength

public int getContentLength()

Specified by:
getContentLength in interface org.apache.commons.fileupload.RequestContext

getContentType

public java.lang.String getContentType()

Specified by:
getContentType in interface org.apache.commons.fileupload.RequestContext

getInputStream

public java.io.InputStream getInputStream()

Specified by:
getInputStream in interface org.apache.commons.fileupload.RequestContext


Copyright © 2010. All Rights Reserved.