org.jboss.axis.handlers
Class LogHandler

java.lang.Object
  extended byorg.jboss.axis.handlers.BasicHandler (src) 
      extended byorg.jboss.axis.handlers.LogHandler
All Implemented Interfaces:
Handler (src)

public class LogHandler
extends BasicHandler (src)

A simple Handler which logs the request and response messages to either the console or a specified file (default "axis.log").

To use this, deploy it either in both the request and response flows (global, service, or transport) or in just the response flow. If deployed in both places, you'll also get an elapsed time indication, which can be handy for debugging.


Field Summary
 
Fields inherited from class org.jboss.axis.handlers.BasicHandler (src)
makeLockable, name, options
 
Constructor Summary
LogHandler()
           
 
Method Summary
 void init()
          Stubbed-out methods.
 void invoke(MessageContext (src)  msgContext)
          Must implement this in subclasses.
 void onFault(MessageContext (src)  msgContext)
          Called when a subsequent handler throws a fault.
 
Methods inherited from class org.jboss.axis.handlers.BasicHandler (src)
canHandleBlock, cleanup, generateWSDL, getDeploymentData, getName, getOption, getOptions, getUnderstoodHeaders, initHashtable, setName, setOption, setOptionDefault, setOptions, setOptionsLockable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogHandler

public LogHandler()
Method Detail

init

public void init()
Description copied from class: BasicHandler (src)
Stubbed-out methods. Override in your child class to implement any real behavior.

Specified by:
init in interface Handler (src)
Overrides:
init in class BasicHandler (src)

invoke

public void invoke(MessageContext (src)  msgContext)
            throws AxisFault (src) 
Description copied from class: BasicHandler (src)
Must implement this in subclasses.

Specified by:
invoke in interface Handler (src)
Specified by:
invoke in class BasicHandler (src)
Throws:
AxisFault (src)

onFault

public void onFault(MessageContext (src)  msgContext)
Description copied from interface: Handler (src)
Called when a subsequent handler throws a fault.

Specified by:
onFault in interface Handler (src)
Overrides:
onFault in class BasicHandler (src)