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 java.lang.Object implements org.apache.commons.fileupload.UploadContext
-
-
Constructor Summary
Constructors Constructor Description ByteArrayUploadContext(byte[] content, java.lang.String encoding, java.lang.String contentType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
contentLength()
java.lang.String
getCharacterEncoding()
int
getContentLength()
java.lang.String
getContentType()
java.io.InputStream
getInputStream()
-
-
-
Method Detail
-
contentLength
public long contentLength()
- Specified by:
contentLength
in interfaceorg.apache.commons.fileupload.UploadContext
-
getCharacterEncoding
public java.lang.String getCharacterEncoding()
- Specified by:
getCharacterEncoding
in interfaceorg.apache.commons.fileupload.RequestContext
-
getContentType
public java.lang.String getContentType()
- Specified by:
getContentType
in interfaceorg.apache.commons.fileupload.RequestContext
-
getContentLength
public int getContentLength()
- Specified by:
getContentLength
in interfaceorg.apache.commons.fileupload.RequestContext
-
getInputStream
public java.io.InputStream getInputStream() throws java.io.IOException
- Specified by:
getInputStream
in interfaceorg.apache.commons.fileupload.RequestContext
- Throws:
java.io.IOException
-
-