Examples of MediaType()


Examples of com.fasterxml.jackson.module.jsonSchema.annotation.Link.mediaType()

                    .setRel(link.rel())
                    .setMethod(ignoreDefaults && "GET".equals(link.method()) ? null : link.method())
                    .setEnctype(ignoreDefaults && "application/json".equals(link.enctype()) ? null : link.enctype())
                    .setTargetSchema(fetchSchema(link.targetSchema()))
                    .setSchema(fetchSchema(link.schema()))
                    .setMediaType(ignoreDefaults && "application/json".equals(link.mediaType()) ? null : link.mediaType())
                    .setTitle(link.title());
            }
            SimpleTypeSchema simpleTypeSchema = schema.asSimpleTypeSchema();
            simpleTypeSchema.setLinks(linkDescriptionObjects);
            if(pathStart != null && pathStart.length() != 0)
View Full Code Here

Examples of com.fasterxml.jackson.module.jsonSchema.annotation.Link.mediaType()

                    .setRel(link.rel())
                    .setMethod(ignoreDefaults && "GET".equals(link.method()) ? null : link.method())
                    .setEnctype(ignoreDefaults && "application/json".equals(link.enctype()) ? null : link.enctype())
                    .setTargetSchema(fetchSchema(link.targetSchema()))
                    .setSchema(fetchSchema(link.schema()))
                    .setMediaType(ignoreDefaults && "application/json".equals(link.mediaType()) ? null : link.mediaType())
                    .setTitle(link.title());
            }
            SimpleTypeSchema simpleTypeSchema = schema.asSimpleTypeSchema();
            simpleTypeSchema.setLinks(linkDescriptionObjects);
            if(pathStart != null && pathStart.length() != 0)
View Full Code Here

Examples of com.vtence.molecule.http.ContentType.mediaType()

        return value != null ? parseLong(value) : -1;
    }

    public String contentType() {
        ContentType contentType = ContentType.of(this);
        return contentType != null ? contentType.mediaType() : null;
    }

    public Request addParameter(String name, String value) {
        if (!parameters.containsKey(name)) {
            parameters.put(name, new ArrayList<String>());
View Full Code Here

Examples of org.apache.tomcat.util.http.parser.HttpParser.MediaType()

        }

        AstMediaType m = null;
        HttpParser hp = new HttpParser(new StringReader(type));
        try {
             m = hp.MediaType();
        } catch (ParseException e) {
            // Invalid - Assume no charset and just pass through whatever
            // the user provided.
            coyoteResponse.setContentTypeNoCharset(type);
            return;
View Full Code Here

Examples of org.apache.tomcat.util.http.parser.HttpParser.MediaType()

        }

        AstMediaType m = null;
        HttpParser hp = new HttpParser(new StringReader(type));
        try {
             m = hp.MediaType();
        } catch (ParseException e) {
            // Invalid - Assume no charset and just pass through whatever
            // the user provided.
            coyoteResponse.setContentTypeNoCharset(type);
            return;
View Full Code Here

Examples of org.apache.tomcat.util.http.parser.HttpParser.MediaType()

        }

        AstMediaType m = null;
        HttpParser hp = new HttpParser(new StringReader(type));
        try {
             m = hp.MediaType();
        } catch (ParseException e) {
            // Invalid - Assume no charset and just pass through whatever
            // the user provided.
            this.contentType = type;
            return;
View Full Code Here

Examples of org.apache.tomcat.util.http.parser.HttpParser.MediaType()

        }

        AstMediaType m = null;
        HttpParser hp = new HttpParser(new StringReader(type));
        try {
             m = hp.MediaType();
        } catch (ParseException e) {
            // Invalid - Assume no charset and just pass through whatever
            // the user provided.
            coyoteResponse.setContentTypeNoCharset(type);
            return;
View Full Code Here

Examples of org.springframework.data.keyvalue.riak.convert.KeyValueStoreMetaData.mediaType()

    if (null != value && value.getClass().getAnnotations().length > 0) {
      KeyValueStoreMetaData meta = value.getClass()
          .getAnnotation(KeyValueStoreMetaData.class);
      if (null != meta) {
        // Use the media type specified on the annotation.
        mediaType = MediaType.parseMediaType(meta.mediaType());
      }
    }
    return mediaType;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.