|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ning.http.multipart.Part
com.ning.http.multipart.PartBase
public abstract class PartBase
This class is an adaptation of the Apache HttpClient implementation
| Field Summary |
|---|
| Fields inherited from class com.ning.http.multipart.Part |
|---|
BOUNDARY, CHARSET, CONTENT_DISPOSITION, CONTENT_TRANSFER_ENCODING, CONTENT_TYPE, CRLF, EXTRA, QUOTE |
| Constructor Summary | |
|---|---|
PartBase(java.lang.String name,
java.lang.String contentType,
java.lang.String charSet,
java.lang.String transferEncoding)
Constructor. |
|
| Method Summary | |
|---|---|
java.lang.String |
getCharSet()
Return the character encoding of this part. |
java.lang.String |
getContentType()
Returns the content type of this part. |
java.lang.String |
getName()
Returns the name. |
java.lang.String |
getTransferEncoding()
Returns the transfer encoding of this part. |
void |
setCharSet(java.lang.String charSet)
Sets the character encoding. |
void |
setContentType(java.lang.String contentType)
Sets the content type. |
void |
setName(java.lang.String name)
Sets the part name. |
void |
setTransferEncoding(java.lang.String transferEncoding)
Sets the transfer encoding. |
| Methods inherited from class com.ning.http.multipart.Part |
|---|
getBoundary, getLengthOfParts, getLengthOfParts, getPartBoundary, isRepeatable, length, lengthOfData, send, sendContentTypeHeader, sendData, sendDispositionHeader, sendEnd, sendEndOfHeader, sendParts, sendParts, sendStart, sendTransferEncodingHeader, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PartBase(java.lang.String name,
java.lang.String contentType,
java.lang.String charSet,
java.lang.String transferEncoding)
name - The name of the partcontentType - The content type, or nullcharSet - The character encoding, or nulltransferEncoding - The transfer encoding, or null| Method Detail |
|---|
public java.lang.String getName()
getName in class Partpublic java.lang.String getContentType()
getContentType in class Partpublic java.lang.String getCharSet()
getCharSet in class Partpublic java.lang.String getTransferEncoding()
getTransferEncoding in class Partpublic void setCharSet(java.lang.String charSet)
charSet - the character encoding, or null to exclude the character
encoding headerpublic void setContentType(java.lang.String contentType)
contentType - the content type, or null to exclude the content type headerpublic void setName(java.lang.String name)
name - public void setTransferEncoding(java.lang.String transferEncoding)
transferEncoding - the transfer encoding, or null to exclude the
transfer encoding header
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||