org.apache.commons.httpclient.methods.multipart
Class PartBase
public abstract class PartBase
Provides setters and getters for the basic Part properties.
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 |
PartBase(String name, String contentType, String charSet, String transferEncoding)- Constructor.
|
getBoundary, getCharSet, getContentType, getLengthOfParts, getLengthOfParts, getName, getPartBoundary, getTransferEncoding, isRepeatable, length, lengthOfData, send, sendContentTypeHeader, sendData, sendDispositionHeader, sendEnd, sendEndOfHeader, sendParts, sendParts, sendStart, sendTransferEncodingHeader, toString |
PartBase
public PartBase(String name,
String contentType,
String charSet,
String transferEncoding) Constructor.
name - The name of the partcontentType - The content type, or nullcharSet - The character encoding, or nulltransferEncoding - The transfer encoding, or null
getCharSet
public String getCharSet()
Return the character encoding of this part.
- getCharSet in interface Part
getContentType
public String getContentType()
Returns the content type of this part.
- getContentType in interface Part
getName
public String getName()
Returns the name.
- getName in interface Part
getTransferEncoding
public String getTransferEncoding()
Returns the transfer encoding of this part.
- getTransferEncoding in interface Part
setCharSet
public void setCharSet(String charSet)
Sets the character encoding.
charSet - the character encoding, or null to exclude the character
encoding header
setContentType
public void setContentType(String contentType)
Sets the content type.
contentType - the content type, or null to exclude the content type header
setName
public void setName(String name)
Sets the part name.
setTransferEncoding
public void setTransferEncoding(String transferEncoding)
Sets the transfer encoding.
transferEncoding - the transfer encoding, or null to exclude the
transfer encoding header
Copyright (c) 1999-2005 - Apache Software Foundation