public class FileResponseChannel extends java.lang.Object implements ResponseChannel
| Constructor and Description |
|---|
FileResponseChannel(java.lang.String outputFilePath,
com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the channel and releases any resources.
|
void |
write(ResponseEnvelope envelope)
Writes the response envelope to the channel.
|
public FileResponseChannel(java.lang.String outputFilePath,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
public void write(ResponseEnvelope envelope) throws ResponseChannelException
ResponseChannelwrite in interface ResponseChannelenvelope - the response envelope to writeResponseChannelException - if writing failspublic void close()
ResponseChannelclose in interface ResponseChannel