java.lang.Object
org.apache.jena.atlas.web.MediaType
- Direct Known Subclasses:
MediaRange
A structure to represent a
media
type. See also the
Apache
httpd documentation.
MediaType is the general form, with parameters. ContentType is limited to type, subtype and charset.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MediaTypestatic MediaTypestatic MediaTypestatic MediaTypecreateFromContentType(String string) booleangetParameter(String name) getType()inthashCode()Format for use in HTTP headertoString()Format to show structure - intentionally different from header form so you can tell parsing happened correctly
-
Constructor Details
-
MediaType
-
MediaType
Create a media type from type and subType -
MediaType
Create a media type from type and subType
-
-
Method Details
-
create
-
createFromContentType
-
create
-
create
-
parse
-
toHeaderString
Format for use in HTTP header -
toString
Format to show structure - intentionally different from header form so you can tell parsing happened correctly -
hashCode
public int hashCode() -
equals
-
getParameter
-
getContentTypeStr
-
getCharset
-
getSubType
-
getType
-