Package io.vertx.mutiny.ext.web.client
Class OAuth2WebClient
- java.lang.Object
-
- io.vertx.mutiny.ext.web.client.WebClient
-
- io.vertx.mutiny.ext.web.client.OAuth2WebClient
-
public class OAuth2WebClient extends WebClient
An asynchronous OAuth2/OIDC aware HTTP / HTTP/2 client calledWebClientOAuth2
.This client wraps a
WebClient
and makes it session aware adding features to it:- Request an
access_token
if no user is created - Refresh
access_token
if current user is expired
original
non Mutiny-ified interface using Vert.x codegen. - Request an
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<OAuth2WebClient>
__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description OAuth2WebClient(io.vertx.ext.web.client.OAuth2WebClient delegate)
OAuth2WebClient(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OAuth2WebClient
create(WebClient webClient, OAuth2Auth oAuth2Auth)
static OAuth2WebClient
create(WebClient webClient, OAuth2Auth oAuth2Auth, io.vertx.ext.web.client.OAuth2WebClientOptions options)
boolean
equals(Object o)
io.vertx.ext.web.client.OAuth2WebClient
getDelegate()
int
hashCode()
static OAuth2WebClient
newInstance(io.vertx.ext.web.client.OAuth2WebClient arg)
String
toString()
OAuth2WebClient
withCredentials(io.vertx.ext.auth.authentication.Credentials credentials)
-
Methods inherited from class io.vertx.mutiny.ext.web.client.WebClient
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, wrap, wrap
-
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<OAuth2WebClient> __TYPE_ARG
-
-
Constructor Detail
-
OAuth2WebClient
public OAuth2WebClient(io.vertx.ext.web.client.OAuth2WebClient delegate)
-
OAuth2WebClient
public OAuth2WebClient(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.ext.web.client.OAuth2WebClient getDelegate()
- Overrides:
getDelegate
in classWebClient
-
create
public static OAuth2WebClient create(WebClient webClient, OAuth2Auth oAuth2Auth)
- Parameters:
webClient
- the web client instanceoAuth2Auth
- Configured oAuth2Auth provider to be used whenwithCredentials(io.vertx.ext.auth.authentication.Credentials)
used- Returns:
- the created client
-
create
public static OAuth2WebClient create(WebClient webClient, OAuth2Auth oAuth2Auth, io.vertx.ext.web.client.OAuth2WebClientOptions options)
- Parameters:
webClient
- the web client instanceoAuth2Auth
- Configured oAuth2Auth provider to be used whenwithCredentials(io.vertx.ext.auth.authentication.Credentials)
usedoptions
- extra configuration for this object- Returns:
- the created client
-
withCredentials
public OAuth2WebClient withCredentials(io.vertx.ext.auth.authentication.Credentials credentials)
- Parameters:
credentials
-- Returns:
- a reference to this, so the API can be used fluently
-
newInstance
public static OAuth2WebClient newInstance(io.vertx.ext.web.client.OAuth2WebClient arg)
-
-