File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed
android/guava/src/com/google/common/net
guava/src/com/google/common/net Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -594,6 +594,17 @@ private static MediaType addKnownType(MediaType mediaType) {
594
594
createConstant (APPLICATION_TYPE , "vnd.oasis.opendocument.spreadsheet" );
595
595
public static final MediaType OPENDOCUMENT_TEXT =
596
596
createConstant (APPLICATION_TYPE , "vnd.oasis.opendocument.text" );
597
+
598
+ /**
599
+ * <a href="https://tools.ietf.org/id/draft-ellermann-opensearch-01.html">OpenSearch</a>
600
+ * Description files are XML files that describe how a website can be used as a search engine by
601
+ * consumers (e.g. web browsers).
602
+ *
603
+ * @since NEXT
604
+ */
605
+ public static final MediaType OPENSEARCH_DESCRIPTION_UTF_8 =
606
+ createConstantUtf8 (APPLICATION_TYPE , "opensearchdescription+xml" );
607
+
597
608
public static final MediaType PDF = createConstant (APPLICATION_TYPE , "pdf" );
598
609
public static final MediaType POSTSCRIPT = createConstant (APPLICATION_TYPE , "postscript" );
599
610
Original file line number Diff line number Diff line change @@ -594,6 +594,17 @@ private static MediaType addKnownType(MediaType mediaType) {
594
594
createConstant (APPLICATION_TYPE , "vnd.oasis.opendocument.spreadsheet" );
595
595
public static final MediaType OPENDOCUMENT_TEXT =
596
596
createConstant (APPLICATION_TYPE , "vnd.oasis.opendocument.text" );
597
+
598
+ /**
599
+ * <a href="https://tools.ietf.org/id/draft-ellermann-opensearch-01.html">OpenSearch</a>
600
+ * Description files are XML files that describe how a website can be used as a search engine by
601
+ * consumers (e.g. web browsers).
602
+ *
603
+ * @since NEXT
604
+ */
605
+ public static final MediaType OPENSEARCH_DESCRIPTION_UTF_8 =
606
+ createConstantUtf8 (APPLICATION_TYPE , "opensearchdescription+xml" );
607
+
597
608
public static final MediaType PDF = createConstant (APPLICATION_TYPE , "pdf" );
598
609
public static final MediaType POSTSCRIPT = createConstant (APPLICATION_TYPE , "postscript" );
599
610
You can’t perform that action at this time.
0 commit comments