|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.xml.rpc.handler.GenericHandler org.jmonit.support.jaxrpc.JaxRpcMonitoringHandler
public class JaxRpcMonitoringHandler
Axis handler to monitor Time for SAOP invocation. Three jMonit domains are used for Axis SOAP monitoring :
You have to configure your Axis client by including in the client-config.wsdd file (Axis client configuration file):
<?xml version="1.0" encoding="UTF-8"?> <deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"> <handler name="jmonit" type="java:info.jmonit.support.soap.AxisMonitoringHandler"> <parameter name="domain" value="soap.axis"/> <parameter name="requestDomain" value="soap.axis.request"/> <parameter name="responseDomain" value="soap.axis.response"/> </handler> <transport name="http" pivot="java:org.apache.axis.transport.http.HTTPSender"> <requestFlow> <handler type="jmonit"/> </requestFlow> <responseFlow> <handler type="jmonit"/> </responseFlow> </transport> </deployment>Handler parameter can be used to override default domains. This can be usefull if you are both using Axis as Web service client and as server-side SOAP stack, where request/response have inverted roles.
Constructor Summary | |
---|---|
JaxRpcMonitoringHandler()
|
Method Summary | |
---|---|
protected java.lang.String |
getAction(javax.xml.rpc.handler.MessageContext context)
Extract the Action from the message, either by getting the Jax-rpc header, or by getting the SOAP message first element. |
javax.xml.namespace.QName[] |
getHeaders()
|
boolean |
handleFault(javax.xml.rpc.handler.MessageContext context)
|
boolean |
handleRequest(javax.xml.rpc.handler.MessageContext context)
|
boolean |
handleResponse(javax.xml.rpc.handler.MessageContext context)
|
protected void |
stopMonitoring(javax.xml.rpc.handler.MessageContext context,
boolean success)
End monitoring for a SOAP invocation. |
Methods inherited from class javax.xml.rpc.handler.GenericHandler |
---|
destroy, init |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JaxRpcMonitoringHandler()
Method Detail |
---|
public boolean handleRequest(javax.xml.rpc.handler.MessageContext context)
handleRequest
in interface javax.xml.rpc.handler.Handler
handleRequest
in class javax.xml.rpc.handler.GenericHandler
public boolean handleResponse(javax.xml.rpc.handler.MessageContext context)
handleResponse
in interface javax.xml.rpc.handler.Handler
handleResponse
in class javax.xml.rpc.handler.GenericHandler
public boolean handleFault(javax.xml.rpc.handler.MessageContext context)
handleFault
in interface javax.xml.rpc.handler.Handler
handleFault
in class javax.xml.rpc.handler.GenericHandler
protected java.lang.String getAction(javax.xml.rpc.handler.MessageContext context)
TODO : Does this work for any SOAP message ?
context
- Jax-rpc context
protected void stopMonitoring(javax.xml.rpc.handler.MessageContext context, boolean success)
Stops the running probe and add messages weight to request/response bytes monitors.
msgContext
- Axis message contextpublic javax.xml.namespace.QName[] getHeaders()
getHeaders
in interface javax.xml.rpc.handler.Handler
getHeaders
in class javax.xml.rpc.handler.GenericHandler
GenericHandler.getHeaders()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |