Class OptionalIntMessageBodyWriter

  • All Implemented Interfaces:
    javax.ws.rs.ext.MessageBodyWriter<OptionalInt>

    @Provider
    @Produces("*/*")
    public class OptionalIntMessageBodyWriter
    extends Object
    implements javax.ws.rs.ext.MessageBodyWriter<OptionalInt>
    • Constructor Detail

      • OptionalIntMessageBodyWriter

        public OptionalIntMessageBodyWriter()
    • Method Detail

      • getSize

        public long getSize​(OptionalInt entity,
                            Class<?> type,
                            Type genericType,
                            Annotation[] annotations,
                            javax.ws.rs.core.MediaType mediaType)
        Specified by:
        getSize in interface javax.ws.rs.ext.MessageBodyWriter<OptionalInt>
      • 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<OptionalInt>