public class OAuth2RequestFilter extends java.lang.Object implements IRequestFilter
Constructor and Description |
---|
OAuth2RequestFilter(java.util.List<OAuth2ServerSupport> serverSupports,
android.content.Context appContext,
OAuth2TokenStorage tokenStorage) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
filter(ISendEvent event,
IRequestFilterChain chain)
Filters the specified send event and optionally passes on the control to the rest of the chain.
|
java.lang.Object |
getDescriptor()
Returns a descriptor, which is a value-object that can be used to identify the filter for the purpose of chain transformation.
|
public OAuth2RequestFilter(java.util.List<OAuth2ServerSupport> serverSupports, android.content.Context appContext, OAuth2TokenStorage tokenStorage)
public java.lang.Object filter(ISendEvent event, IRequestFilterChain chain)
IRequestFilter
Implementations performing potentially long-running operations are expected to inspect the return value of IBaseEvent.isCancelledExternally()
and return if it signals true.
Passing control over to the rest of the chain is done as follows:
return chain.filter();
filter
in interface IRequestFilter
event
- the event, must be non-nullchain
- the chain, must be non-nullpublic java.lang.Object getDescriptor()
IRequestFilter
getDescriptor
in interface IRequestFilter