| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.httpclient.methods.multipart.Part
org.apache.commons.httpclient.methods.multipart.PartBase
public abstract class PartBase
Provides setters and getters for the basic Part properties.
| Field Summary | 
|---|
| Fields inherited from class org.apache.commons.httpclient.methods.multipart.Part | 
|---|
| BOUNDARY, BOUNDARY_BYTES, CHARSET, CHARSET_BYTES, CONTENT_DISPOSITION, CONTENT_DISPOSITION_BYTES, CONTENT_TRANSFER_ENCODING, CONTENT_TRANSFER_ENCODING_BYTES, CONTENT_TYPE, CONTENT_TYPE_BYTES, CRLF, CRLF_BYTES, EXTRA, EXTRA_BYTES, QUOTE, QUOTE_BYTES | 
| Constructor Summary | |
|---|---|
| PartBase(String name,
         String contentType,
         String charSet,
         String transferEncoding)Constructor. | |
| Method Summary | |
|---|---|
|  String | getCharSet()Return the character encoding of this part. | 
|  String | getContentType()Returns the content type of this part. | 
|  String | getName()Returns the name. | 
|  String | getTransferEncoding()Returns the transfer encoding of this part. | 
|  void | setCharSet(String charSet)Sets the character encoding. | 
|  void | setContentType(String contentType)Sets the content type. | 
|  void | setName(String name)Sets the part name. | 
|  void | setTransferEncoding(String transferEncoding)Sets the transfer encoding. | 
| Methods inherited from class org.apache.commons.httpclient.methods.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(String name,
                String contentType,
                String charSet,
                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 String getName()
getName in class PartPart.getName()public String getContentType()
getContentType in class Partpublic String getCharSet()
getCharSet in class Partpublic String getTransferEncoding()
getTransferEncoding in class Partpublic void setCharSet(String charSet)
charSet - the character encoding, or null to exclude the character 
 encoding headerpublic void setContentType(String contentType)
contentType - the content type, or null to exclude the content type headerpublic void setName(String name)
name - public void setTransferEncoding(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 | |||||||||