Package com.teamdev.jxbrowser.net
Interface ContentType
public interface ContentType
A parsed
Content-Type
header value.- Since:
- 7.33
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionboundary()
Returns the boundary specified in theContent-Type
header or an emptyOptional
if the header does not contain a boundary.charset()
Returns the charset specified in theContent-Type
header or an emptyOptional
if the header does not contain a charset.default String
Returns the media type (the MIME type) specified in theContent-Type
header.static ContentType.Builder
newBuilder
(String mediaType) Create a newContentType
builder.
-
Method Details
-
newBuilder
Create a newContentType
builder. -
mediaType
Returns the media type (the MIME type) specified in theContent-Type
header. -
charset
Returns the charset specified in theContent-Type
header or an emptyOptional
if the header does not contain a charset. -
boundary
Returns the boundary specified in theContent-Type
header or an emptyOptional
if the header does not contain a boundary.
-