public class RestReplicatorPlugin extends Object implements PostIngestPlugin
Constructor and Description |
---|
RestReplicatorPlugin(String endpointAddress) |
Modifier and Type | Method and Description |
---|---|
String |
getParentAddress() |
MetacardTransformer |
getTransformer() |
CreateResponse |
process(CreateResponse input)
Processes the
CreateResponse . |
DeleteResponse |
process(DeleteResponse input)
Processes the
DeleteResponse . |
UpdateResponse |
process(UpdateResponse input)
Processes the
UpdateResponse . |
void |
setParentAddress(String endpointAddress) |
void |
setTransformer(MetacardTransformer transformer) |
public RestReplicatorPlugin(String endpointAddress)
public CreateResponse process(CreateResponse input) throws PluginExecutionException
PostIngestPlugin
CreateResponse
.process
in interface PostIngestPlugin
input
- the CreateResponse
to processCreateResponse
to pass to the next PostIngestPlugin
, or if this is the last PostIngestPlugin
to be calledPluginExecutionException
- thrown when an error occurs during processingpublic UpdateResponse process(UpdateResponse input) throws PluginExecutionException
PostIngestPlugin
UpdateResponse
.process
in interface PostIngestPlugin
input
- the UpdateResponse
to processUpdateResponse
to pass to the next PostIngestPlugin
, or if this is the last PostIngestPlugin
to be calledPluginExecutionException
- thrown when an error occurs during processingpublic DeleteResponse process(DeleteResponse input) throws PluginExecutionException
PostIngestPlugin
DeleteResponse
.process
in interface PostIngestPlugin
input
- the DeleteResponse
to processDeleteResponse
to pass to the next PostIngestPlugin
, or if this is the last PostIngestPlugin
to be calledPluginExecutionException
- thrown when an error occurs during processingpublic String getParentAddress()
public void setParentAddress(String endpointAddress)
public MetacardTransformer getTransformer()
public void setTransformer(MetacardTransformer transformer)
This work is licensed under a Creative Commons Attribution 4.0 International License.