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 boolean
equals(Object obj)
static MediaType
from(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.int
hashCode()
boolean
is(String typeString)
String
toString()
-
-
-
Method Detail
-
is
public boolean is(String typeString)
-
-