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