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 |
protected MuleContext |
muleContext |
| Constructor and Description |
|---|
AbstractTokenRequestHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected MuleContext |
getMuleContext() |
String |
getRefreshTokenWhen() |
protected String |
getTokenUrl() |
protected Event |
invokeTokenUrl(Event event) |
void |
setMuleContext(MuleContext muleContext) |
void |
setRefreshTokenWhen(String refreshTokenWhen) |
void |
setTlsContextFactory(org.mule.runtime.api.tls.TlsContextFactory tlsContextFactory) |
void |
setTokenUrl(String tokenUrl) |
protected org.slf4j.Logger logger
protected MuleContext muleContext
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 setTlsContextFactory(org.mule.runtime.api.tls.TlsContextFactory tlsContextFactory)
protected Event invokeTokenUrl(Event event) throws org.mule.runtime.api.exception.MuleException, AbstractTokenRequestHandler.TokenUrlResponseException
org.mule.runtime.api.exception.MuleExceptionAbstractTokenRequestHandler.TokenUrlResponseExceptionprotected String getTokenUrl()
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.