public interface ResponseFormatter
| Modifier and Type | Field and Description |
|---|---|
static PrintStream |
OUT_STREAM |
| Modifier and Type | Method and Description |
|---|---|
static void |
handleErrorResponse(Message message)
Handle error messages, create
BrokerClientException and throw it. |
void |
printExchanges(Exchange[] exchanges)
Print an array of exchanges into a desired output format.
|
static void |
printMessage(Message message)
Print Message type responses.
|
void |
printQueues(Queue[] queues)
Print an array of queues into a desired output format.
|
static final PrintStream OUT_STREAM
static void handleErrorResponse(Message message)
BrokerClientException and throw it.message - Message containing the error.static void printMessage(Message message)
message - Response message received from the REST servicevoid printExchanges(Exchange[] exchanges)
exchanges - array of exchangesvoid printQueues(Queue[] queues)
queues - array of exchangesCopyright © 2018 WSO2. All rights reserved.