Class MediaType
java.lang.Object
org.apache.tomcat.util.http.parser.MediaType
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintgetParameterValue(String parameter) getType()static MediaTypeparseMediaType(StringReader input) Parses a MediaType value, either from an HTTP header or from an application.toString()
- 
Constructor Details- 
MediaType
 
- 
- 
Method Details- 
getType
- 
getSubtype
- 
getCharset
- 
getParameterCountpublic int getParameterCount()
- 
getParameterValue
- 
toString
- 
toStringNoCharset
- 
parseMediaTypeParses a MediaType value, either from an HTTP header or from an application.- Parameters:
- input- a reader over the header text
- Returns:
- a MediaType parsed from the input, or null if not valid
- Throws:
- IOException- if there was a problem reading the input
 
 
-