Package org.jdrupes.httpcodec.types
Class MediaBase
java.lang.Object
org.jdrupes.httpcodec.types.ParameterizedValue<MediaBase.MediaTypePair>
org.jdrupes.httpcodec.types.MediaBase
- Direct Known Subclasses:
MediaRange
,MediaType
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Represents the tuple media top-level type and subtype, including a media range (type or subtype equals “*
”).static class
Nested classes/interfaces inherited from class org.jdrupes.httpcodec.types.ParameterizedValue
ParameterizedValue.Builder<R extends ParameterizedValue<T>,
T>, ParameterizedValue.ParameterizedValueConverter<T>, ParameterizedValue.ParamValueConverterBase<P extends ParameterizedValue<U>, U> -
Field Summary
Fields inherited from class org.jdrupes.httpcodec.types.ParameterizedValue
WEIGHT_COMPARATOR
-
Constructor Summary
ModifierConstructorDescriptionprotected
Create a new object with the given type and no parameters.protected
MediaBase
(MediaBase.MediaTypePair type, Map<String, String> parameters) Create a new object with the given type and parameters. -
Method Summary
Methods inherited from class org.jdrupes.httpcodec.types.ParameterizedValue
builder, equals, hashCode, parameter, parameters, toString, value
-
Constructor Details
-
MediaBase
Create a new object with the given type and no parameters.- Parameters:
type
- the type
-
MediaBase
Create a new object with the given type and parameters.- Parameters:
type
- the typeparameters
- the parameters
-
-
Method Details
-
topLevelType
Returns the top-level type.- Returns:
- the type
-
subtype
Returns the subtype- Returns:
- the subtype
-