+

Search Tips   |   Advanced Search

View the configuration settings of the outbound HTTP connection

HCL WebSphere Portal provides several interfaces used to retrieve configuration settings: OutboundConnectionProfile, PolicyMapping, PolicyRule, CookieRule, and PolicyVariable.

For a complete reference of the functions these interfaces provide, read the Javadoc API. The following code example shows how we can retrieve configuration settings of a policy variable:

PolicyVariable pvar;// refer to previous examples, how to instantiate this policy variable  System.out.println ("The policy variable is "+pvar.getName()+", the type is "+pvar.getType());
if (pvar.getType() == VariableType.Endpoint) {
   System.out.println("The value is "+pvar.getEndpointValue());
} else {
   System.out.println("The values are:\n");
   for (String svalue : pvar.getDynamicPolicyValues()) {
       System.out.println(svalue);
   }
}


Parent Configure outbound HTTP connections using the Model Controller SPI

Previous topic: Obtain the Controller SPI

Next topic: Modify configuration settings of the outbound HTTP connection