com.ibm.portal.outbound.config
Interface PolicyRuleLocator
- All Superinterfaces:
- AdministrableLocator<PolicyRule>
public interface PolicyRuleLocator
- extends AdministrableLocator<PolicyRule>
A locator to access PolicyRule items.
The locator provides methods to get to the PolicyRule objects that are owned by a given
PolicyMapping item.
Code example:
String urlPattern = "http://www.myserver.com/test/*"
OutboundConnectionModel model;
PolicyMapping theOwner;
˙˙˙
PolicyMapppingLocator locator = model.getPolicyRuleLocator(owner);
System.out.println ("This rule listens to the URL "+urlPattern+": "+
locator.findByUrlPattern(urlPattern));
- Since:
- 8.5.0
- See Also:
OutboundConnectionModel
,
PolicyMapping
,
PolicyRule
,
AdministrableLocator
findByUrlPattern
PolicyRule findByUrlPattern(java.lang.String pattern)
- Locate the policy rule with the given URL pattern. Note that the presented pattern string
must be identical with the URL pattern strings of the policy rule. That is, no pattern comparison is made.
- Parameters:
pattern
- The URL pattern. Note that no wildcard resolution is made. That is, the PolicyRule that
has a URL pattern "http://www.myserver.com/test/*" is only returned if exactly this pattern is specified.
- Returns:
- PolicyRule the policyRule. Returns null if no policy rule with the specified url pattern exists.