Class PartBase
java.lang.Object
edu.internet2.middleware.grouperClientExt.org.apache.commons.httpclient.methods.multipart.Part
edu.internet2.middleware.grouperClientExt.org.apache.commons.httpclient.methods.multipart.PartBase
- Direct Known Subclasses:
FilePart
,StringPart
Provides setters and getters for the basic Part properties.
-
Field Summary
Fields inherited from class edu.internet2.middleware.grouperClientExt.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
-
Method Summary
Modifier and TypeMethodDescriptionReturn the character encoding of this part.Returns the content type of this part.getName()
Returns the name.Returns the transfer encoding of this part.void
setCharSet
(String charSet) Sets the character encoding.void
setContentType
(String contentType) Sets the content type.void
Sets the part name.void
setTransferEncoding
(String transferEncoding) Sets the transfer encoding.Methods inherited from class edu.internet2.middleware.grouperClientExt.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
-
Constructor Details
-
PartBase
Constructor.- Parameters:
name
- The name of the partcontentType
- The content type, ornull
charSet
- The character encoding, ornull
transferEncoding
- The transfer encoding, ornull
-
-
Method Details
-
getName
Returns the name. -
getContentType
Returns the content type of this part.- Specified by:
getContentType
in classPart
- Returns:
- String The name.
-
getCharSet
Return the character encoding of this part.- Specified by:
getCharSet
in classPart
- Returns:
- String The name.
-
getTransferEncoding
Returns the transfer encoding of this part.- Specified by:
getTransferEncoding
in classPart
- Returns:
- String The name.
-
setCharSet
Sets the character encoding.- Parameters:
charSet
- the character encoding, ornull
to exclude the character encoding header
-
setContentType
Sets the content type.- Parameters:
contentType
- the content type, ornull
to exclude the content type header
-
setName
Sets the part name.- Parameters:
name
-
-
setTransferEncoding
Sets the transfer encoding.- Parameters:
transferEncoding
- the transfer encoding, ornull
to exclude the transfer encoding header
-