Package com.xebialabs.deployit.plumbing
Class ExplodedDescriptorsJsonWriter
java.lang.Object
com.xebialabs.deployit.plumbing.ExplodedDescriptorsJsonWriter
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<Collection<com.xebialabs.xlrelease.api.v1.views.ExplodedDescriptor>>
@Component
@Provider
@Produces("application/json")
public class ExplodedDescriptorsJsonWriter
extends Object
implements jakarta.ws.rs.ext.MessageBodyWriter<Collection<com.xebialabs.xlrelease.api.v1.views.ExplodedDescriptor>>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) voidwriteTo(Collection<com.xebialabs.xlrelease.api.v1.views.ExplodedDescriptor> descriptors, 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, waitMethods inherited from interface jakarta.ws.rs.ext.MessageBodyWriter
getSize
-
Constructor Details
-
ExplodedDescriptorsJsonWriter
public ExplodedDescriptorsJsonWriter()
-
-
Method Details
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
isWriteablein interfacejakarta.ws.rs.ext.MessageBodyWriter<Collection<com.xebialabs.xlrelease.api.v1.views.ExplodedDescriptor>>
-
writeTo
public void writeTo(Collection<com.xebialabs.xlrelease.api.v1.views.ExplodedDescriptor> descriptors, 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:
writeToin interfacejakarta.ws.rs.ext.MessageBodyWriter<Collection<com.xebialabs.xlrelease.api.v1.views.ExplodedDescriptor>>- Throws:
IOExceptionjakarta.ws.rs.WebApplicationException
-