|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.extensions.webscripts.MediaType
public class MediaType
Represents a MediaType as described at http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
Constructor Summary | |
---|---|
MediaType(String mediatype)
Construct |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MediaType(String mediatype)
mediatype
- string representation of mediatype e.g. text/html;level=1;q=0.8Method Detail |
---|
public String getType()
public String getSubtype()
public String getParams()
public float getQuality()
public float compare(MediaType to)
to
- media type to compare to
public int hashCode()
hashCode
in class Object
public boolean equals(Object other)
equals
in class Object
public String toString()
toString
in class Object
public static void main(String[] args)
args
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |