|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openjena.atlas.web.MediaType
public class MediaType
A structure to represent a media type. Se also the Apache httpd documentation.
Constructor Summary | |
---|---|
MediaType(MediaType other)
|
|
MediaType(String type,
String subType)
Create a media type from type and subType |
|
MediaType(String type,
String subType,
String charset)
Create a media type from type and subType |
Method Summary | |
---|---|
static MediaType |
create(String string)
|
static MediaType |
create(String contentType,
String charset)
|
static MediaType |
create(String contentType,
String subType,
String charset)
|
static MediaType |
createFromContentType(String string)
|
boolean |
equals(Object object)
|
String |
getCharset()
|
String |
getContentType()
|
String |
getParameter(String name)
|
String |
getSubType()
|
String |
getType()
|
int |
hashCode()
|
static org.openjena.atlas.web.ParsedMediaType |
parse(String string)
|
String |
toHeaderString()
Format for use in HTTP header |
String |
toString()
Format to show structure - intentionally different from header form so you can tell parsing happened correctly |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MediaType(MediaType other)
public MediaType(String type, String subType)
public MediaType(String type, String subType, String charset)
Method Detail |
---|
public static MediaType create(String contentType, String charset)
public static MediaType createFromContentType(String string)
public static MediaType create(String contentType, String subType, String charset)
public static MediaType create(String string)
public static org.openjena.atlas.web.ParsedMediaType parse(String string)
public String toHeaderString()
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object object)
equals
in class Object
public String getParameter(String name)
public String getContentType()
public String getCharset()
public String getSubType()
public String getType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |