APISonar


fish.payara.ejb.http.protocol.MediaTypes.JSON

> fish > payara > ejb > http > protocol > MediaTypes > JSON
fish APIs payara APIs ejb APIs http APIs protocol APIs MediaTypes APIs JSON APIs

Example 1
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) {
        return mediaType.toString().equals(MediaTypes.JSON)
                && InvokeMethodResponse.ResultType.isPresent(annotations);
    }
Example 2
LookupV1(Map<String, Object> environment, Client client, WebTarget v1lookup) {
        super(environment);
        this.client = client
                .register(ObjectStreamMessageBodyWriter.class)
                .register(ObjectStreamMessageBodyReader.class);
        this.v1lookup = v1lookup
                .register(ObjectStreamMessageBodyReader.class)
                .register(ObjectStreamMessageBodyWriter.class);
        this.mediaType = environment.containsKey(JAXRS_CLIENT_SERIALIZATION)
                ? SerializationType.valueOf(
                        environment.get(JAXRS_CLIENT_SERIALIZATION).toString().toUpperCase()).getMediaType()
                : MediaTypes.JSON;
    }