Class StringCollectionProvider

  • All Implemented Interfaces:
    javax.ws.rs.ext.MessageBodyReader<List<String>>, javax.ws.rs.ext.MessageBodyWriter<Collection<String>>

    @Provider
    public class StringCollectionProvider
    extends Object
    implements javax.ws.rs.ext.MessageBodyReader<List<String>>, javax.ws.rs.ext.MessageBodyWriter<Collection<String>>
    • Constructor Detail

      • StringCollectionProvider

        public StringCollectionProvider()
    • Method Detail

      • 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<List<String>>
      • 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<Collection<String>>
      • getSize

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