org.apache.axis.handlers

Class LogHandler

Implemented Interfaces:
Handler, Serializable

public class LogHandler
extends BasicHandler

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.
Authors:
Doug Davis (dug@us.ibm.com)
Glen Daniels (gdaniels@apache.org)

Field Summary

protected static Log
log

Fields inherited from class org.apache.axis.handlers.BasicHandler

makeLockable, name, options

Method Summary

void
init()
void
invoke(MessageContext msgContext)
void
onFault(MessageContext msgContext)

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

Field Details

log

protected static Log log

Method Details

init

public void init()
Specified by:
init in interface Handler
Overrides:
init in interface BasicHandler

invoke

public void invoke(MessageContext msgContext)
            throws AxisFault
Specified by:
invoke in interface Handler

onFault

public void onFault(MessageContext msgContext)
Specified by:
onFault in interface Handler
Overrides:
onFault in interface BasicHandler

Copyright © 2005 Apache Web Services Project. All Rights Reserved.