Package org.apache.axis2.builder
Class RequestContextImpl
java.lang.Object
org.apache.axis2.builder.RequestContextImpl
- All Implemented Interfaces:
org.apache.commons.fileupload.RequestContext
public class RequestContextImpl
extends Object
implements org.apache.commons.fileupload.RequestContext
This class is an implementation of RequestContext to generate a request
without the use of a Servlet. An example use of this class is to use the
apache commons-fileupload multipart/form-data parsing capabilities without
the need of a Servlet request object.
-
Constructor Summary
ConstructorsConstructorDescriptionRequestContextImpl(InputStream inputStream, String contentType, String characterEncoding, int contentLength) -
Method Summary
Modifier and TypeMethodDescriptionint
-
Constructor Details
-
RequestContextImpl
public RequestContextImpl(InputStream inputStream, String contentType, String characterEncoding, int contentLength)
-
-
Method Details
-
getCharacterEncoding
- Specified by:
getCharacterEncodingin interfaceorg.apache.commons.fileupload.RequestContext
-
getContentType
- Specified by:
getContentTypein interfaceorg.apache.commons.fileupload.RequestContext
-
getContentLength
public int getContentLength()- Specified by:
getContentLengthin interfaceorg.apache.commons.fileupload.RequestContext
-
getInputStream
- Specified by:
getInputStreamin interfaceorg.apache.commons.fileupload.RequestContext- Throws:
IOException
-