public class OAuth2WebClient extends WebClient
WebClientOAuth2
.
This client wraps a WebClient
and makes it session aware adding features to it:
access_token
if no user is createdaccess_token
if current user is expiredNOTE: This class has been automatically generated from the
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<OAuth2WebClient> |
__TYPE_ARG |
Constructor and Description |
---|
OAuth2WebClient(OAuth2WebClient delegate) |
OAuth2WebClient(Object delegate) |
Modifier and Type | Method and Description |
---|---|
static OAuth2WebClient |
create(WebClient webClient,
OAuth2Auth oAuth2Auth)
Create a session aware web client using the provided
webClient instance. |
static OAuth2WebClient |
create(WebClient webClient,
OAuth2Auth oAuth2Auth,
OAuth2WebClientOptions options)
Create a session aware web client using the provided
webClient instance. |
boolean |
equals(Object o) |
OAuth2WebClient |
getDelegate() |
User |
getUser()
Get the authenticated user (if any) that is associated with this client.
|
int |
hashCode() |
static OAuth2WebClient |
newInstance(OAuth2WebClient arg) |
String |
toString() |
OAuth2WebClient |
withCredentials(Credentials credentials)
Mark that request should be dispatched with authentication obtained from passed
OAuth2Auth provider |
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, rxUpdateSSLOptions, rxUpdateSSLOptions, updateSSLOptions, updateSSLOptions, updateSSLOptions, updateSSLOptions, wrap, wrap
public static final io.vertx.lang.rx.TypeArg<OAuth2WebClient> __TYPE_ARG
public OAuth2WebClient(OAuth2WebClient delegate)
public OAuth2WebClient(Object delegate)
public OAuth2WebClient getDelegate()
getDelegate
in class WebClient
public static OAuth2WebClient create(WebClient webClient, OAuth2Auth oAuth2Auth)
webClient
instance.webClient
- the web client instanceoAuth2Auth
- Configured oAuth2Auth provider to be used when withCredentials(io.vertx.ext.auth.authentication.Credentials)
usedpublic static OAuth2WebClient create(WebClient webClient, OAuth2Auth oAuth2Auth, OAuth2WebClientOptions options)
webClient
instance.webClient
- the web client instanceoAuth2Auth
- Configured oAuth2Auth provider to be used when withCredentials(io.vertx.ext.auth.authentication.Credentials)
usedoptions
- extra configuration for this objectpublic User getUser()
public OAuth2WebClient withCredentials(Credentials credentials)
OAuth2Auth
providercredentials
- public static OAuth2WebClient newInstance(OAuth2WebClient arg)
Copyright © 2024 Eclipse. All rights reserved.