Home » commons-httpclient-3.1-src » org.apache.commons » httpclient » methods » multipart » [javadoc | source]
org.apache.commons.httpclient.methods.multipart
public class: StringPart [javadoc | source]
java.lang.Object
   org.apache.commons.httpclient.methods.multipart.Part
      org.apache.commons.httpclient.methods.multipart.PartBase
         org.apache.commons.httpclient.methods.multipart.StringPart
Simple string parameter for a multipart post
Field Summary
public static final  String DEFAULT_CONTENT_TYPE    Default content encoding of string parameters. 
public static final  String DEFAULT_CHARSET    Default charset of string parameters 
public static final  String DEFAULT_TRANSFER_ENCODING    Default transfer encoding of string parameters 
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 StringPart(String name,
    String value) 
    Constructor.
    Parameters:
    name - The name of the part
    value - the string to post
 public StringPart(String name,
    String value,
    String charset) 
    Constructor.
    Parameters:
    name - The name of the part
    value - the string to post
    charset - the charset to be used to encode the string, if null the default is used
Method from org.apache.commons.httpclient.methods.multipart.StringPart Summary:
lengthOfData,   sendData,   setCharSet
Methods from org.apache.commons.httpclient.methods.multipart.PartBase:
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.StringPart Detail:
 protected long lengthOfData() throws IOException 
    Return the length of the data.
 protected  void sendData(OutputStream out) throws IOException 
    Writes the data to the given OutputStream.
 public  void setCharSet(String charSet)