Class PropertyDescriptorsJsonWriter

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

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

    • PropertyDescriptorsJsonWriter

      public PropertyDescriptorsJsonWriter()
  • 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<Collection<com.xebialabs.deployit.plugin.api.reflect.PropertyDescriptor>>
    • getSize

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

      public void writeTo(Collection<com.xebialabs.deployit.plugin.api.reflect.PropertyDescriptor> propertyDescriptors, 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<Collection<com.xebialabs.deployit.plugin.api.reflect.PropertyDescriptor>>
      Throws:
      IOException
      jakarta.ws.rs.WebApplicationException