Module io.inverno.mod.http.base
Package io.inverno.mod.http.base.header
Interface Headers.ContentType
- All Superinterfaces:
Header
- Enclosing class:
Headers
Content-type HTTP header as defined by RFC 7231 Section 3.1.1.5.
- Since:
- 1.0
- Author:
- Jeremy Kuhn
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the boundary.Returns the charset.Returns the media type composed of type and sub-type parts without parameters.Returns the content type parameters.Returns the sub-type part.getType()
Returns the type part.Converts the content type to a media range.Methods inherited from interface io.inverno.mod.http.base.header.Header
getHeaderName, getHeaderValue
-
Field Details
-
BOUNDARY
Boundary parameter- See Also:
-
CHARSET
Charset parameter- See Also:
-
-
Method Details
-
getMediaType
String getMediaType()Returns the media type composed of type and sub-type parts without parameters.
- Returns:
- a raw media type
-
getType
String getType()Returns the type part.
- Returns:
- the type part
-
getSubType
String getSubType()Returns the sub-type part.
- Returns:
- the sub-type part
-
getBoundary
String getBoundary()Returns the boundary.
- Returns:
- the boundary or null
-
getCharset
Charset getCharset()Returns the charset.
- Returns:
- the charset of null
-
getParameters
Returns the content type parameters.
- Returns:
- a map of parameters
-
toMediaRange
Headers.Accept.MediaRange toMediaRange()Converts the content type to a media range.
- Returns:
- the media range corresponding to the content type
-