Class FileItemPartAdapter
- java.lang.Object
-
- com.github.tomakehurst.wiremock.http.multipart.FileItemPartAdapter
-
- All Implemented Interfaces:
Request.Part
public class FileItemPartAdapter extends java.lang.Object implements Request.Part
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.function.Function<org.apache.commons.fileupload.FileItem,Request.Part>TO_PARTS
-
Constructor Summary
Constructors Constructor Description FileItemPartAdapter(org.apache.commons.fileupload.FileItem fileItem)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BodygetBody()java.lang.StringgetFileName()HttpHeadergetHeader(java.lang.String name)HttpHeadersgetHeaders()java.lang.StringgetName()
-
-
-
Field Detail
-
TO_PARTS
public static final java.util.function.Function<org.apache.commons.fileupload.FileItem,Request.Part> TO_PARTS
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceRequest.Part
-
getFileName
public java.lang.String getFileName()
- Specified by:
getFileNamein interfaceRequest.Part
-
getHeader
public HttpHeader getHeader(java.lang.String name)
- Specified by:
getHeaderin interfaceRequest.Part
-
getHeaders
public HttpHeaders getHeaders()
- Specified by:
getHeadersin interfaceRequest.Part
-
getBody
public Body getBody()
- Specified by:
getBodyin interfaceRequest.Part
-
-