|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.webdav.http.client.ContentType
public class ContentType
Parses an HTTP Content-Type entity-header field. See section 14.18 of RFC2068 for more information on this field.
Note: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
Constructor Summary | |
---|---|
ContentType(String contentType)
Parses the given HTTP Content-Type entity-header field. |
Method Summary | |
---|---|
Enumeration |
getAttributes()
Returns an Enumeration of this content type's attributes. |
String |
getSubtype()
Returns this content type's subtype. |
String |
getType()
Returns this content type's type. |
String |
getValue(String attribute)
Returns the value of the given attribute for this content type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ContentType(String contentType) throws IllegalArgumentException
contentType
- the value of the content type field to parse
IllegalArgumentException
- if the content type is
malformedMethod Detail |
---|
public Enumeration getAttributes()
Enumeration
of this content type's attributes.
For example, if the content type is "text/xml; charset="ISO-8859-4"",
it has one attribute namely, "charset".
Enumeration
of String
spublic String getSubtype()
public String getType()
public String getValue(String attribute)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |