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
WebClientand makes it session aware adding features to it:- Request an
access_tokenif no user is created - Refresh
access_tokenif current user is expired
NOTE: This class has been automatically generated from theoriginalnon 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 OAuth2WebClientcreate(WebClient webClient, OAuth2Auth oAuth2Auth)static OAuth2WebClientcreate(WebClient webClient, OAuth2Auth oAuth2Auth, io.vertx.ext.web.client.OAuth2WebClientOptions options)booleanequals(Object o)io.vertx.ext.web.client.OAuth2WebClientgetDelegate()inthashCode()static OAuth2WebClientnewInstance(io.vertx.ext.web.client.OAuth2WebClient arg)StringtoString()OAuth2WebClientwithCredentials(io.vertx.ext.auth.authentication.Credentials credentials)-
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<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:
getDelegatein 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)
-
-