Package io.vertx.mutiny.ext.web.client
Class WebClientSession
- java.lang.Object
-
- io.vertx.mutiny.ext.web.client.WebClient
-
- io.vertx.mutiny.ext.web.client.WebClientSession
-
public class WebClientSession extends WebClient
An asynchronous sessions aware HTTP / HTTP/2 client calledWebClientSession
.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
original
non Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<WebClientSession>
__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description WebClientSession(io.vertx.ext.web.client.WebClientSession delegate)
WebClientSession(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description WebClientSession
addHeader(String name, String value)
static WebClientSession
create(WebClient webClient)
boolean
equals(Object o)
io.vertx.ext.web.client.WebClientSession
getDelegate()
int
hashCode()
static WebClientSession
newInstance(io.vertx.ext.web.client.WebClientSession arg)
WebClientSession
removeHeader(String name)
String
toString()
-
Methods inherited from class io.vertx.mutiny.ext.web.client.WebClient
close, create, create, delete, delete, delete, deleteAbs, get, get, get, getAbs, head, head, head, headAbs, newInstance, patch, patch, patch, patchAbs, post, post, post, postAbs, put, put, put, putAbs, request, request, request, request, request, request, request, request, requestAbs, requestAbs, wrap, wrap
-
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<WebClientSession> __TYPE_ARG
-
-
Constructor Detail
-
WebClientSession
public WebClientSession(io.vertx.ext.web.client.WebClientSession delegate)
-
WebClientSession
public WebClientSession(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.ext.web.client.WebClientSession getDelegate()
- Overrides:
getDelegate
in classWebClient
-
create
public static WebClientSession create(WebClient webClient)
- Parameters:
webClient
- the web client instance- Returns:
- the created client
-
addHeader
public WebClientSession addHeader(String name, String value)
- Parameters:
name
- the header namevalue
- the header value- Returns:
- a reference to this, so the API can be used fluently
-
removeHeader
public WebClientSession removeHeader(String name)
- Parameters:
name
- the header name- Returns:
- a reference to this, so the API can be used fluently
-
newInstance
public static WebClientSession newInstance(io.vertx.ext.web.client.WebClientSession arg)
-
-