|
Oracle Fusion Middleware Java API Reference for Oracle Web Services Manager 11g (11.1.1) E10689-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.wsm.agent.handler.wls.WSMAgentHook
public class WSMAgentHook
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 |
---|
public WSMAgentHook()
Method Detail |
---|
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.
getHeaders
in interface javax.xml.rpc.handler.Handler
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.
init
in interface javax.xml.rpc.handler.Handler
handlerInfo
- handler information object obtained from common handler frameworkpublic 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.
handleRequest
in interface javax.xml.rpc.handler.Handler
messageCtx
- wls message contextpublic 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.
handleResponse
in interface javax.xml.rpc.handler.Handler
messageCtx
- wls message contextpublic 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.
handleFault
in interface javax.xml.rpc.handler.Handler
messageCtx
- wls message contextpublic 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
agentType
- The type of the agent.public void destroy()
destroy
in interface javax.xml.rpc.handler.Handler
|
Oracle Fusion Middleware Java API Reference for Oracle Web Services Manager 11g (11.1.1) E10689-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |