Class RestFormatData
java.lang.Object
org.opencastproject.runtimeinfo.rest.RestFormatData
Represents an output format for a REST endpoint.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRestFormatData(String name) Constructor that accepts a format name and finds the format's corresponding default URL and description. -
Method Summary
-
Field Details
-
JSON_URL
Default URL for the JSON format.- See Also:
-
XML_URL
Default URL for the XML format.- See Also:
-
-
Constructor Details
-
RestFormatData
Constructor that accepts a format name and finds the format's corresponding default URL and description. Currently only JSON and XML have a default URL.- Parameters:
name- the format name, the value should be a constant from javax.ws.rs.core.MediaType or ExtendedMediaType (org.opencastproject.util.doc.rest.ExtendedMediaType).- Throws:
IllegalArgumentException- when name is null
-
-
Method Details