public interface HttpClient
| Modifier and Type | Method and Description |
|---|---|
boolean |
isValidEndPoint(String url)
Make a synchronous HTTP(S) call to ensure that the url is reachable.
|
boolean |
isValidEndPoint(URL url)
Make a synchronous HTTP(S) call to ensure that the url is reachable.
|
boolean |
sendMessageToEndPoint(String url,
String message,
boolean async)
Sends a message to a particular endpoint.
|
boolean sendMessageToEndPoint(String url, String message, boolean async)
This is useful when it doesn't matter about the response as you'll perform no action based on the response.
url - the url to send the message tomessage - the message itselfasync - true if you don't want to wait for the response, false otherwise.boolean isValidEndPoint(String url)
url - the url to callboolean isValidEndPoint(URL url)
url - the url to callCopyright © 2004-2015 Apereo. All Rights Reserved.