public abstract class AbstractTokenRequestHandler extends Object implements MuleContextAware
Modifier and Type | Class and Description |
---|---|
protected class |
AbstractTokenRequestHandler.TokenUrlResponseException |
Constructor and Description |
---|
AbstractTokenRequestHandler() |
Modifier and Type | Method and Description |
---|---|
protected MuleContext |
getMuleContext() |
String |
getRefreshTokenWhen() |
protected String |
getTokenUrl() |
protected MuleEvent |
invokeTokenUrl(MuleEvent event) |
void |
setMuleContext(MuleContext muleContext) |
void |
setRefreshTokenWhen(String refreshTokenWhen) |
void |
setTlsContextFactory(TlsContextFactory tlsContextFactory) |
void |
setTokenUrl(String tokenUrl) |
protected Logger logger
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 MuleContextAware
protected MuleContext getMuleContext()
public void setTokenUrl(String tokenUrl)
public void setTlsContextFactory(TlsContextFactory tlsContextFactory)
protected MuleEvent invokeTokenUrl(MuleEvent event) throws MuleException, AbstractTokenRequestHandler.TokenUrlResponseException
protected String getTokenUrl()
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.