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
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents the tuple media top-level type and subtype, including a media range (type or subtype equals “*”).static classNested 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
ConstructorsModifierConstructorDescriptionprotectedCreate a new object with the given type and no parameters.protectedMediaBase(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
-