Class MinijaxJsonWriter

java.lang.Object
org.minijax.json.MinijaxJsonWriter
All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<java.lang.Object>

@Singleton
@Produces("application/json")
public class MinijaxJsonWriter
extends java.lang.Object
implements jakarta.ws.rs.ext.MessageBodyWriter<java.lang.Object>
  • Constructor Summary

    Constructors
    Constructor Description
    MinijaxJsonWriter()  
  • Method Summary

    Modifier and Type Method Description
    boolean isWriteable​(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)  
    void writeTo​(java.lang.Object t, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.Object> httpHeaders, java.io.OutputStream entityStream)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface jakarta.ws.rs.ext.MessageBodyWriter

    getSize
  • Constructor Details

    • MinijaxJsonWriter

      public MinijaxJsonWriter()
  • Method Details

    • isWriteable

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

      public void writeTo​(java.lang.Object t, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.Object> httpHeaders, java.io.OutputStream entityStream) throws java.io.IOException
      Specified by:
      writeTo in interface jakarta.ws.rs.ext.MessageBodyWriter<java.lang.Object>
      Throws:
      java.io.IOException