Class OptionalIntMessageBodyWriter

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

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

      • OptionalIntMessageBodyWriter

        public OptionalIntMessageBodyWriter()
    • Method Detail

      • getSize

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

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