Package ubic.gemma.rest.util
Class MediaTypeUtils
- java.lang.Object
-
- ubic.gemma.rest.util.MediaTypeUtils
-
public class MediaTypeUtils extends Object
Utilities forMediaType
.- Author:
- poirigui
-
-
Field Summary
Fields Modifier and Type Field Description static String
TEXT_TAB_SEPARATED_VALUES_UTF8
static javax.ws.rs.core.MediaType
TEXT_TAB_SEPARATED_VALUES_UTF8_TYPE
-
Constructor Summary
Constructors Constructor Description MediaTypeUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static javax.ws.rs.core.MediaType
negotiate(javax.ws.rs.core.HttpHeaders headers, javax.ws.rs.core.MediaType... types)
static javax.ws.rs.core.MediaType
withQuality(javax.ws.rs.core.MediaType mediaType, double quality)
-
-
-
Field Detail
-
TEXT_TAB_SEPARATED_VALUES_UTF8
public static final String TEXT_TAB_SEPARATED_VALUES_UTF8
- See Also:
- Constant Field Values
-
TEXT_TAB_SEPARATED_VALUES_UTF8_TYPE
public static final javax.ws.rs.core.MediaType TEXT_TAB_SEPARATED_VALUES_UTF8_TYPE
-
-
Method Detail
-
withQuality
public static javax.ws.rs.core.MediaType withQuality(javax.ws.rs.core.MediaType mediaType, double quality)
-
negotiate
public static javax.ws.rs.core.MediaType negotiate(javax.ws.rs.core.HttpHeaders headers, javax.ws.rs.core.MediaType... types) throws javax.ws.rs.NotAcceptableException
- Throws:
javax.ws.rs.NotAcceptableException
-
-