public enum OnNoTokenPolicy extends Enum<OnNoTokenPolicy>
Enum Constant and Description |
---|
EXCEPTION
This policy throws a
NotAuthorizedException |
STOP_FLOW
This policy returns null which means that the processor chain should stop and
the rest of the processors should not be executed.
|
Modifier and Type | Method and Description |
---|---|
abstract MuleEvent |
handleNotAuthorized(Object source,
org.mule.common.security.oauth.exception.NotAuthorizedException e,
MuleEvent event)
This method handles a
NotAuthorizedException
according to each policy |
static OnNoTokenPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OnNoTokenPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OnNoTokenPolicy EXCEPTION
NotAuthorizedException
public static final OnNoTokenPolicy STOP_FLOW
public static OnNoTokenPolicy[] values()
for (OnNoTokenPolicy c : OnNoTokenPolicy.values()) System.out.println(c);
public static OnNoTokenPolicy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic abstract MuleEvent handleNotAuthorized(Object source, org.mule.common.security.oauth.exception.NotAuthorizedException e, MuleEvent event) throws org.mule.common.security.oauth.exception.NotAuthorizedException
NotAuthorizedException
according to each policysource
- the unauthorized connectore
- the exception thrownevent
- the current mule eventnull
to signal that the chain execution should
stoporg.mule.common.security.oauth.exception.NotAuthorizedException
- if the policy decides to simply bubble up the
exceptionCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.