Class DescriptorJsonWriter

java.lang.Object
com.xebialabs.deployit.plumbing.DescriptorJsonWriter
All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<com.xebialabs.deployit.plugin.api.reflect.Descriptor>

@Component @Provider @Produces("application/json") public class DescriptorJsonWriter extends Object implements jakarta.ws.rs.ext.MessageBodyWriter<com.xebialabs.deployit.plugin.api.reflect.Descriptor>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected static void
    descriptorProperties(com.xebialabs.xltype.serialization.json.JsonWriter writer, com.xebialabs.deployit.plugin.api.reflect.Descriptor descriptor)
     
    long
    getSize(com.xebialabs.deployit.plugin.api.reflect.Descriptor descriptor, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
     
    boolean
    isWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
     
    void
    writeJson(com.xebialabs.deployit.plugin.api.reflect.Descriptor descriptor, com.xebialabs.xltype.serialization.json.JsonWriter writer)
     
    protected static void
    writeSuperTypes(com.xebialabs.xltype.serialization.json.JsonWriter writer, com.xebialabs.deployit.plugin.api.reflect.Descriptor descriptor)
     
    void
    writeTo(com.xebialabs.deployit.plugin.api.reflect.Descriptor descriptor, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DescriptorJsonWriter

      public DescriptorJsonWriter()
  • Method Details

    • 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<com.xebialabs.deployit.plugin.api.reflect.Descriptor>
    • getSize

      public long getSize(com.xebialabs.deployit.plugin.api.reflect.Descriptor descriptor, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
      Specified by:
      getSize in interface jakarta.ws.rs.ext.MessageBodyWriter<com.xebialabs.deployit.plugin.api.reflect.Descriptor>
    • writeTo

      public void writeTo(com.xebialabs.deployit.plugin.api.reflect.Descriptor descriptor, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException, jakarta.ws.rs.WebApplicationException
      Specified by:
      writeTo in interface jakarta.ws.rs.ext.MessageBodyWriter<com.xebialabs.deployit.plugin.api.reflect.Descriptor>
      Throws:
      IOException
      jakarta.ws.rs.WebApplicationException
    • writeJson

      public void writeJson(com.xebialabs.deployit.plugin.api.reflect.Descriptor descriptor, com.xebialabs.xltype.serialization.json.JsonWriter writer)
    • descriptorProperties

      protected static void descriptorProperties(com.xebialabs.xltype.serialization.json.JsonWriter writer, com.xebialabs.deployit.plugin.api.reflect.Descriptor descriptor)
    • writeSuperTypes

      protected static void writeSuperTypes(com.xebialabs.xltype.serialization.json.JsonWriter writer, com.xebialabs.deployit.plugin.api.reflect.Descriptor descriptor)