public final class PolicyUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PROVIDED_PROPERTY
Exchange property name where provided policies are kept.
|
static String |
REQUIRED_PROPERTY
Exchange property name where required policies are kept.
|
Modifier and Type | Method and Description |
---|---|
static Set<Policy> |
getProvided(Exchange exchange)
Returns the set of policies provided for this exchange.
|
static Set<Policy> |
getRequired(Exchange exchange)
Returns the set of policies required for this exchange.
|
static boolean |
isProvided(Exchange exchange,
Policy policy)
Indicates whether a given policy is provided on the exchange.
|
static boolean |
isRequired(Exchange exchange,
Policy policy)
Indicates whether a given policy is required on the exchange.
|
static void |
provide(Exchange exchange,
Policy policy)
Indicate that a given policy is satisfied for the exchange.
|
static void |
require(Exchange exchange,
Policy policy)
Indicate that a given policy is required for the exchange.
|
public static final String PROVIDED_PROPERTY
public static final String REQUIRED_PROPERTY
public static void provide(Exchange exchange, Policy policy)
exchange
- assert policy on this exchangepolicy
- the policy to assertpublic static Set<Policy> getProvided(Exchange exchange)
exchange
- check policy on this exchangepublic static boolean isProvided(Exchange exchange, Policy policy)
exchange
- check policy on this exchangepolicy
- the policy to checkpublic static void require(Exchange exchange, Policy policy)
exchange
- require policy on this exchangepolicy
- the policy to requirepublic static Set<Policy> getRequired(Exchange exchange)
exchange
- check policy on this exchangeCopyright © 2013–2022 JBoss by Red Hat. All rights reserved.