Filter Examples - FormatString

6-30 Oracle Fusion Middleware Developers Guide for Oracle Adaptive Access Manager The proxy variables are of 3 types, depending upon the life span of the variable. The type of variable is determined by the first letter of the variable name, which can be one of: , , . All types of variables can be set using filters like SetVariable, SaveHeader, SaveParam, SaveResponse, and other filters. All types of variables can be unsetdeleted by the UnsetVariable filter. The ClearSession filter can be used to remove all session variables. Request variables Request variables: these variable names start with . These variables are associated with the current request and are deleted at the completion of the current request. Request variables are used where the value is not needed across requests. Session variables Session variables: these variable names start with . These variables are associated with the current proxy session and are deleted when the proxy session is cleaned up. Session variables are used where the value should be preserved across requests from a client. Global variables Global variables: these variable names start with . These variables are associated with the current proxy configuration and are deleted when the proxy configuration is unloaded. Global variables are used where the value needs to be preserved across requests and across clients. Global variables can be set at the proxy configuration load time using SetGlobal in the configuration file. In the UIO ISA Proxy, global variables can also be set by adding registry values under key HKLM\Software\Bharosa\Proxy\Globals. The name of each entry under this key should be the variable name, starting with . And the data of the entry should be the value of the variable. The registry-type of the value can be REG_DWORD, REG_SZ or REG_EXPAND_SZ. Pre-defined variables The UIO Proxy supports the following pre-defined request variables: Table 6–16 Pre-defined Variables Supported by the UIO Proxy Variable name Description RESPONSE_CONTENT This variable contains the contents of the entire response from the Web server for the current request. Forthe UIO Apache Proxy, RESPONSE_CONTENT has been deprecated. Please use SaveResponse, SaveHeader, SaveResponseCookie, and ReplaceText filters instead. REQUEST_CONTENT This variable contains the contents of the entire request from the client. For the UIO Apache Proxy, REQUEST_CONTENT has been deprecated. You can use SaveRequest, SaveHeader, and SaveRequestCookie filters instead. QUERY_STRING This variable contains the query string, starting with ?, for the current request URL. REQUEST_METHOD HTTP method verb for the request: GET, POST, and so on. REMOTE_HOST Hostname of the client or agent of the client. For the UIO Apache Proxy, you need to enable the hostname lookup by using the Apache directive HostnameLookups On.