org.sape.smfw.soapengine
Class LogHandler

java.lang.Object
  extended byorg.apache.axis.handlers.BasicHandler
      extended byorg.sape.smfw.soapengine.LogHandler
All Implemented Interfaces:
org.apache.axis.Handler, Serializable

public class LogHandler
extends org.apache.axis.handlers.BasicHandler

Logs received messages when called before the pivot point and transmitted messages when called after the pivot point. Make this handler part of the request and response chains so that both messages in both directions are logged.

See Also:
Serialized Form

Field Summary
private static org.apache.commons.logging.Log log
           
 
Fields inherited from class org.apache.axis.handlers.BasicHandler
makeLockable, name, options
 
Constructor Summary
LogHandler()
           
 
Method Summary
private static String getMethodName(javax.xml.soap.SOAPMessage message)
          Returns the method name of a SOAP message
 void invoke(org.apache.axis.MessageContext messageContext)
           
private static String toString(javax.xml.soap.SOAPMessage message)
          Returns the string representation of a SOAP message
 
Methods inherited from class org.apache.axis.handlers.BasicHandler
canHandleBlock, cleanup, generateWSDL, getDeploymentData, getName, getOption, getOptions, getUnderstoodHeaders, init, initHashtable, onFault, setName, setOption, setOptionDefault, setOptions, setOptionsLockable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final org.apache.commons.logging.Log log
Constructor Detail

LogHandler

public LogHandler()
Method Detail

invoke

public void invoke(org.apache.axis.MessageContext messageContext)
            throws org.apache.axis.AxisFault
Throws:
org.apache.axis.AxisFault
See Also:
Handler.invoke(MessageContext)

toString

private static final String toString(javax.xml.soap.SOAPMessage message)
Returns the string representation of a SOAP message

Parameters:
message - whose string representation is needed
Returns:
String representation of the SOAP message

getMethodName

private static final String getMethodName(javax.xml.soap.SOAPMessage message)
Returns the method name of a SOAP message

Parameters:
message - whose method name is needed
Returns:
String method name of the SOAP message


Copyright 2003 Sapient Corporation. All Rights Reserved.