public final class ContentTypes extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ContentTypes.InvalidContentTypeException |
| Modifier and Type | Field and Description |
|---|---|
static Set<String> |
ALLOWED_ATOM_CONTENT_TYPES
Allowed alternatives to application/atom+xml
|
static Set<String> |
ALLOWED_JSON_CONTENT_TYPES
Allowed alternatives to application/json, including types listed
in JSON-RPC spec.
|
static Set<String> |
ALLOWED_MULTIPART_CONTENT_TYPES |
static Set<String> |
ALLOWED_XML_CONTENT_TYPES
Allowed alternatives to application/xml
|
static Set<String> |
FORBIDDEN_CONTENT_TYPES
Content types that are forbidden for REST & RPC calls
|
static String |
MULTIPART_FORM_CONTENT_TYPE |
static String |
OUTPUT_ATOM_CONTENT_TYPE |
static String |
OUTPUT_JSON_CONTENT_TYPE |
static String |
OUTPUT_XML_CONTENT_TYPE |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkContentTypes(Set<String> allowedContentTypes,
String contentType) |
static String |
extractMimePart(String contentType)
Extract the mime part from an Http Content-Type header
|
public static final Set<String> ALLOWED_JSON_CONTENT_TYPES
public static final Set<String> ALLOWED_XML_CONTENT_TYPES
public static final Set<String> ALLOWED_ATOM_CONTENT_TYPES
public static final Set<String> FORBIDDEN_CONTENT_TYPES
public static final String MULTIPART_FORM_CONTENT_TYPE
public static final String OUTPUT_JSON_CONTENT_TYPE
public static final String OUTPUT_XML_CONTENT_TYPE
public static final String OUTPUT_ATOM_CONTENT_TYPE
Copyright © 2007-2012. All Rights Reserved.