public abstract class AbstractTokenRequestHandler extends Object implements MuleContextAware
| Modifier and Type | Class and Description |
|---|---|
protected class |
AbstractTokenRequestHandler.TokenUrlResponseException |
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
AbstractTokenRequestHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
buildHttpRequestOptions(TlsContextFactory tlsContextFactory,
org.mule.module.http.api.requester.proxy.ProxyConfig proxyConfig) |
protected MuleContext |
getMuleContext() |
String |
getRefreshTokenWhen() |
protected String |
getTokenUrl() |
protected MuleEvent |
invokeTokenUrl(MuleEvent event) |
void |
setMuleContext(MuleContext muleContext) |
void |
setRefreshTokenWhen(String refreshTokenWhen) |
void |
setTokenUrl(String tokenUrl) |
public void setRefreshTokenWhen(String refreshTokenWhen)
refreshTokenWhen - expression to use to determine if the response from a request to the API requires a new tokenpublic String getRefreshTokenWhen()
public void setMuleContext(MuleContext muleContext)
setMuleContext in interface MuleContextAwareprotected MuleContext getMuleContext()
public void setTokenUrl(String tokenUrl)
public void buildHttpRequestOptions(TlsContextFactory tlsContextFactory, org.mule.module.http.api.requester.proxy.ProxyConfig proxyConfig) throws MuleException
MuleExceptionprotected MuleEvent invokeTokenUrl(MuleEvent event) throws MuleException, AbstractTokenRequestHandler.TokenUrlResponseException
protected String getTokenUrl()
Copyright © 2003–2020 MuleSoft, Inc.. All rights reserved.