public class ByteArrayPart
extends com.ning.http.client.multipart.ByteArrayPart
Modifier and Type | Field and Description |
---|---|
protected String |
customContentDisposition |
protected String |
customContentType |
Constructor and Description |
---|
ByteArrayPart(String name,
byte[] bytes) |
ByteArrayPart(String name,
byte[] bytes,
String contentType) |
ByteArrayPart(String name,
byte[] bytes,
String contentType,
Charset charset) |
ByteArrayPart(String name,
byte[] bytes,
String contentType,
Charset charset,
String fileName) |
ByteArrayPart(String name,
byte[] bytes,
String contentType,
Charset charset,
String fileName,
String contentId) |
ByteArrayPart(String name,
byte[] bytes,
String contentType,
Charset charset,
String fileName,
String contentId,
String transferEncoding) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasCustomContentDisposition() |
boolean |
hasCustomContentType() |
void |
setCustomContentDisposition(String customContentDisposition) |
void |
setCustomContentType(String customContentType) |
protected void |
visitContentTypeHeader(com.ning.http.client.multipart.PartVisitor visitor) |
protected void |
visitDispositionHeader(com.ning.http.client.multipart.PartVisitor visitor) |
getBytes, getDataLength, sendData, write
generateFileEnd, generateFileStart, getFileName, getStalledTime, setFileName, setStalledTime, toString
addCustomHeader, getCharset, getContentId, getContentType, getDispositionType, getName, getTransferEncoding, length, setCustomHeaders, setDispositionType, visitContentIdHeader, visitCustomHeaders, visitEnd, visitEndOfHeaders, visitStart, visitTransferEncodingHeader, write
protected String customContentDisposition
protected String customContentType
public ByteArrayPart(String name, byte[] bytes)
public ByteArrayPart(String name, byte[] bytes, String contentType, Charset charset, String fileName)
public ByteArrayPart(String name, byte[] bytes, String contentType, Charset charset, String fileName, String contentId)
protected void visitDispositionHeader(com.ning.http.client.multipart.PartVisitor visitor) throws IOException
visitDispositionHeader
in class com.ning.http.client.multipart.AbstractFilePart
IOException
protected void visitContentTypeHeader(com.ning.http.client.multipart.PartVisitor visitor) throws IOException
visitContentTypeHeader
in class com.ning.http.client.multipart.PartBase
IOException
public boolean hasCustomContentDisposition()
public void setCustomContentDisposition(String customContentDisposition)
public boolean hasCustomContentType()
public void setCustomContentType(String customContentType)
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.