|
|
|
|
@ -117,6 +117,16 @@ public interface WebClient {
@@ -117,6 +117,16 @@ public interface WebClient {
|
|
|
|
|
|
|
|
|
|
// Static, factory methods
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Shortcut for: |
|
|
|
|
* <pre class="code"> |
|
|
|
|
* WebClient client = builder().build(); |
|
|
|
|
* </pre> |
|
|
|
|
*/ |
|
|
|
|
static WebClient create() { |
|
|
|
|
return new DefaultWebClientBuilder().build(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Shortcut for: |
|
|
|
|
* <pre class="code"> |
|
|
|
|
@ -128,6 +138,13 @@ public interface WebClient {
@@ -128,6 +138,13 @@ public interface WebClient {
|
|
|
|
|
return new DefaultWebClientBuilder(baseUrl).build(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Obtain a {@code WebClient} builder. |
|
|
|
|
*/ |
|
|
|
|
static WebClient.Builder builder() { |
|
|
|
|
return new DefaultWebClientBuilder(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Obtain a {@code WebClient} builder with a base URI to be used as the |
|
|
|
|
* base for expanding URI templates during exchanges. The given String |
|
|
|
|
|