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, setLogResponse
createTransformer, getTransformerFactory, newTransformerFactory, setTransformerFactoryClass, transform
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
afterCompletion, handleRequest, handleResponse
public void setLogFault(boolean logFault)
true
.public boolean handleFault(MessageContext messageContext, Object endpoint) throws Exception
AbstractLoggingInterceptor
handleFault
in interface EndpointInterceptor
handleFault
in class AbstractLoggingInterceptor
messageContext
- 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.Exception
public boolean understands(SoapHeaderElement header)
SoapEndpointInterceptor
SoapHeaderElement
, return whether or not this SoapEndpointInterceptor
understands it.understands
in interface SoapEndpointInterceptor
header
- the headertrue
if understood, false
otherwiseprotected Source getSource(WebServiceMessage message)
AbstractLoggingInterceptor
Source
for the given WebServiceMessage
.getSource
in class AbstractLoggingInterceptor
message
- the messageCopyright © 2020 Pivotal Software. All rights reserved.