public class JettyClient extends java.lang.Object implements AsyncClient
| Constructor and Description |
|---|
JettyClient()
Creates an uninitialized client.
|
JettyClient(ClientOptions options)
Creates a client with specified options.
|
| Modifier and Type | Method and Description |
|---|---|
<any> |
asyncSend(Request request)
Sends a request with default options.
|
<any> |
asyncSend(Request request,
RequestOptions options)
Sends a request with specified options.
|
void |
init(java.lang.String prefix,
java.util.Properties props,
Logger logger)
Initializes the client.
|
Response |
send(Request request)
Sends a request with default options.
|
Response |
send(Request request,
RequestOptions options)
Sends a request with specified options.
|
void |
shutdown()
Releases resources, interrupts threads, etc.
|
public JettyClient()
public JettyClient(ClientOptions options) throws InitializationException
options - The options.InitializationExceptionpublic void init(java.lang.String prefix,
java.util.Properties props,
Logger logger)
throws InitializationException
Clientinit in interface Clientprefix - A prefix applied to all property names.props - A properties file.logger - A logger for messages.InitializationException - on initialization error.public Response send(Request request) throws java.io.IOException
Clientpublic Response send(Request request, RequestOptions options) throws java.io.IOException
Clientpublic <any> asyncSend(Request request)
AsyncClientasyncSend in interface AsyncClientrequest - The request.public <any> asyncSend(Request request, RequestOptions options)
AsyncClientasyncSend in interface AsyncClientrequest - The request.options - The request options.