|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.shindig.protocol.ContentTypes
public final class ContentTypes
Common mime content types and utilities
| Nested Class Summary | |
|---|---|
static class |
ContentTypes.InvalidContentTypeException
|
| Field Summary | |
|---|---|
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
|
| Method Summary | |
|---|---|
static void |
checkContentTypes(Set<String> allowedContentTypes,
String contentType)
|
static String |
extractMimePart(String contentType)
Extract the mime part from an Http Content-Type header |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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 Set<String> ALLOWED_MULTIPART_CONTENT_TYPES
public static final String OUTPUT_JSON_CONTENT_TYPE
public static final String OUTPUT_XML_CONTENT_TYPE
public static final String OUTPUT_ATOM_CONTENT_TYPE
| Method Detail |
|---|
public static String extractMimePart(String contentType)
public static void checkContentTypes(Set<String> allowedContentTypes,
String contentType)
throws ContentTypes.InvalidContentTypeException
ContentTypes.InvalidContentTypeException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||