Class StepStateJsonWriter
java.lang.Object
com.xebialabs.deployit.core.rest.json.StepStateJsonWriter
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<com.xebialabs.deployit.engine.api.execution.StepState>
@Component
@Provider
@Consumes("application/json")
@Produces("application/json")
public class StepStateJsonWriter
extends Object
implements jakarta.ws.rs.ext.MessageBodyWriter<com.xebialabs.deployit.engine.api.execution.StepState>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetSize(com.xebialabs.deployit.engine.api.execution.StepState stepState, 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) voidwriteTo(com.xebialabs.deployit.engine.api.execution.StepState stepState, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream)
-
Constructor Details
-
StepStateJsonWriter
public StepStateJsonWriter()
-
-
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<com.xebialabs.deployit.engine.api.execution.StepState>
-
getSize
public long getSize(com.xebialabs.deployit.engine.api.execution.StepState stepState, 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.execution.StepState>
-
writeTo
public void writeTo(com.xebialabs.deployit.engine.api.execution.StepState stepState, 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.execution.StepState>- Throws:
IOExceptionjakarta.ws.rs.WebApplicationException
-