Class PayloadLoggingInterceptor
java.lang.Object
org.springframework.xml.transform.TransformerObjectSupport
org.springframework.ws.server.endpoint.AbstractLoggingInterceptor
org.springframework.ws.server.endpoint.interceptor.PayloadLoggingInterceptor
- All Implemented Interfaces:
EndpointInterceptor
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:
-
Field Summary
Fields inherited from class org.springframework.ws.server.endpoint.AbstractLoggingInterceptor
logger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Source
getSource
(WebServiceMessage message) Abstract template method that returns theSource
for the givenWebServiceMessage
.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
-
Constructor Details
-
PayloadLoggingInterceptor
public PayloadLoggingInterceptor()
-
-
Method Details
-
getSource
Description copied from class:AbstractLoggingInterceptor
Abstract template method that returns theSource
for the givenWebServiceMessage
.- Specified by:
getSource
in classAbstractLoggingInterceptor
- Parameters:
message
- the message- Returns:
- the source of the message
-