com.atlassian.crowd.service.soap.xfire
Class XFireLoggingMethodHandler

java.lang.Object
  extended by org.codehaus.xfire.handler.AbstractHandler
      extended by com.atlassian.crowd.service.soap.xfire.XFireLoggingMethodHandler
All Implemented Interfaces:
org.codehaus.xfire.handler.Handler
Direct Known Subclasses:
XFireInLoggingMethodHandler, XFireOutLoggingMethodHandler

public abstract class XFireLoggingMethodHandler
extends org.codehaus.xfire.handler.AbstractHandler

This class is used by the XFire SOAP framework when processing SOAP request, specific in and out message processors handle the extraction of the message from the messageContext provided by XFire. This works by displaying the method and the value of the variables passed in or returned. This is useful in debugging the communication between a client and server.


Field Summary
 
Fields inherited from interface org.codehaus.xfire.handler.Handler
ROLE
 
Constructor Summary
XFireLoggingMethodHandler()
           
 
Method Summary
protected abstract  org.slf4j.Logger getLogger()
          The logger to use when output log message.
protected abstract  Object[] getMessageBodyObjects()
          The objects that need to be processed for logging.
 void invoke(org.codehaus.xfire.MessageContext messageContext)
          Processes the incoming SOAP message for logging.
protected  void logParameters(Object[] parameters, StringBuffer logMessage)
          Loops the object graph recursively until all objects have been appended to the logMessage.
 
Methods inherited from class org.codehaus.xfire.handler.AbstractHandler
after, before, getAfter, getBefore, getPhase, getRoles, getUnderstoodHeaders, handleFault, setAfter, setBefore, setPhase
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XFireLoggingMethodHandler

public XFireLoggingMethodHandler()
Method Detail

getMessageBodyObjects

protected abstract Object[] getMessageBodyObjects()
The objects that need to be processed for logging.

Returns:
A collection of Objects.

getLogger

protected abstract org.slf4j.Logger getLogger()
The logger to use when output log message.

Returns:
The logger.

invoke

public void invoke(org.codehaus.xfire.MessageContext messageContext)
            throws Exception
Processes the incoming SOAP message for logging.

Parameters:
messageContext - The message.
Throws:
Exception - Runtime exception while processing the incoming SOAP message.

logParameters

protected void logParameters(Object[] parameters,
                             StringBuffer logMessage)
Loops the object graph recursively until all objects have been appended to the logMessage.

Parameters:
parameters - The object graph provided by Xfire.
logMessage - The buffer to append the .toString() too.


Copyright © 2013 Atlassian. All Rights Reserved.