public class ContentType extends Object
Represents a Content-Type header.
Constructor and Description |
---|
ContentType()
Initializes a new instance of the
ContentType class. |
ContentType(String contentType)
Initializes a new instance of the
ContentType class. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Determines whether the specified
Object is equal to this instance. |
String |
getBoundary()
Gets or sets the value of the boundary parameter
included in the Content-Type header.
|
String |
getCharSet()
Gets or sets the value of the charset parameter.
|
String |
getMediaType()
Gets or sets the internet media type.
|
String |
getName()
Gets or sets the value of the name parameter.
|
TrackingStringDictionary |
getParameters()
Gets the dictionary that contains the parameters.
|
int |
hashCode()
Returns a hash code for this instance.
|
void |
setBoundary(String value)
Gets or sets the value of the boundary parameter
included in the Content-Type header.
|
void |
setCharSet(String value)
Gets or sets the value of the charset parameter.
|
void |
setMediaType(String value)
Gets or sets the internet media type.
|
void |
setName(String value)
Gets or sets the value of the name parameter.
|
String |
toString()
Returns a
String that represents this instance. |
public ContentType()
Initializes a new instance of the ContentType
class.
public ContentType(String contentType)
Initializes a new instance of the ContentType
class.
contentType
- Type of the content.public final String getBoundary()
Gets or sets the value of the boundary parameter included in the Content-Type header.
Value: A string that contains the value of boundary parameter.public final void setBoundary(String value)
Gets or sets the value of the boundary parameter included in the Content-Type header.
Value: A string that contains the value of boundary parameter.public final String getCharSet()
Gets or sets the value of the charset parameter.
Value: A string that contains the value of charset parameter.public final void setCharSet(String value)
Gets or sets the value of the charset parameter.
Value: A string that contains the value of charset parameter.public final String getMediaType()
Gets or sets the internet media type.
Value: A String that contains the media type.public final void setMediaType(String value)
Gets or sets the internet media type.
Value: A String that contains the media type.public final String getName()
Gets or sets the value of the name parameter.
Value: A String that contains the name.public final void setName(String value)
Gets or sets the value of the name parameter.
Value: A String that contains the name.public final TrackingStringDictionary getParameters()
Gets the dictionary that contains the parameters.
Value: A StringDictionary that contains name and value pairs.public boolean equals(Object obj)
Determines whether the specified Object
is equal to this instance.