Spring Web Services Framework

org.springframework.ws.server.endpoint.interceptor
Class PayloadLoggingInterceptor

java.lang.Object
  extended by org.springframework.xml.transform.TransformerObjectSupport
      extended by org.springframework.ws.server.endpoint.AbstractLoggingInterceptor
          extended by org.springframework.ws.server.endpoint.interceptor.PayloadLoggingInterceptor
All Implemented Interfaces:
EndpointInterceptor

public class PayloadLoggingInterceptor
extends AbstractLoggingInterceptor

Simple EndpointInterceptor that logs the payload of request and response messages.

By default, both request and response messages are logged, but this behaviour can be changed using the AbstractLoggingInterceptor.logRequest and AbstractLoggingInterceptor.logResponse properties.

Since:
1.0.0
Author:
Arjen Poutsma
See Also:
AbstractLoggingInterceptor.setLogRequest(boolean), AbstractLoggingInterceptor.setLogResponse(boolean)

Field Summary
 
Fields inherited from class org.springframework.ws.server.endpoint.AbstractLoggingInterceptor
logger
 
Constructor Summary
PayloadLoggingInterceptor()
           
 
Method Summary
protected  Source getSource(WebServiceMessage message)
          Abstract template method that returns the Source for the given WebServiceMessage.
 
Methods inherited from class org.springframework.ws.server.endpoint.AbstractLoggingInterceptor
afterCompletion, handleFault, handleRequest, handleResponse, isLogEnabled, logMessage, logMessageSource, setLoggerName, setLogRequest, setLogResponse
 
Methods inherited from class org.springframework.xml.transform.TransformerObjectSupport
createTransformer, getTransformerFactory, newTransformerFactory, setTransformerFactoryClass, transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PayloadLoggingInterceptor

public PayloadLoggingInterceptor()
Method Detail

getSource

protected Source getSource(WebServiceMessage message)
Description copied from class: AbstractLoggingInterceptor
Abstract template method that returns the Source for the given WebServiceMessage.

Specified by:
getSource in class AbstractLoggingInterceptor
Parameters:
message - the message
Returns:
the source of the message

Spring Web Services Framework

Copyright © 2005-2013 The Spring Web Services Framework. All Rights Reserved.