Class JsonValueHandler

  • All Implemented Interfaces:
    javax.ws.rs.ext.MessageBodyReader<javax.json.JsonValue>, javax.ws.rs.ext.MessageBodyWriter<javax.json.JsonValue>

    public class JsonValueHandler
    extends Object
    implements javax.ws.rs.ext.MessageBodyReader<javax.json.JsonValue>, javax.ws.rs.ext.MessageBodyWriter<javax.json.JsonValue>
    • Constructor Detail

      • JsonValueHandler

        public JsonValueHandler()
    • Method Detail

      • isWriteable

        public boolean isWriteable​(Class<?> type,
                                   Type genericType,
                                   Annotation[] annotations,
                                   javax.ws.rs.core.MediaType mediaType)
        Specified by:
        isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<javax.json.JsonValue>
      • writeTo

        public void writeTo​(javax.json.JsonValue jsonValue,
                            Class<?> type,
                            Type genericType,
                            Annotation[] annotations,
                            javax.ws.rs.core.MediaType mediaType,
                            javax.ws.rs.core.MultivaluedMap<String,​Object> httpHeaders,
                            OutputStream entityStream)
                     throws IOException,
                            javax.ws.rs.WebApplicationException
        Specified by:
        writeTo in interface javax.ws.rs.ext.MessageBodyWriter<javax.json.JsonValue>
        Throws:
        IOException
        javax.ws.rs.WebApplicationException
      • isReadable

        public boolean isReadable​(Class<?> type,
                                  Type genericType,
                                  Annotation[] annotations,
                                  javax.ws.rs.core.MediaType mediaType)
        Specified by:
        isReadable in interface javax.ws.rs.ext.MessageBodyReader<javax.json.JsonValue>
      • readFrom

        public javax.json.JsonValue readFrom​(Class<javax.json.JsonValue> type,
                                             Type genericType,
                                             Annotation[] annotations,
                                             javax.ws.rs.core.MediaType mediaType,
                                             javax.ws.rs.core.MultivaluedMap<String,​String> httpHeaders,
                                             InputStream entityStream)
                                      throws IOException,
                                             javax.ws.rs.WebApplicationException
        Specified by:
        readFrom in interface javax.ws.rs.ext.MessageBodyReader<javax.json.JsonValue>
        Throws:
        IOException
        javax.ws.rs.WebApplicationException