IN - The type that will be received by this clientOUT - The type that will be sent by this clientpublic abstract class HttpClient<IN,OUT> extends ReactorClient<IN,OUT,HttpChannel<IN,OUT>>
PINGstarted| Modifier | Constructor and Description |
|---|---|
protected |
HttpClient(reactor.Environment env,
reactor.core.Dispatcher dispatcher,
reactor.io.codec.Codec<reactor.io.buffer.Buffer,IN,OUT> codec,
ClientSocketOptions options) |
| Modifier and Type | Method and Description |
|---|---|
reactor.rx.Promise<? extends HttpChannel<IN,OUT>> |
delete(java.lang.String url)
HTTP DELETE the passed URL.
|
reactor.rx.Promise<? extends HttpChannel<IN,OUT>> |
delete(java.lang.String url,
ReactorChannelHandler<IN,OUT,HttpChannel<IN,OUT>> handler)
HTTP DELETE the passed URL.
|
reactor.rx.Promise<? extends HttpChannel<IN,OUT>> |
get(java.lang.String url)
HTTP GET the passed URL.
|
reactor.rx.Promise<? extends HttpChannel<IN,OUT>> |
get(java.lang.String url,
ReactorChannelHandler<IN,OUT,HttpChannel<IN,OUT>> handler)
HTTP GET the passed URL.
|
reactor.rx.Promise<? extends HttpChannel<IN,OUT>> |
post(java.lang.String url,
ReactorChannelHandler<IN,OUT,HttpChannel<IN,OUT>> handler)
HTTP POST the passed URL.
|
reactor.rx.Promise<? extends HttpChannel<IN,OUT>> |
put(java.lang.String url,
ReactorChannelHandler<IN,OUT,HttpChannel<IN,OUT>> handler)
HTTP PUT the passed URL.
|
abstract reactor.rx.Promise<? extends HttpChannel<IN,OUT>> |
request(Method method,
java.lang.String url,
ReactorChannelHandler<IN,OUT,HttpChannel<IN,OUT>> handler)
Use the passed HTTP method to send to the given URL.
|
reactor.rx.Promise<? extends HttpChannel<IN,OUT>> |
ws(java.lang.String url)
WebSocket to the passed URL.
|
reactor.rx.Promise<? extends HttpChannel<IN,OUT>> |
ws(java.lang.String url,
ReactorChannelHandler<IN,OUT,HttpChannel<IN,OUT>> handler)
WebSocket to the passed URL.
|
doStart, startdoShutdown, doStart, getDefaultCodec, getDefaultDispatcher, getDefaultEnvironment, getDefaultPrefetchSize, shutdown, startprotected HttpClient(reactor.Environment env,
reactor.core.Dispatcher dispatcher,
reactor.io.codec.Codec<reactor.io.buffer.Buffer,IN,OUT> codec,
ClientSocketOptions options)
public final reactor.rx.Promise<? extends HttpChannel<IN,OUT>> get(java.lang.String url, ReactorChannelHandler<IN,OUT,HttpChannel<IN,OUT>> handler)
url - the target remote URLhandler - the ReactorChannelHandler to invoke on open channelPromise of the HttpChannel ready to consume for responsepublic final reactor.rx.Promise<? extends HttpChannel<IN,OUT>> get(java.lang.String url)
url - the target remote URLPromise of the HttpChannel ready to consume for responsepublic final reactor.rx.Promise<? extends HttpChannel<IN,OUT>> post(java.lang.String url, ReactorChannelHandler<IN,OUT,HttpChannel<IN,OUT>> handler)
url - the target remote URLhandler - the ReactorChannelHandler to invoke on open channelPromise of the HttpChannel ready to consume for responsepublic final reactor.rx.Promise<? extends HttpChannel<IN,OUT>> put(java.lang.String url, ReactorChannelHandler<IN,OUT,HttpChannel<IN,OUT>> handler)
url - the target remote URLhandler - the ReactorChannelHandler to invoke on open channelPromise of the HttpChannel ready to consume for responsepublic final reactor.rx.Promise<? extends HttpChannel<IN,OUT>> delete(java.lang.String url, ReactorChannelHandler<IN,OUT,HttpChannel<IN,OUT>> handler)
url - the target remote URLhandler - the ReactorChannelHandler to invoke on open channelPromise of the HttpChannel ready to consume for responsepublic final reactor.rx.Promise<? extends HttpChannel<IN,OUT>> delete(java.lang.String url)
url - the target remote URLPromise of the HttpChannel ready to consume for responsepublic final reactor.rx.Promise<? extends HttpChannel<IN,OUT>> ws(java.lang.String url)
url - the target remote URLPromise of the HttpChannel ready to consume for responsepublic final reactor.rx.Promise<? extends HttpChannel<IN,OUT>> ws(java.lang.String url, ReactorChannelHandler<IN,OUT,HttpChannel<IN,OUT>> handler)
url - the target remote URLhandler - the ReactorChannelHandler to invoke on open channelPromise of the HttpChannel ready to consume for responsepublic abstract reactor.rx.Promise<? extends HttpChannel<IN,OUT>> request(Method method, java.lang.String url, ReactorChannelHandler<IN,OUT,HttpChannel<IN,OUT>> handler)
method - the HTTP method to sendurl - the target remote URLhandler - the ReactorChannelHandler to invoke on open channelPromise of the HttpChannel ready to consume for response