Class WebClientSession
java.lang.Object
io.vertx.rxjava3.ext.web.client.WebClient
io.vertx.rxjava3.ext.web.client.WebClientSession
- All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate
An asynchronous sessions aware HTTP / HTTP/2 client called
WebClientSession.
This client wraps a WebClient and makes it session aware adding features to it:
- Per client headers, to be send with every request
- Per client cookies, to be send with every request
- Automatic storage and sending of cookies received from the server(s)
The client honors the cookies attributes:
- domain
- path
- secure
- max-age and expires
NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWebClientSession(WebClientSession delegate) WebClientSession(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionaddHeader(CharSequence name, CharSequence value) Configure the client to add an HTTP header to every request.addHeader(CharSequence name, Iterable<CharSequence> values) Configure the client to add an HTTP header to every request.Configure the client to add an HTTP header to every request.Configure the client to add an HTTP header to every request.Returns this client'sCookieStorestatic WebClientSessionCreate a session aware web client using the providedwebClientinstance.static WebClientSessioncreate(WebClient webClient, CookieStore cookieStore) Create a session aware web client using the providedwebClientinstance.booleaninthashCode()static WebClientSessionremoveHeader(CharSequence name) Removes a previously added header.removeHeader(String name) Removes a previously added header.toString()Methods inherited from class WebClient
close, create, create, create, create, create, 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, request, requestAbs, requestAbs, requestAbs, requestAbs, rxUpdateSSLOptions, rxUpdateSSLOptions, updateSSLOptions, updateSSLOptions, wrap, wrap
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
WebClientSession
-
WebClientSession
-
-
Method Details
-
toString
-
equals
-
hashCode
-
getDelegate
- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate- Overrides:
getDelegatein classWebClient
-
create
Create a session aware web client using the providedwebClientinstance.- Parameters:
webClient- the web client instance- Returns:
- the created client
-
addHeader
Configure the client to add an HTTP header to every request.- Parameters:
name- the header namevalue- the header value- Returns:
- a reference to this, so the API can be used fluently
-
removeHeader
Removes a previously added header.- Parameters:
name- the header name- Returns:
- a reference to this, so the API can be used fluently
-
create
Create a session aware web client using the providedwebClientinstance.- Parameters:
webClient- the web client instancecookieStore-- Returns:
- the created client
-
addHeader
Configure the client to add an HTTP header to every request.- Parameters:
name- the header namevalue- the header value- Returns:
- a reference to this, so the API can be used fluently
-
addHeader
Configure the client to add an HTTP header to every request.- Parameters:
name- the header namevalues- the header value- Returns:
- a reference to this, so the API can be used fluently
-
addHeader
Configure the client to add an HTTP header to every request.- Parameters:
name- the header namevalues- the header value- Returns:
- a reference to this, so the API can be used fluently
-
removeHeader
Removes a previously added header.- Parameters:
name- the header name- Returns:
- a reference to this, so the API can be used fluently
-
cookieStore
Returns this client'sCookieStoreAll 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.
- Returns:
- this client's cookie store
-
newInstance
-