Package org.yamcs.http
Class MediaType
- java.lang.Object
-
- org.yamcs.http.MediaType
-
public final class MediaType extends Object
Syntactic sugar around a media type string. Contains predefined ones, but is open-ended for when we support dynamic rest handlers better.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static MediaTypefrom(String typeString)Returns one of the static members (OCTET_STREAM, CSV, etc) if this is a known type or a new object if the type is unknown.inthashCode()booleanis(String typeString)StringtoString()
-
-
-
Method Detail
-
is
public boolean is(String typeString)
-
-