Modifier and Type | Field and Description |
---|---|
static int |
NO_SIZE |
Constructor and Description |
---|
HttpPart(String partName,
byte[] content,
String contentType,
int size) |
HttpPart(String partName,
String fileName,
byte[] content,
String contentType,
int size) |
Modifier and Type | Method and Description |
---|---|
void |
addHeader(String headerName,
String headerValue) |
void |
delete() |
String |
getContentType() |
String |
getFileName() |
String |
getHeader(String headerName) |
Collection<String> |
getHeaderNames() |
Collection<String> |
getHeaders(String headerName) |
InputStream |
getInputStream() |
String |
getName() |
long |
getSize() |
void |
write(String fileName) |
public static final int NO_SIZE
public void delete() throws IOException
delete
in interface Part
IOException
public String getContentType()
getContentType
in interface Part
public Collection<String> getHeaderNames()
getHeaderNames
in interface Part
public Collection<String> getHeaders(String headerName)
getHeaders
in interface Part
public InputStream getInputStream() throws IOException
getInputStream
in interface Part
IOException
public void write(String fileName) throws IOException
write
in interface Part
IOException
public String getFileName()
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.