public class WebClientSession extends WebClient
WebClientSession
.
This client wraps a WebClient
and makes it session aware adding features to it:
The client honors the cookies attributes:
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<WebClientSession> |
__TYPE_ARG |
Constructor and Description |
---|
WebClientSession(Object delegate) |
WebClientSession(WebClientSession delegate) |
Modifier and Type | Method and Description |
---|---|
WebClientSession |
addHeader(CharSequence name,
CharSequence value)
Configure the client to add an HTTP header to every request.
|
WebClientSession |
addHeader(CharSequence name,
Iterable<CharSequence> values)
Configure the client to add an HTTP header to every request.
|
WebClientSession |
addHeader(String name,
Iterable<String> values)
Configure the client to add an HTTP header to every request.
|
WebClientSession |
addHeader(String name,
String value)
Configure the client to add an HTTP header to every request.
|
CookieStore |
cookieStore()
Returns this client's
CookieStore |
static WebClientSession |
create(WebClient webClient)
Create a session aware web client using the provided
webClient instance. |
static WebClientSession |
create(WebClient webClient,
CookieStore cookieStore)
Create a session aware web client using the provided
webClient instance. |
boolean |
equals(Object o) |
WebClientSession |
getDelegate() |
int |
hashCode() |
static WebClientSession |
newInstance(WebClientSession arg) |
WebClientSession |
removeHeader(CharSequence name)
Removes a previously added header.
|
WebClientSession |
removeHeader(String name)
Removes a previously added header.
|
String |
toString() |
close, create, create, delete, delete, delete, delete, delete, delete, deleteAbs, deleteAbs, get, get, get, get, get, get, getAbs, getAbs, head, head, head, head, head, head, headAbs, headAbs, newInstance, patch, patch, patch, patch, patch, patch, patchAbs, patchAbs, post, post, post, post, post, post, postAbs, postAbs, put, put, put, put, put, put, putAbs, putAbs, request, request, request, request, request, request, request, request, request, request, request, request, request, request, requestAbs, requestAbs, requestAbs, requestAbs, rxUpdateSSLOptions, rxUpdateSSLOptions, updateSSLOptions, updateSSLOptions, wrap, wrap
public static final io.vertx.lang.rx.TypeArg<WebClientSession> __TYPE_ARG
public WebClientSession(WebClientSession delegate)
public WebClientSession(Object delegate)
public WebClientSession getDelegate()
getDelegate
in class WebClient
public static WebClientSession create(WebClient webClient)
webClient
instance.webClient
- the web client instancepublic WebClientSession addHeader(String name, String value)
name
- the header namevalue
- the header valuepublic WebClientSession removeHeader(String name)
name
- the header namepublic static WebClientSession create(WebClient webClient, CookieStore cookieStore)
webClient
instance.webClient
- the web client instancecookieStore
- public WebClientSession addHeader(CharSequence name, CharSequence value)
name
- the header namevalue
- the header valuepublic WebClientSession addHeader(CharSequence name, Iterable<CharSequence> values)
name
- the header namevalues
- the header valuepublic WebClientSession addHeader(String name, Iterable<String> values)
name
- the header namevalues
- the header valuepublic WebClientSession removeHeader(CharSequence name)
name
- the header namepublic CookieStore cookieStore()
CookieStore
All cookies added to this store will be sent with every request. The CookieStore honors the domain, path, secure and max-age properties of received cookies and is automatically updated with cookies present in responses received by this client.
public static WebClientSession newInstance(WebClientSession arg)
Copyright © 2024 Eclipse. All rights reserved.