public abstract class JsonPatchService extends ServiceImp
Modifier and Type | Field and Description |
---|---|
protected com.fasterxml.jackson.databind.ObjectMapper |
mapper |
log
CONFIRMATION_ID_KEY
Constructor and Description |
---|
JsonPatchService() |
Modifier and Type | Method and Description |
---|---|
protected void |
closeService() |
MessageWrapper<java.io.OutputStream> |
getOutput() |
protected void |
initService() |
protected MessageWrapper<java.io.OutputStream> |
output() |
protected com.fasterxml.jackson.databind.JsonNode |
readAndClose(java.io.InputStream in) |
void |
setOutput(MessageWrapper<java.io.OutputStream> output)
Specify where the results of the operation is going to be stored.
|
<T extends JsonPatchService> |
withOutput(MessageWrapper<java.io.OutputStream> o) |
protected void |
writeAndClose(com.fasterxml.jackson.databind.JsonNode patch,
java.io.OutputStream out) |
changeState, close, continueOnFailure, createName, createQualifier, getContinueOnFail, getIsTrackingEndpoint, getLookupName, getUniqueId, init, isBranching, isTrackingEndpoint, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, setContinueOnFail, setIsTrackingEndpoint, setLookupName, setUniqueId, start, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
prepare
protected void initService() throws CoreException
initService
in class ServiceImp
CoreException
protected void closeService()
closeService
in class ServiceImp
protected com.fasterxml.jackson.databind.JsonNode readAndClose(java.io.InputStream in) throws java.io.IOException
java.io.IOException
protected void writeAndClose(com.fasterxml.jackson.databind.JsonNode patch, java.io.OutputStream out) throws java.io.IOException
java.io.IOException
public MessageWrapper<java.io.OutputStream> getOutput()
public void setOutput(MessageWrapper<java.io.OutputStream> output)
output
- the output; default is PayloadOutputStreamWrapper
if not specified.public <T extends JsonPatchService> T withOutput(MessageWrapper<java.io.OutputStream> o)
protected MessageWrapper<java.io.OutputStream> output()