public class HttpPart extends Object implements javax.servlet.http.Part
| 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 javax.servlet.http.PartIOExceptionpublic String getContentType()
getContentType in interface javax.servlet.http.Partpublic String getHeader(String headerName)
getHeader in interface javax.servlet.http.Partpublic Collection<String> getHeaderNames()
getHeaderNames in interface javax.servlet.http.Partpublic Collection<String> getHeaders(String headerName)
getHeaders in interface javax.servlet.http.Partpublic InputStream getInputStream() throws IOException
getInputStream in interface javax.servlet.http.PartIOExceptionpublic String getName()
getName in interface javax.servlet.http.Partpublic long getSize()
getSize in interface javax.servlet.http.Partpublic void write(String fileName) throws IOException
write in interface javax.servlet.http.PartIOExceptionpublic String getFileName()
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.