public class MediaType extends Object
| Modifier and Type | Method and Description |
|---|---|
float |
compare(MediaType to)
Compare to another media type
|
boolean |
equals(Object other) |
String |
getParams() |
float |
getQuality() |
String |
getSubtype() |
String |
getType() |
int |
hashCode() |
static void |
main(String[] args)
Simple exampe usage
|
String |
toString() |
public MediaType(String mediatype)
mediatype - string representation of mediatype e.g. text/html;level=1;q=0.8public String getType()
public String getSubtype()
public String getParams()
public float getQuality()
public float compare(MediaType to)
to - media type to compare topublic static void main(String[] args)
args - String[]Copyright © 2005–2017 Alfresco Software. All rights reserved.