Class AbstractFilePart

java.lang.Object
com.ning.http.client.multipart.PartBase
com.ning.http.client.multipart.AbstractFilePart
All Implemented Interfaces:
Part
Direct Known Subclasses:
ByteArrayPart, FilePart

public abstract class AbstractFilePart extends PartBase
This class is an adaptation of the Apache HttpClient implementation
  • Field Details

    • DEFAULT_CONTENT_TYPE

      public static final String DEFAULT_CONTENT_TYPE
      Default content encoding of file attachments.
      See Also:
    • DEFAULT_TRANSFER_ENCODING

      public static final String DEFAULT_TRANSFER_ENCODING
      Default transfer encoding of file attachments.
      See Also:
  • Constructor Details

    • AbstractFilePart

      public AbstractFilePart(String name, String contentType, Charset charset, String contentId, String transferEncoding)
      FilePart Constructor.
      Parameters:
      name - the name for this part
      partSource - the source for this part
      contentType - the content type for this part, if null the default is used
      charset - the charset encoding for this part
  • Method Details