public class ContentType extends Object
Constructor and Description |
---|
ContentType() |
ContentType(String boundary,
String charSet,
String mediaType,
String name,
List<ContentTypeParameter> parameters)
Initializes a new instance of the ContentType
|
Modifier and Type | Method and Description |
---|---|
ContentType |
addParametersItem(ContentTypeParameter parametersItem) |
ContentType |
boundary(String boundary) |
ContentType |
charSet(String charSet) |
boolean |
equals(Object o) |
String |
getBoundary()
The boundary parameter included in the Content-Type header.
|
String |
getCharSet()
CharSet parameter.
|
String |
getMediaType()
The internet media type.
|
String |
getName()
Name parameter.
|
List<ContentTypeParameter> |
getParameters()
Full list of parameters
|
int |
hashCode() |
ContentType |
mediaType(String mediaType) |
ContentType |
name(String name) |
ContentType |
parameters(List<ContentTypeParameter> parameters) |
void |
setBoundary(String boundary) |
void |
setCharSet(String charSet) |
void |
setMediaType(String mediaType) |
void |
setName(String name) |
void |
setParameters(List<ContentTypeParameter> parameters) |
String |
toString() |
public ContentType()
public ContentType(String boundary, String charSet, String mediaType, String name, List<ContentTypeParameter> parameters)
boundary
- The boundary parameter included in the Content-Type header.charSet
- CharSet parameter.mediaType
- The internet media type.name
- Name parameter.parameters
- Full list of parameterspublic ContentType boundary(String boundary)
public String getBoundary()
public void setBoundary(String boundary)
public ContentType charSet(String charSet)
public String getCharSet()
public void setCharSet(String charSet)
public ContentType mediaType(String mediaType)
public String getMediaType()
public void setMediaType(String mediaType)
public ContentType name(String name)
public String getName()
public void setName(String name)
public ContentType parameters(List<ContentTypeParameter> parameters)
public ContentType addParametersItem(ContentTypeParameter parametersItem)
public List<ContentTypeParameter> getParameters()
public void setParameters(List<ContentTypeParameter> parameters)
Copyright © 2020. All rights reserved.