|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.email.ContentType
public class ContentType
Typed Content-Type header We parse the type during construction and set. null and string.empty will throw for construction,set and mediatype/subtype constructors set isPersisted to false. isPersisted needs to be tracked seperately than isChanged because isChanged only determines if the cached value should be used. isPersisted tracks if the object has been persisted. However, obviously if isChanged is true the object isn't persisted. If any subcomponents are changed, isChanged is set to true and isPersisted is false ToString caches the value until a isChanged is true, then it recomputes the full value.
Constructor Summary | |
---|---|
ContentType()
|
|
ContentType(String contentType)
ctor. |
Method Summary | |
---|---|
boolean |
equals(Object rparam)
|
String |
getBoundary()
|
String |
getCharSet()
|
String |
getMediaType()
Gets the media type. |
String |
getName()
|
HashMap<String,String> |
getParameters()
|
int |
hashCode()
|
void |
setBoundary(String value)
|
void |
setCharSet(String value)
|
void |
setMediaType(String value)
|
void |
setName(String value)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ContentType()
public ContentType(String contentType)
ctor.
contentType
- Unparsed value of the Content-Type header.Method Detail |
---|
public String getBoundary()
public void setBoundary(String value)
public String getCharSet()
public void setCharSet(String value)
public String getMediaType()
Gets the media type.
public void setMediaType(String value)
public String getName()
public void setName(String value)
public HashMap<String,String> getParameters()
public String toString()
toString
in class Object
public boolean equals(Object rparam)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |