public class HttpClientImpl extends Object implements HttpClient, MetricsProvider
Constructor and Description |
---|
HttpClientImpl(VertxInternal vertx,
HttpClientOptions options) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the client.
|
HttpClientRequest |
delete(int port,
String host,
String requestURI)
Create an HTTP DELETE request to send to the server at the specified host and port.
|
HttpClientRequest |
delete(int port,
String host,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP DELETE request to send to the server at the specified host and port, specifying a response handler to receive
the response
|
HttpClientRequest |
delete(String requestURI)
Create an HTTP DELETE request to send to the server at the default host and port.
|
HttpClientRequest |
delete(String requestURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP DELETE request to send to the server at the default host and port, specifying a response handler to receive
the response
|
HttpClientRequest |
delete(String host,
String requestURI)
Create an HTTP DELETE request to send to the server at the specified host and default port.
|
HttpClientRequest |
delete(String host,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP DELETE request to send to the server at the specified host and default port, specifying a response handler to receive
the response
|
HttpClientRequest |
deleteAbs(String absoluteURI)
Create an HTTP DELETE request to send to the server using an absolute URI
|
HttpClientRequest |
deleteAbs(String absoluteURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP DELETE request to send to the server using an absolute URI, specifying a response handler to receive
the response
|
protected void |
finalize() |
HttpClientRequest |
get(int port,
String host,
String requestURI)
Create an HTTP GET request to send to the server at the specified host and port.
|
HttpClientRequest |
get(int port,
String host,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP GET request to send to the server at the specified host and port, specifying a response handler to receive
the response
|
HttpClientRequest |
get(String requestURI)
Create an HTTP GET request to send to the server at the default host and port.
|
HttpClientRequest |
get(String requestURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP GET request to send to the server at the default host and port, specifying a response handler to receive
the response
|
HttpClientRequest |
get(String host,
String requestURI)
Create an HTTP GET request to send to the server at the specified host and default port.
|
HttpClientRequest |
get(String host,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP GET request to send to the server at the specified host and default port, specifying a response handler to receive
the response
|
HttpClientRequest |
getAbs(String absoluteURI)
Create an HTTP GET request to send to the server using an absolute URI
|
HttpClientRequest |
getAbs(String absoluteURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP GET request to send to the server using an absolute URI, specifying a response handler to receive
the response
|
Metrics |
getMetrics()
Returns the metrics implementation.
|
HttpClient |
getNow(int port,
String host,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Sends an HTTP GET request to the server at the specified host and port, specifying a response handler to receive
the response
|
HttpClient |
getNow(String requestURI,
Handler<HttpClientResponse> responseHandler)
Sends an HTTP GET request to the server at the default host and port, specifying a response handler to receive
the response
|
HttpClient |
getNow(String host,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Sends an HTTP GET request to the server at the specified host and default port, specifying a response handler to receive
the response
|
HttpClientRequest |
head(int port,
String host,
String requestURI)
Create an HTTP HEAD request to send to the server at the specified host and port.
|
HttpClientRequest |
head(int port,
String host,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP HEAD request to send to the server at the specified host and port, specifying a response handler to receive
the response
|
HttpClientRequest |
head(String requestURI)
Create an HTTP HEAD request to send to the server at the default host and port.
|
HttpClientRequest |
head(String requestURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP HEAD request to send to the server at the default host and port, specifying a response handler to receive
the response
|
HttpClientRequest |
head(String host,
String requestURI)
Create an HTTP HEAD request to send to the server at the specified host and default port.
|
HttpClientRequest |
head(String host,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP HEAD request to send to the server at the specified host and default port, specifying a response handler to receive
the response
|
HttpClientRequest |
headAbs(String absoluteURI)
Create an HTTP HEAD request to send to the server using an absolute URI
|
HttpClientRequest |
headAbs(String absoluteURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP HEAD request to send to the server using an absolute URI, specifying a response handler to receive
the response
|
HttpClient |
headNow(int port,
String host,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Sends an HTTP HEAD request to the server at the specified host and port, specifying a response handler to receive
the response
|
HttpClient |
headNow(String requestURI,
Handler<HttpClientResponse> responseHandler)
Sends an HTTP HEAD request to the server at the default host and port, specifying a response handler to receive
the response
|
HttpClient |
headNow(String host,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Sends an HTTP HEAD request to the server at the specified host and default port, specifying a response handler to receive
the response
|
boolean |
isMetricsEnabled()
Whether the metrics are enabled for this measured object
|
HttpClientRequest |
options(int port,
String host,
String requestURI)
Create an HTTP OPTIONS request to send to the server at the specified host and port.
|
HttpClientRequest |
options(int port,
String host,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP OPTIONS request to send to the server at the specified host and port, specifying a response handler to receive
the response
|
HttpClientRequest |
options(String requestURI)
Create an HTTP OPTIONS request to send to the server at the default host and port.
|
HttpClientRequest |
options(String requestURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP OPTIONS request to send to the server at the default host and port, specifying a response handler to receive
the response
|
HttpClientRequest |
options(String host,
String requestURI)
Create an HTTP OPTIONS request to send to the server at the specified host and default port.
|
HttpClientRequest |
options(String host,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP OPTIONS request to send to the server at the specified host and default port, specifying a response handler to receive
the response
|
HttpClientRequest |
optionsAbs(String absoluteURI)
Create an HTTP OPTIONS request to send to the server using an absolute URI
|
HttpClientRequest |
optionsAbs(String absoluteURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP OPTIONS request to send to the server using an absolute URI, specifying a response handler to receive
the response
|
HttpClient |
optionsNow(int port,
String host,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Sends an HTTP OPTIONS request to the server at the specified host and port, specifying a response handler to receive
the response
|
HttpClient |
optionsNow(String requestURI,
Handler<HttpClientResponse> responseHandler)
Sends an HTTP OPTIONS request to the server at the default host and port, specifying a response handler to receive
the response
|
HttpClient |
optionsNow(String host,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Sends an HTTP OPTIONS request to the server at the specified host and default port, specifying a response handler to receive
the response
|
HttpClientRequest |
post(int port,
String host,
String requestURI)
Create an HTTP POST request to send to the server at the specified host and port.
|
HttpClientRequest |
post(int port,
String host,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP POST request to send to the server at the specified host and port, specifying a response handler to receive
the response
|
HttpClientRequest |
post(String requestURI)
Create an HTTP POST request to send to the server at the default host and port.
|
HttpClientRequest |
post(String requestURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP POST request to send to the server at the default host and port, specifying a response handler to receive
the response
|
HttpClientRequest |
post(String host,
String requestURI)
Create an HTTP POST request to send to the server at the specified host and default port.
|
HttpClientRequest |
post(String host,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP POST request to send to the server at the specified host and default port, specifying a response handler to receive
the response
|
HttpClientRequest |
postAbs(String absoluteURI)
Create an HTTP POST request to send to the server using an absolute URI
|
HttpClientRequest |
postAbs(String absoluteURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP POST request to send to the server using an absolute URI, specifying a response handler to receive
the response
|
HttpClientRequest |
put(int port,
String host,
String requestURI)
Create an HTTP PUT request to send to the server at the specified host and port.
|
HttpClientRequest |
put(int port,
String host,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP PUT request to send to the server at the specified host and port, specifying a response handler to receive
the response
|
HttpClientRequest |
put(String requestURI)
Create an HTTP PUT request to send to the server at the default host and port.
|
HttpClientRequest |
put(String requestURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP PUT request to send to the server at the default host and port, specifying a response handler to receive
the response
|
HttpClientRequest |
put(String host,
String requestURI)
Create an HTTP PUT request to send to the server at the specified host and default port.
|
HttpClientRequest |
put(String host,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP PUT request to send to the server at the specified host and default port, specifying a response handler to receive
the response
|
HttpClientRequest |
putAbs(String absoluteURI)
Create an HTTP PUT request to send to the server using an absolute URI
|
HttpClientRequest |
putAbs(String absoluteURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP PUT request to send to the server using an absolute URI, specifying a response handler to receive
the response
|
HttpClientRequest |
request(HttpMethod method,
int port,
String host,
String requestURI)
Create an HTTP request to send to the server at the specified host and port.
|
HttpClientRequest |
request(HttpMethod method,
int port,
String host,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP request to send to the server at the specified host and port, specifying a response handler to receive
the response
|
HttpClientRequest |
request(HttpMethod method,
String requestURI)
Create an HTTP request to send to the server at the default host and port.
|
HttpClientRequest |
request(HttpMethod method,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP request to send to the server at the default host and port, specifying a response handler to receive
the response
|
HttpClientRequest |
request(HttpMethod method,
String host,
String requestURI)
Create an HTTP request to send to the server at the specified host and default port.
|
HttpClientRequest |
request(HttpMethod method,
String host,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP request to send to the server at the specified host and default port, specifying a response handler to receive
the response
|
HttpClientRequest |
requestAbs(HttpMethod method,
String absoluteURI)
Create an HTTP request to send to the server using an absolute URI
|
HttpClientRequest |
requestAbs(HttpMethod method,
String absoluteURI,
Handler<HttpClientResponse> responseHandler)
Create an HTTP request to send to the server using an absolute URI, specifying a response handler to receive
the response
|
HttpClient |
websocket(int port,
String host,
String requestURI,
Handler<WebSocket> wsConnect)
Connect a WebSocket to the specified port, host and relative request URI
|
HttpClient |
websocket(int port,
String host,
String requestURI,
MultiMap headers,
Handler<WebSocket> wsConnect)
Connect a WebSocket to the specified port, host and relative request URI, and with the specified headers
|
HttpClient |
websocket(int port,
String host,
String requestURI,
MultiMap headers,
WebsocketVersion version,
Handler<WebSocket> wsConnect)
Connect a WebSocket to the specified port, host and relative request URI, with the specified headers and using
the specified version of WebSockets
|
HttpClient |
websocket(int port,
String host,
String requestURI,
MultiMap headers,
WebsocketVersion version,
String subProtocols,
Handler<WebSocket> wsConnect)
Connect a WebSocket to the specified port, host and relative request URI, with the specified headers, using
the specified version of WebSockets, and the specified websocket sub protocols
|
HttpClient |
websocket(String requestURI,
Handler<WebSocket> wsConnect)
Connect a WebSocket at the relative request URI using the default host and port
|
HttpClient |
websocket(String requestURI,
MultiMap headers,
Handler<WebSocket> wsConnect)
Connect a WebSocket at the relative request URI using the default host and port and the specified headers
|
HttpClient |
websocket(String requestURI,
MultiMap headers,
WebsocketVersion version,
Handler<WebSocket> wsConnect)
Connect a WebSocket at the relative request URI using the default host and port, the specified headers and the
specified version of WebSockets
|
HttpClient |
websocket(String requestURI,
MultiMap headers,
WebsocketVersion version,
String subProtocols,
Handler<WebSocket> wsConnect)
Connect a WebSocket at the relative request URI using the default host and port, the specified headers, the
specified version of WebSockets and the specified sub protocols
|
HttpClient |
websocket(String host,
String requestURI,
Handler<WebSocket> wsConnect)
Connect a WebSocket to the host and relative request URI and default port
|
HttpClient |
websocket(String host,
String requestURI,
MultiMap headers,
Handler<WebSocket> wsConnect)
Connect a WebSocket to the specified host,relative request UR, and default port and with the specified headers
|
HttpClient |
websocket(String host,
String requestURI,
MultiMap headers,
WebsocketVersion version,
Handler<WebSocket> wsConnect)
Connect a WebSocket to the specified host, relative request URI and default port with the specified headers and using
the specified version of WebSockets
|
HttpClient |
websocket(String host,
String requestURI,
MultiMap headers,
WebsocketVersion version,
String subProtocols,
Handler<WebSocket> wsConnect)
Connect a WebSocket to the specified host, relative request URI and default port, with the specified headers, using
the specified version of WebSockets, and the specified websocket sub protocols
|
WebSocketStream |
websocketStream(int port,
String host,
String requestURI)
Create a WebSocket stream to the specified port, host and relative request URI
|
WebSocketStream |
websocketStream(int port,
String host,
String requestURI,
MultiMap headers)
Create a WebSocket stream to the specified port, host and relative request URI, and with the specified headers
|
WebSocketStream |
websocketStream(int port,
String host,
String requestURI,
MultiMap headers,
WebsocketVersion version)
Create a WebSocket stream to the specified port, host and relative request URI, with the specified headers and using
the specified version of WebSockets
|
WebSocketStream |
websocketStream(int port,
String host,
String requestURI,
MultiMap headers,
WebsocketVersion version,
String subProtocols)
Create a WebSocket stream to the specified port, host and relative request URI, with the specified headers, using
the specified version of WebSockets, and the specified websocket sub protocols
|
WebSocketStream |
websocketStream(String requestURI)
Create a WebSocket stream at the relative request URI using the default host and port and the specified headers
|
WebSocketStream |
websocketStream(String requestURI,
MultiMap headers)
Create a WebSocket stream at the relative request URI using the default host and port and the specified headers
|
WebSocketStream |
websocketStream(String requestURI,
MultiMap headers,
WebsocketVersion version)
Create a WebSocket stream at the relative request URI using the default host and port, the specified headers and the
specified version of WebSockets
|
WebSocketStream |
websocketStream(String requestURI,
MultiMap headers,
WebsocketVersion version,
String subProtocols)
Create a WebSocket stream at the relative request URI using the default host and port, the specified headers, the
specified version of WebSockets and the specified sub protocols
|
WebSocketStream |
websocketStream(String host,
String requestURI)
Create a WebSocket stream to the specified host, relative request URI and default port
|
WebSocketStream |
websocketStream(String host,
String requestURI,
MultiMap headers)
Create a WebSocket stream to the specified host, relative request URI and default port and with the specified headers
|
WebSocketStream |
websocketStream(String host,
String requestURI,
MultiMap headers,
WebsocketVersion version)
Create a WebSocket stream to the specified host, relative request URI and default port and with the specified headers and using
the specified version of WebSockets
|
WebSocketStream |
websocketStream(String host,
String requestURI,
MultiMap headers,
WebsocketVersion version,
String subProtocols)
Create a WebSocket stream to the specified host, relative request URI and default port, with the specified headers, using
the specified version of WebSockets, and the specified websocket sub protocols
|
public HttpClientImpl(VertxInternal vertx, HttpClientOptions options)
public HttpClient websocket(int port, String host, String requestURI, Handler<WebSocket> wsConnect)
HttpClient
websocket
in interface HttpClient
port
- the porthost
- the hostrequestURI
- the relative URIwsConnect
- handler that will be called with the websocket when connectedpublic HttpClient websocket(String host, String requestURI, Handler<WebSocket> wsConnect)
HttpClient
websocket
in interface HttpClient
host
- the hostrequestURI
- the relative URIwsConnect
- handler that will be called with the websocket when connectedpublic HttpClient websocket(int port, String host, String requestURI, MultiMap headers, Handler<WebSocket> wsConnect)
HttpClient
websocket
in interface HttpClient
port
- the porthost
- the hostrequestURI
- the relative URIheaders
- the headerswsConnect
- handler that will be called with the websocket when connectedpublic HttpClient websocket(String host, String requestURI, MultiMap headers, Handler<WebSocket> wsConnect)
HttpClient
websocket
in interface HttpClient
host
- the hostrequestURI
- the relative URIheaders
- the headerswsConnect
- handler that will be called with the websocket when connectedpublic HttpClient websocket(int port, String host, String requestURI, MultiMap headers, WebsocketVersion version, Handler<WebSocket> wsConnect)
HttpClient
websocket
in interface HttpClient
port
- the porthost
- the hostrequestURI
- the relative URIheaders
- the headersversion
- the websocket versionwsConnect
- handler that will be called with the websocket when connectedpublic HttpClient websocket(String host, String requestURI, MultiMap headers, WebsocketVersion version, Handler<WebSocket> wsConnect)
HttpClient
websocket
in interface HttpClient
host
- the hostrequestURI
- the relative URIheaders
- the headersversion
- the websocket versionwsConnect
- handler that will be called with the websocket when connectedpublic HttpClient websocket(int port, String host, String requestURI, MultiMap headers, WebsocketVersion version, String subProtocols, Handler<WebSocket> wsConnect)
HttpClient
websocket
in interface HttpClient
port
- the porthost
- the hostrequestURI
- the relative URIheaders
- the headersversion
- the websocket versionsubProtocols
- the subprotocols to usewsConnect
- handler that will be called with the websocket when connectedpublic HttpClient websocket(String host, String requestURI, MultiMap headers, WebsocketVersion version, String subProtocols, Handler<WebSocket> wsConnect)
HttpClient
websocket
in interface HttpClient
host
- the hostrequestURI
- the relative URIheaders
- the headersversion
- the websocket versionsubProtocols
- the subprotocols to usewsConnect
- handler that will be called with the websocket when connectedpublic HttpClient websocket(String requestURI, Handler<WebSocket> wsConnect)
HttpClient
websocket
in interface HttpClient
requestURI
- the relative URIwsConnect
- handler that will be called with the websocket when connectedpublic HttpClient websocket(String requestURI, MultiMap headers, Handler<WebSocket> wsConnect)
HttpClient
websocket
in interface HttpClient
requestURI
- the relative URIheaders
- the headerswsConnect
- handler that will be called with the websocket when connectedpublic HttpClient websocket(String requestURI, MultiMap headers, WebsocketVersion version, Handler<WebSocket> wsConnect)
HttpClient
websocket
in interface HttpClient
requestURI
- the relative URIheaders
- the headersversion
- the websocket versionwsConnect
- handler that will be called with the websocket when connectedpublic HttpClient websocket(String requestURI, MultiMap headers, WebsocketVersion version, String subProtocols, Handler<WebSocket> wsConnect)
HttpClient
websocket
in interface HttpClient
requestURI
- the relative URIheaders
- the headersversion
- the websocket versionsubProtocols
- the subprotocolswsConnect
- handler that will be called with the websocket when connectedpublic WebSocketStream websocketStream(int port, String host, String requestURI)
HttpClient
websocketStream
in interface HttpClient
port
- the porthost
- the hostrequestURI
- the relative URIpublic WebSocketStream websocketStream(String host, String requestURI)
HttpClient
websocketStream
in interface HttpClient
host
- the hostrequestURI
- the relative URIpublic WebSocketStream websocketStream(int port, String host, String requestURI, MultiMap headers)
HttpClient
websocketStream
in interface HttpClient
port
- the porthost
- the hostrequestURI
- the relative URIheaders
- the headerspublic WebSocketStream websocketStream(String host, String requestURI, MultiMap headers)
HttpClient
websocketStream
in interface HttpClient
host
- the hostrequestURI
- the relative URIheaders
- the headerspublic WebSocketStream websocketStream(int port, String host, String requestURI, MultiMap headers, WebsocketVersion version)
HttpClient
websocketStream
in interface HttpClient
port
- the porthost
- the hostrequestURI
- the relative URIheaders
- the headersversion
- the websocket versionpublic WebSocketStream websocketStream(String host, String requestURI, MultiMap headers, WebsocketVersion version)
HttpClient
websocketStream
in interface HttpClient
host
- the hostrequestURI
- the relative URIheaders
- the headersversion
- the websocket versionpublic WebSocketStream websocketStream(int port, String host, String requestURI, MultiMap headers, WebsocketVersion version, String subProtocols)
HttpClient
websocketStream
in interface HttpClient
port
- the porthost
- the hostrequestURI
- the relative URIheaders
- the headersversion
- the websocket versionsubProtocols
- the subprotocols to usepublic WebSocketStream websocketStream(String host, String requestURI, MultiMap headers, WebsocketVersion version, String subProtocols)
HttpClient
websocketStream
in interface HttpClient
host
- the hostrequestURI
- the relative URIheaders
- the headersversion
- the websocket versionsubProtocols
- the subprotocols to usepublic WebSocketStream websocketStream(String requestURI)
HttpClient
websocketStream
in interface HttpClient
requestURI
- the relative URIpublic WebSocketStream websocketStream(String requestURI, MultiMap headers)
HttpClient
websocketStream
in interface HttpClient
requestURI
- the relative URIheaders
- the headerspublic WebSocketStream websocketStream(String requestURI, MultiMap headers, WebsocketVersion version)
HttpClient
websocketStream
in interface HttpClient
requestURI
- the relative URIheaders
- the headersversion
- the websocket versionpublic WebSocketStream websocketStream(String requestURI, MultiMap headers, WebsocketVersion version, String subProtocols)
HttpClient
websocketStream
in interface HttpClient
requestURI
- the relative URIheaders
- the headersversion
- the websocket versionsubProtocols
- the subprotocolspublic HttpClientRequest requestAbs(HttpMethod method, String absoluteURI, Handler<HttpClientResponse> responseHandler)
HttpClient
requestAbs
in interface HttpClient
method
- the HTTP methodabsoluteURI
- the absolute URIresponseHandler
- the response handlerpublic HttpClientRequest request(HttpMethod method, int port, String host, String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClient
request
in interface HttpClient
method
- the HTTP methodport
- the porthost
- the hostrequestURI
- the relative URIresponseHandler
- the response handlerpublic HttpClientRequest request(HttpMethod method, String host, String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClient
request
in interface HttpClient
method
- the HTTP methodhost
- the hostrequestURI
- the relative URIresponseHandler
- the response handlerpublic HttpClientRequest request(HttpMethod method, String requestURI)
HttpClient
request
in interface HttpClient
method
- the HTTP methodrequestURI
- the relative URIpublic HttpClientRequest request(HttpMethod method, String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClient
request
in interface HttpClient
method
- the HTTP methodrequestURI
- the relative URIresponseHandler
- the response handlerpublic HttpClientRequest requestAbs(HttpMethod method, String absoluteURI)
HttpClient
requestAbs
in interface HttpClient
method
- the HTTP methodabsoluteURI
- the absolute URIpublic HttpClientRequest request(HttpMethod method, int port, String host, String requestURI)
HttpClient
request
in interface HttpClient
method
- the HTTP methodport
- the porthost
- the hostrequestURI
- the relative URIpublic HttpClientRequest request(HttpMethod method, String host, String requestURI)
HttpClient
request
in interface HttpClient
method
- the HTTP methodhost
- the hostrequestURI
- the relative URIpublic HttpClientRequest get(int port, String host, String requestURI)
HttpClient
get
in interface HttpClient
port
- the porthost
- the hostrequestURI
- the relative URIpublic HttpClientRequest get(String host, String requestURI)
HttpClient
get
in interface HttpClient
host
- the hostrequestURI
- the relative URIpublic HttpClientRequest get(int port, String host, String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClient
get
in interface HttpClient
port
- the porthost
- the hostrequestURI
- the relative URIresponseHandler
- the response handlerpublic HttpClientRequest get(String host, String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClient
get
in interface HttpClient
host
- the hostrequestURI
- the relative URIresponseHandler
- the response handlerpublic HttpClientRequest get(String requestURI)
HttpClient
get
in interface HttpClient
requestURI
- the relative URIpublic HttpClientRequest get(String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClient
get
in interface HttpClient
requestURI
- the relative URIresponseHandler
- the response handlerpublic HttpClientRequest getAbs(String absoluteURI)
HttpClient
getAbs
in interface HttpClient
absoluteURI
- the absolute URIpublic HttpClientRequest getAbs(String absoluteURI, Handler<HttpClientResponse> responseHandler)
HttpClient
getAbs
in interface HttpClient
absoluteURI
- the absolute URIresponseHandler
- the response handlerpublic HttpClient getNow(int port, String host, String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClient
getNow
in interface HttpClient
port
- the porthost
- the hostrequestURI
- the relative URIresponseHandler
- the response handlerpublic HttpClient getNow(String host, String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClient
getNow
in interface HttpClient
host
- the hostrequestURI
- the relative URIresponseHandler
- the response handlerpublic HttpClient getNow(String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClient
getNow
in interface HttpClient
requestURI
- the relative URIresponseHandler
- the response handlerpublic HttpClientRequest post(int port, String host, String requestURI)
HttpClient
post
in interface HttpClient
port
- the porthost
- the hostrequestURI
- the relative URIpublic HttpClientRequest post(String host, String requestURI)
HttpClient
post
in interface HttpClient
host
- the hostrequestURI
- the relative URIpublic HttpClientRequest post(int port, String host, String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClient
post
in interface HttpClient
port
- the porthost
- the hostrequestURI
- the relative URIresponseHandler
- the response handlerpublic HttpClientRequest post(String host, String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClient
post
in interface HttpClient
host
- the hostrequestURI
- the relative URIresponseHandler
- the response handlerpublic HttpClientRequest post(String requestURI)
HttpClient
post
in interface HttpClient
requestURI
- the relative URIpublic HttpClientRequest post(String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClient
post
in interface HttpClient
requestURI
- the relative URIresponseHandler
- the response handlerpublic HttpClientRequest postAbs(String absoluteURI)
HttpClient
postAbs
in interface HttpClient
absoluteURI
- the absolute URIpublic HttpClientRequest postAbs(String absoluteURI, Handler<HttpClientResponse> responseHandler)
HttpClient
postAbs
in interface HttpClient
absoluteURI
- the absolute URIresponseHandler
- the response handlerpublic HttpClientRequest head(int port, String host, String requestURI)
HttpClient
head
in interface HttpClient
port
- the porthost
- the hostrequestURI
- the relative URIpublic HttpClientRequest head(String host, String requestURI)
HttpClient
head
in interface HttpClient
host
- the hostrequestURI
- the relative URIpublic HttpClientRequest head(int port, String host, String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClient
head
in interface HttpClient
port
- the porthost
- the hostrequestURI
- the relative URIresponseHandler
- the response handlerpublic HttpClientRequest head(String host, String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClient
head
in interface HttpClient
host
- the hostrequestURI
- the relative URIresponseHandler
- the response handlerpublic HttpClientRequest head(String requestURI)
HttpClient
head
in interface HttpClient
requestURI
- the relative URIpublic HttpClientRequest head(String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClient
head
in interface HttpClient
requestURI
- the relative URIresponseHandler
- the response handlerpublic HttpClientRequest headAbs(String absoluteURI)
HttpClient
headAbs
in interface HttpClient
absoluteURI
- the absolute URIpublic HttpClientRequest headAbs(String absoluteURI, Handler<HttpClientResponse> responseHandler)
HttpClient
headAbs
in interface HttpClient
absoluteURI
- the absolute URIresponseHandler
- the response handlerpublic HttpClient headNow(int port, String host, String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClient
headNow
in interface HttpClient
port
- the porthost
- the hostrequestURI
- the relative URIresponseHandler
- the response handlerpublic HttpClient headNow(String host, String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClient
headNow
in interface HttpClient
host
- the hostrequestURI
- the relative URIresponseHandler
- the response handlerpublic HttpClient headNow(String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClient
headNow
in interface HttpClient
requestURI
- the relative URIresponseHandler
- the response handlerpublic HttpClientRequest options(int port, String host, String requestURI)
HttpClient
options
in interface HttpClient
port
- the porthost
- the hostrequestURI
- the relative URIpublic HttpClientRequest options(String host, String requestURI)
HttpClient
options
in interface HttpClient
host
- the hostrequestURI
- the relative URIpublic HttpClientRequest options(int port, String host, String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClient
options
in interface HttpClient
port
- the porthost
- the hostrequestURI
- the relative URIresponseHandler
- the response handlerpublic HttpClientRequest options(String host, String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClient
options
in interface HttpClient
host
- the hostrequestURI
- the relative URIresponseHandler
- the response handlerpublic HttpClientRequest options(String requestURI)
HttpClient
options
in interface HttpClient
requestURI
- the relative URIpublic HttpClientRequest options(String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClient
options
in interface HttpClient
requestURI
- the relative URIresponseHandler
- the response handlerpublic HttpClientRequest optionsAbs(String absoluteURI)
HttpClient
optionsAbs
in interface HttpClient
absoluteURI
- the absolute URIpublic HttpClientRequest optionsAbs(String absoluteURI, Handler<HttpClientResponse> responseHandler)
HttpClient
optionsAbs
in interface HttpClient
absoluteURI
- the absolute URIresponseHandler
- the response handlerpublic HttpClient optionsNow(int port, String host, String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClient
optionsNow
in interface HttpClient
port
- the porthost
- the hostrequestURI
- the relative URIresponseHandler
- the response handlerpublic HttpClient optionsNow(String host, String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClient
optionsNow
in interface HttpClient
host
- the hostrequestURI
- the relative URIresponseHandler
- the response handlerpublic HttpClient optionsNow(String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClient
optionsNow
in interface HttpClient
requestURI
- the relative URIresponseHandler
- the response handlerpublic HttpClientRequest put(int port, String host, String requestURI)
HttpClient
put
in interface HttpClient
port
- the porthost
- the hostrequestURI
- the relative URIpublic HttpClientRequest put(String host, String requestURI)
HttpClient
put
in interface HttpClient
host
- the hostrequestURI
- the relative URIpublic HttpClientRequest put(int port, String host, String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClient
put
in interface HttpClient
port
- the porthost
- the hostrequestURI
- the relative URIresponseHandler
- the response handlerpublic HttpClientRequest put(String host, String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClient
put
in interface HttpClient
host
- the hostrequestURI
- the relative URIresponseHandler
- the response handlerpublic HttpClientRequest put(String requestURI)
HttpClient
put
in interface HttpClient
requestURI
- the relative URIpublic HttpClientRequest put(String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClient
put
in interface HttpClient
requestURI
- the relative URIresponseHandler
- the response handlerpublic HttpClientRequest putAbs(String absoluteURI)
HttpClient
putAbs
in interface HttpClient
absoluteURI
- the absolute URIpublic HttpClientRequest putAbs(String absoluteURI, Handler<HttpClientResponse> responseHandler)
HttpClient
putAbs
in interface HttpClient
absoluteURI
- the absolute URIresponseHandler
- the response handlerpublic HttpClientRequest delete(int port, String host, String requestURI)
HttpClient
delete
in interface HttpClient
port
- the porthost
- the hostrequestURI
- the relative URIpublic HttpClientRequest delete(String host, String requestURI)
HttpClient
delete
in interface HttpClient
host
- the hostrequestURI
- the relative URIpublic HttpClientRequest delete(int port, String host, String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClient
delete
in interface HttpClient
port
- the porthost
- the hostrequestURI
- the relative URIresponseHandler
- the response handlerpublic HttpClientRequest delete(String host, String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClient
delete
in interface HttpClient
host
- the hostrequestURI
- the relative URIresponseHandler
- the response handlerpublic HttpClientRequest delete(String requestURI)
HttpClient
delete
in interface HttpClient
requestURI
- the relative URIpublic HttpClientRequest delete(String requestURI, Handler<HttpClientResponse> responseHandler)
HttpClient
delete
in interface HttpClient
requestURI
- the relative URIresponseHandler
- the response handlerpublic HttpClientRequest deleteAbs(String absoluteURI)
HttpClient
deleteAbs
in interface HttpClient
absoluteURI
- the absolute URIpublic HttpClientRequest deleteAbs(String absoluteURI, Handler<HttpClientResponse> responseHandler)
HttpClient
deleteAbs
in interface HttpClient
absoluteURI
- the absolute URIresponseHandler
- the response handlerpublic void close()
HttpClient
close
in interface HttpClient
public boolean isMetricsEnabled()
Measured
isMetricsEnabled
in interface Measured
public Metrics getMetrics()
MetricsProvider
getMetrics
in interface MetricsProvider
Copyright © 2015. All Rights Reserved.