public class RestClient extends Object
RestServerEndpoint
.Constructor and Description |
---|
RestClient(RestClientConfiguration configuration,
Executor executor) |
Modifier and Type | Method and Description |
---|---|
<M extends MessageHeaders<EmptyRequestBody,P,EmptyMessageParameters>,P extends ResponseBody> |
sendRequest(String targetAddress,
int targetPort,
M messageHeaders) |
<M extends MessageHeaders<R,P,EmptyMessageParameters>,R extends RequestBody,P extends ResponseBody> |
sendRequest(String targetAddress,
int targetPort,
M messageHeaders,
R request) |
<M extends MessageHeaders<EmptyRequestBody,P,U>,U extends MessageParameters,P extends ResponseBody> |
sendRequest(String targetAddress,
int targetPort,
M messageHeaders,
U messageParameters) |
<M extends MessageHeaders<R,P,U>,U extends MessageParameters,R extends RequestBody,P extends ResponseBody> |
sendRequest(String targetAddress,
int targetPort,
M messageHeaders,
U messageParameters,
R request) |
void |
shutdown(Time timeout) |
public RestClient(RestClientConfiguration configuration, Executor executor)
public void shutdown(Time timeout)
public <M extends MessageHeaders<EmptyRequestBody,P,U>,U extends MessageParameters,P extends ResponseBody> CompletableFuture<P> sendRequest(String targetAddress, int targetPort, M messageHeaders, U messageParameters) throws IOException
IOException
public <M extends MessageHeaders<R,P,EmptyMessageParameters>,R extends RequestBody,P extends ResponseBody> CompletableFuture<P> sendRequest(String targetAddress, int targetPort, M messageHeaders, R request) throws IOException
IOException
public <M extends MessageHeaders<EmptyRequestBody,P,EmptyMessageParameters>,P extends ResponseBody> CompletableFuture<P> sendRequest(String targetAddress, int targetPort, M messageHeaders) throws IOException
IOException
public <M extends MessageHeaders<R,P,U>,U extends MessageParameters,R extends RequestBody,P extends ResponseBody> CompletableFuture<P> sendRequest(String targetAddress, int targetPort, M messageHeaders, U messageParameters, R request) throws IOException
IOException
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.