Home » commons-httpclient-3.1-src » org.apache.commons » httpclient » methods » multipart » [javadoc | source]
org.apache.commons.httpclient.methods.multipart
abstract public class: PartBase [javadoc | source]
java.lang.Object
   org.apache.commons.httpclient.methods.multipart.Part
      org.apache.commons.httpclient.methods.multipart.PartBase

Direct Known Subclasses:
    StringPart, ContentTypeFilePart, FilePart

Provides setters and getters for the basic Part properties.
Fields inherited from org.apache.commons.httpclient.methods.multipart.Part:
BOUNDARY,  BOUNDARY_BYTES,  CRLF,  CRLF_BYTES,  QUOTE,  QUOTE_BYTES,  EXTRA,  EXTRA_BYTES,  CONTENT_DISPOSITION,  CONTENT_DISPOSITION_BYTES,  CONTENT_TYPE,  CONTENT_TYPE_BYTES,  CHARSET,  CHARSET_BYTES,  CONTENT_TRANSFER_ENCODING,  CONTENT_TRANSFER_ENCODING_BYTES
Constructor:
 public PartBase(String name,
    String contentType,
    String charSet,
    String transferEncoding) 
    Constructor.
    Parameters:
    name - The name of the part
    contentType - The content type, or null
    charSet - The character encoding, or null
    transferEncoding - The transfer encoding, or null
Method from org.apache.commons.httpclient.methods.multipart.PartBase Summary:
getCharSet,   getContentType,   getName,   getTransferEncoding,   setCharSet,   setContentType,   setName,   setTransferEncoding
Methods from org.apache.commons.httpclient.methods.multipart.Part:
getBoundary,   getCharSet,   getContentType,   getLengthOfParts,   getLengthOfParts,   getName,   getPartBoundary,   getTransferEncoding,   isRepeatable,   length,   lengthOfData,   send,   sendContentTypeHeader,   sendData,   sendDispositionHeader,   sendEnd,   sendEndOfHeader,   sendParts,   sendParts,   sendStart,   sendTransferEncodingHeader,   setPartBoundary,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.commons.httpclient.methods.multipart.PartBase Detail:
 public String getCharSet() 
    Return the character encoding of this part.
 public String getContentType() 
    Returns the content type of this part.
 public String getName() 
    Returns the name.
 public String getTransferEncoding() 
    Returns the transfer encoding of this part.
 public  void setCharSet(String charSet) 
    Sets the character encoding.
 public  void setContentType(String contentType) 
    Sets the content type.
 public  void setName(String name) 
    Sets the part name.
 public  void setTransferEncoding(String transferEncoding) 
    Sets the transfer encoding.