Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Web Services Manager
11g (11.1.1)

E10689-01


oracle.wsm.agent.handler
Class WSMAgentWrapper

java.lang.Object
  extended by oracle.wsm.agent.handler.WSMAgentWrapper


public class WSMAgentWrapper
extends Object

Constructor Summary
WSMAgentWrapper(Map config)
           The constructor for this class.

 

Method Summary
 boolean handleFault(IMessageContext soapBindingMessageContext)
           This method handles the fault.
 boolean handleRequest(IMessageContext soapBindingMessageContext)
           This method handles the request.
 boolean handleResponse(IMessageContext soapBindingMessageContext)
           This method handles the response.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

WSMAgentWrapper

public WSMAgentWrapper(Map config)

The constructor for this class.

Agent function type and policy list are extracted from the handler configuration which is passed as parameter. Agent function type can either be agent.function.client or agent.function.server. The policy list is available from config only in case of server agents.For client agents policy list is obtained from SOAPBindingMessageContext.

Parameters:
config - handler configuration properties

Method Detail

handleRequest

public boolean handleRequest(IMessageContext soapBindingMessageContext)
                      throws WSMException,
                             PolicyAccessException

This method handles the request.

This method first initializes the WSMAgent and then invokes the processRequest() method of WSMAgent. WSMAgent is intialized only in case of first request and in subsequent requests the same WSMAgent instance is used.In case of any fault while processing the request WSMException is thrown.In case there is any exception in fetching the policies using the classpath mode then PolicyAccessException is thrown.

Parameters:
soapBindingMessageContext - This is the wsm specific message context.
Returns:
boolean whether the request was processed succesfully or not
Throws:
WSMException,PolicyAccessException
WSMException
PolicyAccessException

handleResponse

public boolean handleResponse(IMessageContext soapBindingMessageContext)
                       throws WSMException

This method handles the response.

This method handles the response and invokes the processResponse method of WSMAgent. In case of any fault while processing the response WSMException is thrown.

Parameters:
soapBindingMessageContext - This is the wsm specific message context
Returns:
boolean whether the response was processed succesfully or not
Throws:
WSMException

handleFault

public boolean handleFault(IMessageContext soapBindingMessageContext)
                    throws WSMException

This method handles the fault.

This method handles the fault and invokes the procesFault method of WSMAgent. In case of any fault while processing the fault WSMException is thrown.

Parameters:
soapBindingMessageContext - This is the wsm specific message context
Returns:
boolean whether the fault was processed succesfully or not
Throws:
WSMException

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Web Services Manager
11g (11.1.1)

E10689-01


Copyright © 2007, 2009, Oracle and/or its affiliates. All rights reserved.