Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.commons.httpclient.methods.multipart
Class PartBase  view PartBase download PartBase.java

java.lang.Object
  extended byorg.apache.commons.httpclient.methods.multipart.Part
      extended byorg.apache.commons.httpclient.methods.multipart.PartBase
Direct Known Subclasses:
FilePart, StringPart

public abstract class PartBase
extends Part

Provides setters and getters for the basic Part properties.


Field Summary
private  java.lang.String charSet
          Content encoding of the file part.
private  java.lang.String contentType
          Content type of the file part.
private  java.lang.String name
          Name of the file part.
private  java.lang.String transferEncoding
          The transfer encoding.
 
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(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 org.apache.commons.httpclient.methods.multipart.Part
getBoundary, getLengthOfParts, getLengthOfParts, getPartBoundary, isRepeatable, length, lengthOfData, send, sendContentTypeHeader, sendData, sendDispositionHeader, sendEnd, sendEndOfHeader, sendParts, sendParts, sendStart, sendTransferEncodingHeader, setPartBoundary, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

private java.lang.String name
Name of the file part.


contentType

private java.lang.String contentType
Content type of the file part.


charSet

private java.lang.String charSet
Content encoding of the file part.


transferEncoding

private java.lang.String transferEncoding
The transfer encoding.

Constructor Detail

PartBase

public PartBase(java.lang.String name,
                java.lang.String contentType,
                java.lang.String charSet,
                java.lang.String transferEncoding)
Constructor.

Method Detail

getName

public java.lang.String getName()
Returns the name.

Specified by:
getName in class Part

getContentType

public java.lang.String getContentType()
Returns the content type of this part.

Specified by:
getContentType in class Part

getCharSet

public java.lang.String getCharSet()
Return the character encoding of this part.

Specified by:
getCharSet in class Part

getTransferEncoding

public java.lang.String getTransferEncoding()
Returns the transfer encoding of this part.

Specified by:
getTransferEncoding in class Part

setCharSet

public void setCharSet(java.lang.String charSet)
Sets the character encoding.


setContentType

public void setContentType(java.lang.String contentType)
Sets the content type.


setName

public void setName(java.lang.String name)
Sets the part name.


setTransferEncoding

public void setTransferEncoding(java.lang.String transferEncoding)
Sets the transfer encoding.