| Modifier and Type | Method and Description |
|---|---|
protected URL |
RestClient.appendToURL(URL url,
String appendage) |
protected URL |
RestClient.getEndpointForType(RestClient.Type type,
String name) |
protected org.apache.http.HttpResponse |
RestClient.postMessage(RestClient.Type type,
String name,
String jsonPayload,
Map<String,String> headers) |
org.apache.http.HttpResponse |
RestClient.postQueueMessage(String queueName,
String jsonPayload,
Map<String,String> headers)
Sends a message to the REST endpoint in order to put a message on the given queue.
|
org.apache.http.HttpResponse |
RestClient.postTopicMessage(String topicName,
String jsonPayload,
Map<String,String> headers)
Sends a message to the REST endpoint in order to put a message on the given topic.
|
protected org.apache.http.HttpResponse |
RestClient.sendPost(URI uri,
String jsonPayload,
Map<String,String> headers) |
| Constructor and Description |
|---|
RestClient(String host,
Integer port)
Creates the sender with a default HTTP endpoint of the REST server.
|
RestClient(String protocol,
String host,
Integer port)
Creates the sender with a default endpoint of the REST server.
|
RestClient(URL endpoint)
Endpoint of the REST server, not including the fragment that consists of the queue/topic name.
|
Copyright © 2015 Red Hat, Inc.. All rights reserved.