Class XLDAsCodeResultJsonReaderWriter
java.lang.Object
com.xebialabs.deployit.core.rest.json.XLDAsCodeResultJsonReaderWriter
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyReader<com.xebialabs.deployit.engine.api.dto.XLDAsCodeResult>,jakarta.ws.rs.ext.MessageBodyWriter<com.xebialabs.deployit.engine.api.dto.XLDAsCodeResult>
@Component
@Provider
@Consumes("application/json")
@Produces("application/json")
public class XLDAsCodeResultJsonReaderWriter
extends Object
implements jakarta.ws.rs.ext.MessageBodyReader<com.xebialabs.deployit.engine.api.dto.XLDAsCodeResult>, jakarta.ws.rs.ext.MessageBodyWriter<com.xebialabs.deployit.engine.api.dto.XLDAsCodeResult>
JAX-RS MessageBodyReader and MessageBodyWriter for XLDAsCodeResult.
Enables JSON serialization/deserialization of XLDAsCodeResult DTOs between
master and external worker processes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetSize(com.xebialabs.deployit.engine.api.dto.XLDAsCodeResult result, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) booleanisReadable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) booleanisWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) com.xebialabs.deployit.engine.api.dto.XLDAsCodeResultreadFrom(Class<com.xebialabs.deployit.engine.api.dto.XLDAsCodeResult> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, String> httpHeaders, InputStream entityStream) voidwriteTo(com.xebialabs.deployit.engine.api.dto.XLDAsCodeResult result, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream)
-
Constructor Details
-
XLDAsCodeResultJsonReaderWriter
public XLDAsCodeResultJsonReaderWriter()
-
-
Method Details
-
isReadable
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
isReadablein interfacejakarta.ws.rs.ext.MessageBodyReader<com.xebialabs.deployit.engine.api.dto.XLDAsCodeResult>
-
readFrom
public com.xebialabs.deployit.engine.api.dto.XLDAsCodeResult readFrom(Class<com.xebialabs.deployit.engine.api.dto.XLDAsCodeResult> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, String> httpHeaders, InputStream entityStream) throws IOException, jakarta.ws.rs.WebApplicationException- Specified by:
readFromin interfacejakarta.ws.rs.ext.MessageBodyReader<com.xebialabs.deployit.engine.api.dto.XLDAsCodeResult>- Throws:
IOExceptionjakarta.ws.rs.WebApplicationException
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
isWriteablein interfacejakarta.ws.rs.ext.MessageBodyWriter<com.xebialabs.deployit.engine.api.dto.XLDAsCodeResult>
-
getSize
public long getSize(com.xebialabs.deployit.engine.api.dto.XLDAsCodeResult result, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
getSizein interfacejakarta.ws.rs.ext.MessageBodyWriter<com.xebialabs.deployit.engine.api.dto.XLDAsCodeResult>
-
writeTo
public void writeTo(com.xebialabs.deployit.engine.api.dto.XLDAsCodeResult result, 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<com.xebialabs.deployit.engine.api.dto.XLDAsCodeResult>- Throws:
IOExceptionjakarta.ws.rs.WebApplicationException
-