public class MockMultiPart extends Object implements javax.servlet.http.Part
| Constructor and Description |
|---|
MockMultiPart(com.intuit.karate.http.MultiPartItem item) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete() |
String |
getContentType() |
String |
getHeader(String string) |
Collection<String> |
getHeaderNames() |
Collection<String> |
getHeaders(String string) |
InputStream |
getInputStream() |
String |
getName() |
long |
getSize() |
String |
getValue() |
boolean |
isFile() |
void |
write(String string) |
public boolean isFile()
public String getValue()
public InputStream getInputStream() throws IOException
getInputStream in interface javax.servlet.http.PartIOExceptionpublic String getContentType()
getContentType in interface javax.servlet.http.Partpublic String getName()
getName in interface javax.servlet.http.Partpublic long getSize()
getSize in interface javax.servlet.http.Partpublic void write(String string) throws IOException
write in interface javax.servlet.http.PartIOExceptionpublic void delete()
throws IOException
delete in interface javax.servlet.http.PartIOExceptionpublic String getHeader(String string)
getHeader in interface javax.servlet.http.Partpublic Collection<String> getHeaders(String string)
getHeaders in interface javax.servlet.http.Partpublic Collection<String> getHeaderNames()
getHeaderNames in interface javax.servlet.http.PartCopyright © 2017. All rights reserved.