Skip to content

Commit

Permalink
[OpenSearch] Add MediaType for "application/opensearchdescription+xml"
Browse files Browse the repository at this point in the history
RELNOTES=Add MediaType for "application/opensearchdescription+xml"

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=273816540
  • Loading branch information
chriscallahan authored and nick-someone committed Oct 10, 2019
1 parent 742846b commit f79c4fe
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions android/guava/src/com/google/common/net/MediaType.java
Expand Up @@ -594,6 +594,17 @@ private static MediaType addKnownType(MediaType mediaType) {
createConstant(APPLICATION_TYPE, "vnd.oasis.opendocument.spreadsheet");
public static final MediaType OPENDOCUMENT_TEXT =
createConstant(APPLICATION_TYPE, "vnd.oasis.opendocument.text");

/**
* <a href="https://tools.ietf.org/id/draft-ellermann-opensearch-01.html">OpenSearch</a>
* Description files are XML files that describe how a website can be used as a search engine by
* consumers (e.g. web browsers).
*
* @since NEXT
*/
public static final MediaType OPENSEARCH_DESCRIPTION_UTF_8 =
createConstantUtf8(APPLICATION_TYPE, "opensearchdescription+xml");

public static final MediaType PDF = createConstant(APPLICATION_TYPE, "pdf");
public static final MediaType POSTSCRIPT = createConstant(APPLICATION_TYPE, "postscript");

Expand Down
11 changes: 11 additions & 0 deletions guava/src/com/google/common/net/MediaType.java
Expand Up @@ -594,6 +594,17 @@ private static MediaType addKnownType(MediaType mediaType) {
createConstant(APPLICATION_TYPE, "vnd.oasis.opendocument.spreadsheet");
public static final MediaType OPENDOCUMENT_TEXT =
createConstant(APPLICATION_TYPE, "vnd.oasis.opendocument.text");

/**
* <a href="https://tools.ietf.org/id/draft-ellermann-opensearch-01.html">OpenSearch</a>
* Description files are XML files that describe how a website can be used as a search engine by
* consumers (e.g. web browsers).
*
* @since NEXT
*/
public static final MediaType OPENSEARCH_DESCRIPTION_UTF_8 =
createConstantUtf8(APPLICATION_TYPE, "opensearchdescription+xml");

public static final MediaType PDF = createConstant(APPLICATION_TYPE, "pdf");
public static final MediaType POSTSCRIPT = createConstant(APPLICATION_TYPE, "postscript");

Expand Down

0 comments on commit f79c4fe

Please sign in to comment.