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
-
Method Summary
Modifier and TypeMethodDescriptionstatic MediaType
static MediaType
static MediaType
static MediaType
createFromContentType
(String string) boolean
getParameter
(String name) getType()
int
hashCode()
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
-