Package com.xmlcalabash.io
Class MediaType
-
- All Implemented Interfaces:
public final class MediaType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
MediaType.Companion
-
Field Summary
Fields Modifier and Type Field Description private final String
mediaType
private final String
mediaSubtype
private final String
suffix
private final Boolean
inclusive
private final List<MediaTypeParameter>
parameters
public final static MediaType.Companion
Companion
-
Method Summary
Modifier and Type Method Description final String
getMediaType()
final String
getMediaSubtype()
final String
getSuffix()
final Boolean
getInclusive()
final List<MediaTypeParameter>
getParameters()
final MediaType
discardParameters()
final MediaType
discardParameters(List<String> paramNames)
final MediaType
addParam(String name, String value)
final MediaType
matchingMediaType(List<MediaType> mtypes)
final Boolean
matches(MediaType mtype)
final MediaClassification
classification()
final String
extension()
final Boolean
allowed(List<MediaType> types)
final String
paramValue(String name)
final String
charset()
final MediaType
assertValid()
Boolean
equals(Object other)
Integer
hashCode()
final XdmAtomicValue
toAtomicValue()
final String
toStringWithoutParameters()
String
toString()
-
-
Method Detail
-
getMediaType
final String getMediaType()
-
getMediaSubtype
final String getMediaSubtype()
-
getInclusive
final Boolean getInclusive()
-
getParameters
final List<MediaTypeParameter> getParameters()
-
discardParameters
final MediaType discardParameters()
-
discardParameters
final MediaType discardParameters(List<String> paramNames)
-
matchingMediaType
final MediaType matchingMediaType(List<MediaType> mtypes)
-
classification
final MediaClassification classification()
-
paramValue
final String paramValue(String name)
-
assertValid
final MediaType assertValid()
-
toAtomicValue
final XdmAtomicValue toAtomicValue()
-
toStringWithoutParameters
final String toStringWithoutParameters()
-
-
-
-