|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PolicyRule
This object encapsulates a policy rule.
Policy rules define settings that control the outbound connection to a URL that matches with its URL pattern.
Note that multiple URL patterns can apply. In that case, the Outbound connection service chooses that policy rule that
matches best. For example, given that here are two PolicyRule items:"rule1" for the url pattern "http://www.myserver.com/test/*", and
and "rule2" for the url pattern "http://www.myserver.com/*". If a connection to http://www.myserver.com/test/testme.html is established, then
"rule1" is applied, where a connection to http://www.myserver.com/anotherpage.html would select "rule1"
The following code locates a policy rule that is associated with the URL pattern "http://www.myserver.com/test/*":
OutboundConnectionModel model;
PolicyMapping theMappingRule;
PolicyRule pol = model.getPolicyRuleLocator(theMappingRule).findByName("rule1");
System.out.println("The url pattern is "+pol.getUrlPattern());
OutboundConnectionModel
,
PolicyMapping
,
PolicyRuleLocator
Method Summary | |
---|---|
java.lang.String[] |
getAllowedMethods()
Return an array of allowed HTTP methods. |
java.util.Collection<CustomFilterItem> |
getFilterChain()
return if a custom filter chain is registered at the policy |
java.lang.String[] |
getHeaders()
Return an array of headers that are supported. |
java.util.Map<java.lang.String,java.lang.String> |
getMetaData()
Return the object meta data |
java.lang.String[] |
getMimeTypes()
Return the list of supported mime types, if present |
java.lang.String |
getUrlPattern()
Return the URL pattern for which the policy type applies |
boolean |
hasAllowedMethods()
return if there is a list of allowed methods. |
boolean |
hasFilterChain()
return if a custom filter chain is registered at the policy |
boolean |
hasHeaders()
Return if the policy has a list of supported headers. |
boolean |
hasMimeType()
return if a mime type is in the list of supported mime types |
boolean |
isActive()
get the active flag |
boolean |
isBasicAuth()
get the basic-auth flag |
Methods inherited from interface com.ibm.portal.outbound.config.Administrable |
---|
getName, isReadOnly |
Method Detail |
---|
java.lang.String getUrlPattern()
java.lang.String[] getAllowedMethods()
boolean hasAllowedMethods()
boolean hasHeaders()
java.lang.String[] getHeaders()
java.lang.String[] getMimeTypes()
boolean hasMimeType()
boolean hasFilterChain()
java.util.Collection<CustomFilterItem> getFilterChain()
java.util.Map<java.lang.String,java.lang.String> getMetaData()
boolean isActive()
boolean isBasicAuth()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |