public abstract class

PartBase

extends Part
java.lang.Object
   ↳ com.ning.http.multipart.Part
     ↳ com.ning.http.multipart.PartBase
Known Direct Subclasses

Class Overview

This class is an adaptation of the Apache HttpClient implementationhttp://hc.apache.org/httpclient-3.x/

Summary

[Expand]
Inherited Constants
From class com.ning.http.multipart.Part
Public Constructors
PartBase(String name, String contentType, String charSet, String transferEncoding)
Constructor.
Public Methods
String getCharSet()
Return the character encoding of this part.
String getContentType()
Returns the content type of this part.
String getName()
Returns the name.
String getTransferEncoding()
Returns the transfer encoding of this part.
void setCharSet(String charSet)
Sets the character encoding.
void setContentType(String contentType)
Sets the content type.
void setName(String name)
Sets the part name.
void setTransferEncoding(String transferEncoding)
Sets the transfer encoding.
[Expand]
Inherited Methods
From class com.ning.http.multipart.Part
From class java.lang.Object
From interface com.ning.http.client.Part

Public Constructors

public PartBase (String name, String contentType, String charSet, String transferEncoding)

Constructor.

Parameters
name The name of the part
contentType The content type, or null
charSet The character encoding, or null
transferEncoding The transfer encoding, or null

Public Methods

public String getCharSet ()

Return the character encoding of this part.

Returns
  • String The name.

public String getContentType ()

Returns the content type of this part.

Returns
  • String The name.

public String getName ()

Returns the name.

Returns
  • The name.

public String getTransferEncoding ()

Returns the transfer encoding of this part.

Returns
  • String The name.

public void setCharSet (String charSet)

Sets the character encoding.

Parameters
charSet the character encoding, or null to exclude the character encoding header

public void setContentType (String contentType)

Sets the content type.

Parameters
contentType the content type, or null to exclude the content type header

public void setName (String name)

Sets the part name.

public void setTransferEncoding (String transferEncoding)

Sets the transfer encoding.

Parameters
transferEncoding the transfer encoding, or null to exclude the transfer encoding header