Class PartParser.ByteArrayUploadContext

java.lang.Object
com.github.tomakehurst.wiremock.http.multipart.PartParser.ByteArrayUploadContext
All Implemented Interfaces:
org.apache.commons.fileupload.RequestContext, org.apache.commons.fileupload.UploadContext
Enclosing class:
PartParser

public static class PartParser.ByteArrayUploadContext extends Object implements org.apache.commons.fileupload.UploadContext
  • Constructor Details

    • ByteArrayUploadContext

      public ByteArrayUploadContext(byte[] content, String encoding, String contentType)
  • Method Details

    • contentLength

      public long contentLength()
      Specified by:
      contentLength in interface org.apache.commons.fileupload.UploadContext
    • 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