public class SoapEnvelopeLoggingInterceptor extends AbstractLoggingInterceptor implements SoapEndpointInterceptor
EndpointInterceptor that logs the complete request and response envelope of
SoapMessage messages. By default, request, response and fault messages are logged, but this behaviour
can be changed using the logRequest, logResponse, logFault properties.AbstractLoggingInterceptor.setLogRequest(boolean),
AbstractLoggingInterceptor.setLogResponse(boolean),
setLogFault(boolean)logger| Constructor and Description |
|---|
SoapEnvelopeLoggingInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
protected Source |
getSource(WebServiceMessage message)
Abstract template method that returns the
Source for the given WebServiceMessage. |
boolean |
handleFault(MessageContext messageContext,
Object endpoint)
Does nothing by default.
|
void |
setLogFault(boolean logFault)
Indicates whether a SOAP Fault should be logged.
|
boolean |
understands(SoapHeaderElement header)
Given a
SoapHeaderElement, return whether or not this SoapEndpointInterceptor understands it. |
afterCompletion, handleRequest, handleResponse, isLogEnabled, logMessage, logMessageSource, setLoggerName, setLogRequest, setLogResponsecreateTransformer, getTransformerFactory, newTransformerFactory, setTransformerFactoryClass, transformclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitafterCompletion, handleRequest, handleResponsepublic void setLogFault(boolean logFault)
true.public boolean handleFault(MessageContext messageContext, Object endpoint) throws Exception
AbstractLoggingInterceptorhandleFault in interface EndpointInterceptorhandleFault in class AbstractLoggingInterceptormessageContext - contains both request and response messages, the response should contains a Faultendpoint - chosen endpoint to invoketrue to continue processing of the response interceptor chain; false to indicate
blocking of the response handler chain.Exceptionpublic boolean understands(SoapHeaderElement header)
SoapEndpointInterceptorSoapHeaderElement, return whether or not this SoapEndpointInterceptor understands it.understands in interface SoapEndpointInterceptorheader - the headertrue if understood, false otherwiseprotected Source getSource(WebServiceMessage message)
AbstractLoggingInterceptorSource for the given WebServiceMessage.getSource in class AbstractLoggingInterceptormessage - the message