Package org.yamcs.http
Class MediaType
java.lang.Object
org.yamcs.http.MediaType
Syntactic sugar around a media type string. Contains predefined ones, but is open-ended for when we support dynamic
rest handlers better.
-
Field Summary
-
Method Summary
-
Field Details
-
OCTET_STREAM
-
CSV
-
JSON
-
PROTOBUF
-
PLAIN_TEXT
-
ANY
-
-
Method Details
-
is
-
equals
-
hashCode
public int hashCode() -
toString
-
from
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.- Parameters:
typeString
-- Returns:
- the MediaType object corresponding to the type string
-