Setting Up Policies Oracle Fusion Middleware Online Documentation Library

Oracle Adaptive Access Manager Proxy 6-21

6.6.1.2 Conditions

Conditions are used in the proxy to inspect HTTP requestresponse or the state information saved in the proxy variables. Each condition evaluates to either true or false. Conditions are evaluated in the order they are listed in the configuration file until a condition evaluates to false or all conditions are evaluated. Table 6–14 lists conditions that can be defined in an interceptor. Table 6–13 Components of Interceptors Interceptor Attributes Description RequestInterceptor id, desc, post-exec-action, isGlobal, enabled RequestInterceptor defines an interceptor that will be run during the request phase. It has an id, description. Optionally it has a post-exec-action that takes the values continue, stop-intercept, stop-phase-intercept; the default is continue. Optionally it has isGlobal which takes the values true or false and is false by default. It also takes the enabled attribute which is also optional and is true by default. ResponseInterceptor id, desc, post-exec-action, isGlobal, enabled ResponseInterceptor defines an interceptor that is run during the response phase of the HTTP request. The attributes of this element are similar to that of RequestInterceptor. This element contains zero or more RequestUrl elements, zero or more conditions elements, zero or more filter elements, zero or one target element. The RequestUrl element has a single URL element for which this interceptor will execute. The URl must be an exact match. There is no regular expression or pattern support for the URL. Instead of the RequestUrl element there is a ResponseUrl element which has similar meaning. All else is similar to the RequestInterceptor. Table 6–14 Conditions Defined in an Interceptor Condition name Attributes Description HeaderPresent enabled, name Checks the presence of the specified header in requestresponse. The header name should be terminated by a colon :. Example: HeaderPresent name=userid: ParamPresent enabled, name Checks the presence of the specified parameter in the request. Example: ParamPresent name=loginID QueryParamPresent enabled, name Checks the presence of the specified query parameter in the URL. Example: QueryParamPresent name=TraceID