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 |
printConsumers(Consumer[] consumers)
Print an array of Queue consumers into a desired output format.
|
void |
printExchangeBindings(Binding[] bindings)
Print an array of Bindings under a exchange into a desired output format.
|
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 exchangesvoid printExchangeBindings(Binding[] bindings)
bindings - array of bindings.void printConsumers(Consumer[] consumers)
consumers - array of consumers.Copyright © 2018 WSO2. All rights reserved.