Class ComplexPart

    • Field Detail

      • DEFAULT_CONTENT_TYPE

        public static final String DEFAULT_CONTENT_TYPE
        Deprecated.
        Default content encoding of string parameters.
        See Also:
        Constant Field Values
      • DEFAULT_CHARSET

        public static final String DEFAULT_CHARSET
        Deprecated.
        Default charset of string parameters
        See Also:
        Constant Field Values
      • DEFAULT_TRANSFER_ENCODING

        public static final String DEFAULT_TRANSFER_ENCODING
        Deprecated.
        Default transfer encoding of string parameters
        See Also:
        Constant Field Values
    • Constructor Detail

      • ComplexPart

        public ComplexPart​(String name,
                           String value,
                           String charset)
        Deprecated.
        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
      • ComplexPart

        public ComplexPart​(String name,
                           String value)
        Deprecated.
        Constructor.
        Parameters:
        name - The name of the part
        value - the string to post
    • Method Detail

      • sendData

        protected void sendData​(OutputStream out)
                         throws IOException
        Deprecated.
        Writes the data to the given OutputStream.
        Parameters:
        out - the OutputStream to write to
        Throws:
        IOException - if there is a write error
      • lengthOfData

        protected long lengthOfData()
                             throws IOException
        Deprecated.
        Return the length of the data.
        Returns:
        The length of the data.
        Throws:
        IOException - If an IO problem occurs
        See Also:
        org.apache.commons.httpclient.methods.multipart.Part#lengthOfData()
      • setCharSet

        public void setCharSet​(String charSet)
        Deprecated.