-
public interface WebClient
Base client which is used to perform requests.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
WebClient.Builder
Fluent API builder forWebClient
.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static WebClient.Builder
builder()
Fluent API builder for client.static WebClient
create()
Create a new WebClient.static WebClient
create(Config config)
Create a new WebClient based onConfig
.WebClientRequestBuilder
delete()
Create a request builder for a delete method.WebClientRequestBuilder
get()
Create a request builder for a get method.WebClientRequestBuilder
head()
Create a request builder for a head method.WebClientRequestBuilder
method(Http.RequestMethod method)
Create a request builder for a method based on method parameter.WebClientRequestBuilder
method(String method)
Create a request builder for a method based on method parameter.WebClientRequestBuilder
options()
Create a request builder for a options method.WebClientRequestBuilder
post()
Create a request builder for a post method.WebClientRequestBuilder
put()
Create a request builder for a put method.WebClientRequestBuilder
trace()
Create a request builder for a trace method.
-
-
-
Method Detail
-
create
static WebClient create()
Create a new WebClient.- Returns:
- client
-
create
static WebClient create(Config config)
Create a new WebClient based onConfig
.- Parameters:
config
- client config- Returns:
- client
-
builder
static WebClient.Builder builder()
Fluent API builder for client.- Returns:
- client builder
-
put
WebClientRequestBuilder put()
Create a request builder for a put method.- Returns:
- client request builder
-
get
WebClientRequestBuilder get()
Create a request builder for a get method.- Returns:
- client request builder
-
post
WebClientRequestBuilder post()
Create a request builder for a post method.- Returns:
- client request builder
-
delete
WebClientRequestBuilder delete()
Create a request builder for a delete method.- Returns:
- client request builder
-
options
WebClientRequestBuilder options()
Create a request builder for a options method.- Returns:
- client request builder
-
trace
WebClientRequestBuilder trace()
Create a request builder for a trace method.- Returns:
- client request builder
-
head
WebClientRequestBuilder head()
Create a request builder for a head method.- Returns:
- client request builder
-
method
WebClientRequestBuilder method(String method)
Create a request builder for a method based on method parameter.- Parameters:
method
- request method- Returns:
- client request builder
-
method
WebClientRequestBuilder method(Http.RequestMethod method)
Create a request builder for a method based on method parameter.- Parameters:
method
- request method- Returns:
- client request builder
-
-