Skip navigation links

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

E10689-01


oracle.wsm.agent.handler.wls
Class WSMAgentHook

java.lang.Object
  extended by oracle.wsm.agent.handler.wls.WSMAgentHook

All Implemented Interfaces:
javax.xml.rpc.handler.Handler, weblogic.wsee.jaxws.owsm.SecurityPolicyHandler

public class WSMAgentHook
extends Object
implements weblogic.wsee.jaxws.owsm.SecurityPolicyHandler

Constructor Summary
WSMAgentHook()
           

 

Method Summary
 void destroy()
          
 QName[] getHeaders()
           This method returns the headers that can be processed by this hook class.Here the security headers are returned which means for incoming soap message this hook is capable of handling wsse:security headers.
 boolean handleFault(javax.xml.rpc.handler.MessageContext messageCtx)
           This method handles the fault.It does the transformation from wls to wsm specific message context and then invokes handleFault method of WSMAgentWrapper.
 boolean handleRequest(javax.xml.rpc.handler.MessageContext messageCtx)
           This method handles the request.It does the transformation from wls to wsm specific message context and then invokes handleRequest method of WSMAgentWrapper.
 boolean handleResponse(javax.xml.rpc.handler.MessageContext messageCtx)
           This method handles the response.It does the transformation from wls to wsm specific message context and then invokes handleResponse method of WSMAgentWrapper.
 void init(javax.xml.rpc.handler.HandlerInfo handlerInfo)
           This method creates instance of WSMAgentWrapper class passing the handler configuration obtained from common handler framework.Only one instance of WSMAgentWrapper is created per web service and same instance is used for invocation of various methods.If the handler configuration obtained is null or if the agent type is not passed from common handler framework then JAXRPCException is thrown from this method.
 void setAgentType(Boolean isServerType, Boolean isClientType)
           This method sets the agent type.The agent type can either be agent.function.server or agent.function.client

 

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

 

Constructor Detail

WSMAgentHook

public WSMAgentHook()

Method Detail

getHeaders

public QName[] getHeaders()

This method returns the headers that can be processed by this hook class.Here the security headers are returned which means for incoming soap message this hook is capable of handling wsse:security headers.

Specified by:
getHeaders in interface javax.xml.rpc.handler.Handler
Returns:
QName[] the array of QName that can be handled by this hook

init

public void init(javax.xml.rpc.handler.HandlerInfo handlerInfo)

This method creates instance of WSMAgentWrapper class passing the handler configuration obtained from common handler framework.Only one instance of WSMAgentWrapper is created per web service and same instance is used for invocation of various methods.If the handler configuration obtained is null or if the agent type is not passed from common handler framework then JAXRPCException is thrown from this method.

Specified by:
init in interface javax.xml.rpc.handler.Handler
Parameters:
handlerInfo - handler information object obtained from common handler framework

handleRequest

public boolean handleRequest(javax.xml.rpc.handler.MessageContext messageCtx)

This method handles the request.It does the transformation from wls to wsm specific message context and then invokes handleRequest method of WSMAgentWrapper.

Specified by:
handleRequest in interface javax.xml.rpc.handler.Handler
Parameters:
messageCtx - wls message context
Returns:
boolean whether the request processing was successful or not

handleResponse

public boolean handleResponse(javax.xml.rpc.handler.MessageContext messageCtx)

This method handles the response.It does the transformation from wls to wsm specific message context and then invokes handleResponse method of WSMAgentWrapper.

Specified by:
handleResponse in interface javax.xml.rpc.handler.Handler
Parameters:
messageCtx - wls message context
Returns:
boolean whether the response processing was successful or not

handleFault

public boolean handleFault(javax.xml.rpc.handler.MessageContext messageCtx)

This method handles the fault.It does the transformation from wls to wsm specific message context and then invokes handleFault method of WSMAgentWrapper.

Specified by:
handleFault in interface javax.xml.rpc.handler.Handler
Parameters:
messageCtx - wls message context
Returns:
boolean whether the fault processing was successful or not

setAgentType

public void setAgentType(Boolean isServerType,
                         Boolean isClientType)

This method sets the agent type.The agent type can either be agent.function.server or agent.function.client

Parameters:
agentType - The type of the agent.

destroy

public void destroy()
Specified by:
destroy in interface javax.xml.rpc.handler.Handler
See Also:



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.