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 Details

    • RequestContextImpl

      public RequestContextImpl(InputStream inputStream, String contentType, String characterEncoding, int contentLength)
  • Method Details

    • getCharacterEncoding

      public String getCharacterEncoding()
      Specified by:
      getCharacterEncoding in interface org.apache.commons.fileupload.RequestContext
    • getContentType

      public String getContentType()
      Specified by:
      getContentType in interface org.apache.commons.fileupload.RequestContext
    • getContentLength

      public int getContentLength()
      Specified by:
      getContentLength in interface org.apache.commons.fileupload.RequestContext
    • getInputStream

      public InputStream getInputStream() throws IOException
      Specified by:
      getInputStream in interface org.apache.commons.fileupload.RequestContext
      Throws:
      IOException