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
WebClientand 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
originalnon 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 WebClientSessionaddHeader(String name, String value)static WebClientSessioncreate(WebClient webClient)booleanequals(Object o)io.vertx.ext.web.client.WebClientSessiongetDelegate()inthashCode()static WebClientSessionnewInstance(io.vertx.ext.web.client.WebClientSession arg)WebClientSessionremoveHeader(String name)StringtoString()-
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:
getDelegatein 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)
-
-