Package org.jdrupes.httpcodec.types
Class MediaType.Builder
java.lang.Object
org.jdrupes.httpcodec.types.ParameterizedValue.Builder<MediaType,MediaBase.MediaTypePair>
org.jdrupes.httpcodec.types.MediaType.Builder
- Enclosing class:
- MediaType
public static class MediaType.Builder
extends ParameterizedValue.Builder<MediaType,MediaBase.MediaTypePair>
A builder for the (immutable) parameterized type.
-
Method Summary
Methods inherited from class org.jdrupes.httpcodec.types.ParameterizedValue.Builder
from, remove, setParameter, setValue
-
Method Details
-
build
Description copied from class:ParameterizedValue.Builder
Returns the object built.- Overrides:
build
in classParameterizedValue.Builder<MediaType,
MediaBase.MediaTypePair> - Returns:
- the object
-
setType
Sets the media type.- Parameters:
topLevelType
- the top level typesubtype
- the subtype- Returns:
- the builder for easy chaining
-