Skip to content

Commit abe4366

Browse files
committed
Merge pull request #840 from mafuba/patch-1
Add JSON media types. Reported and contributed by mafuba.
2 parents 333311f + 421025d commit abe4366

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

modules/org.restlet/src/org/restlet/data/MediaType.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ public final class MediaType extends Metadata {
7070
public static final MediaType APPLICATION_ALL = register("application/*",
7171
"All application documents");
7272

73+
public static final MediaType APPLICATION_ALL_JSON = register(
74+
"application/*+json", "All application/*+json documents");
75+
7376
public static final MediaType APPLICATION_ALL_XML = register(
7477
"application/*+xml", "All application/*+xml documents");
7578

@@ -147,6 +150,10 @@ public final class MediaType extends Metadata {
147150
public static final MediaType APPLICATION_JSON = register(
148151
"application/json", "JavaScript Object Notation document");
149152

153+
// [ifndef gwt] member
154+
public static final MediaType APPLICATION_JSON_ACTIVITY = register(
155+
"application/activity+json", "Activity Streams JSON document");
156+
150157
// [ifndef gwt] member
151158
public static final MediaType APPLICATION_JSON_PATCH = register(
152159
"application/json-patch", "JSON patch document");

0 commit comments

Comments
 (0)