Class JsonWebKeysProvider

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

    public class JsonWebKeysProvider
    extends Object
    implements javax.ws.rs.ext.MessageBodyReader<JsonWebKeys>, javax.ws.rs.ext.MessageBodyWriter<JsonWebKeys>
    • Constructor Detail

      • JsonWebKeysProvider

        public JsonWebKeysProvider()
    • Method Detail

      • isReadable

        public boolean isReadable​(Class<?> cls,
                                  Type type,
                                  Annotation[] anns,
                                  javax.ws.rs.core.MediaType mt)
        Specified by:
        isReadable in interface javax.ws.rs.ext.MessageBodyReader<JsonWebKeys>
      • 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<JsonWebKeys>
      • getSize

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

        public void writeTo​(JsonWebKeys t,
                            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<JsonWebKeys>
        Throws:
        IOException
        javax.ws.rs.WebApplicationException