Uses of Interface
org.springframework.ws.context.MessageContext
Package
Description
Core package of the Spring-WS client-side support.
Provides the
ClientInterceptor
interface, and validating interceptors.Contains the
MessageContext
interface and implementations thereof.Contains classes for server-side Spring-WS support.
Provides standard endpoint, and
EndpointAdapter
implementations.Provides miscellaneous
EndpointAdapter
implementations.Provides the
MethodArgumentResolver
and MethodReturnValueHandler
abstractions, and various
implementations thereof.Provides JAXB2-based implementations of the
MethodArgumentResolver
and
MethodReturnValueHandler
interfaces.Provides miscellaneous endpoints
EndpointInterceptor
implementations.Provides miscellaneous endpoints
EndpointMapping
implementations.Provides JAXB2-based
EndpointMapping
implementations.Contains servers-side WS-Addressing support, in the form of
EndpointMappings
.Provides WS-Security implementation classes.
Contains classes for using the Apache WSS4J 2.0 WS-Security implementation
within
Spring-WS.
Contains classes for SOAP-specific server-side Spring-WS support.
Provides
EndpointAdapter
, EndpointMapping
, and EndpointExceptionResolver
implementations for SOAP.Provides miscellaneous endpoints
EndpointInterceptor
implementations for SOAP purposes.Provides miscellaneous endpoints
EndpointMapping
implementations for SOAP purposes.Contains the TransportRequest and TransportResponse interfaces.
-
Uses of MessageContext in org.springframework.ws.client.core
Modifier and TypeMethodDescriptionprotected <T> T
WebServiceTemplate.doSendAndReceive
(MessageContext messageContext, WebServiceConnection connection, WebServiceMessageCallback requestCallback, WebServiceMessageExtractor<T> responseExtractor) Sends and receives aMessageContext
.protected Object
WebServiceTemplate.handleFault
(WebServiceConnection connection, MessageContext messageContext) Handles an fault in the given response message. -
Uses of MessageContext in org.springframework.ws.client.support.interceptor
Modifier and TypeMethodDescriptionvoid
AbstractValidatingInterceptor.afterCompletion
(MessageContext messageContext, Exception ex) Does nothing by default.void
ClientInterceptor.afterCompletion
(MessageContext messageContext, Exception ex) Callback after completion of request and response (fault) processing.void
ClientInterceptorAdapter.afterCompletion
(MessageContext messageContext, Exception ex) Does nothing by default.boolean
AbstractValidatingInterceptor.handleFault
(MessageContext messageContext) Does nothing by default.boolean
ClientInterceptor.handleFault
(MessageContext messageContext) Processes the incoming response fault.boolean
ClientInterceptorAdapter.handleFault
(MessageContext messageContext) boolean
AbstractValidatingInterceptor.handleRequest
(MessageContext messageContext) Validates the request message in the given message context.boolean
ClientInterceptor.handleRequest
(MessageContext messageContext) Processes the outgoing request message.boolean
ClientInterceptorAdapter.handleRequest
(MessageContext messageContext) protected boolean
AbstractValidatingInterceptor.handleRequestValidationErrors
(MessageContext messageContext, SAXParseException[] errors) Template method that is called when the request message contains validation errors.boolean
AbstractValidatingInterceptor.handleResponse
(MessageContext messageContext) Validates the response message in the given message context.boolean
ClientInterceptor.handleResponse
(MessageContext messageContext) Processes the incoming response message.boolean
ClientInterceptorAdapter.handleResponse
(MessageContext messageContext) protected boolean
AbstractValidatingInterceptor.handleResponseValidationErrors
(MessageContext messageContext, SAXParseException[] errors) Template method that is called when the response message contains validation errors. -
Uses of MessageContext in org.springframework.ws.context
Modifier and TypeClassDescriptionclass
Abstract base class forMessageContext
instances.class
Default implementation ofMessageContext
. -
Uses of MessageContext in org.springframework.ws.server
Modifier and TypeMethodDescriptionvoid
EndpointInterceptor.afterCompletion
(MessageContext messageContext, Object endpoint, Exception ex) Callback after completion of request and response (fault) processing.protected final void
MessageDispatcher.dispatch
(MessageContext messageContext) Dispatches the request in the given MessageContext according to the configuration.EndpointMapping.getEndpoint
(MessageContext messageContext) Returns an endpoint and any interceptors for this message context.protected EndpointInvocationChain
MessageDispatcher.getEndpoint
(MessageContext messageContext) Returns the endpoint for this request.boolean
EndpointInterceptor.handleFault
(MessageContext messageContext, Object endpoint) Processes the outgoing response fault.boolean
EndpointInterceptor.handleRequest
(MessageContext messageContext, Object endpoint) Processes the incoming request message.protected boolean
MessageDispatcher.handleRequest
(EndpointInvocationChain mappedEndpoint, MessageContext messageContext) Callback for pre-processing of given invocation chain and message context.boolean
EndpointInterceptor.handleResponse
(MessageContext messageContext, Object endpoint) Processes the outgoing response message.void
EndpointAdapter.invoke
(MessageContext messageContext, Object endpoint) Use the givenendpoint
to handle the request.protected void
MessageDispatcher.processEndpointException
(MessageContext messageContext, Object endpoint, Exception ex) Determine an errorSOAPMessage
response via the registeredEndpointExceptionResolvers
.void
MessageDispatcher.receive
(MessageContext messageContext) boolean
EndpointExceptionResolver.resolveException
(MessageContext messageContext, Object endpoint, Exception ex) Try to resolve the given exception that got thrown during on endpoint execution.boolean
SmartEndpointInterceptor.shouldIntercept
(MessageContext messageContext, Object endpoint) Indicates whether this interceptor should intercept the given message context. -
Uses of MessageContext in org.springframework.ws.server.endpoint
Modifier and TypeMethodDescriptionvoid
AbstractLoggingInterceptor.afterCompletion
(MessageContext messageContext, Object endpoint, Exception ex) Does nothing by defaultprotected String
AbstractEndpointExceptionResolver.buildLogMessage
(Exception ex, MessageContext messageContext) Build a log message for the given exception, occured during processing the given message context.boolean
AbstractLoggingInterceptor.handleFault
(MessageContext messageContext, Object endpoint) Does nothing by default.boolean
AbstractLoggingInterceptor.handleRequest
(MessageContext messageContext, Object endpoint) Logs the request message payload.boolean
AbstractLoggingInterceptor.handleResponse
(MessageContext messageContext, Object endpoint) Logs the response message payload.final void
AbstractMarshallingPayloadEndpoint.invoke
(MessageContext messageContext) Deprecated.final void
AbstractStaxEventPayloadEndpoint.invoke
(MessageContext messageContext) Deprecated.final void
AbstractStaxStreamPayloadEndpoint.invoke
(MessageContext messageContext) Deprecated.void
MessageEndpoint.invoke
(MessageContext messageContext) Invokes an operation.protected void
AbstractEndpointExceptionResolver.logException
(Exception ex, MessageContext messageContext) Log the given exception at warn level, provided that warn logging has been activated through the"warnLogCategory"
property.protected void
AbstractMarshallingPayloadEndpoint.onMarshalResponse
(MessageContext messageContext, Object requestObject, Object responseObject) Deprecated.Callback for post-processing in terms of marshalling.protected boolean
AbstractMarshallingPayloadEndpoint.onUnmarshalRequest
(MessageContext messageContext, Object requestObject) Deprecated.Callback for post-processing in terms of unmarshalling.protected boolean
AbstractValidatingMarshallingPayloadEndpoint.onUnmarshalRequest
(MessageContext messageContext, Object requestObject) Deprecated.protected abstract boolean
AbstractValidatingMarshallingPayloadEndpoint.onValidationErrors
(MessageContext messageContext, Object requestObject, org.springframework.validation.Errors errors) Deprecated.Callback for post-processing validation errors.final boolean
AbstractEndpointExceptionResolver.resolveException
(MessageContext messageContext, Object endpoint, Exception ex) Default implementation that checks whether the givenendpoint
is in the set ofmapped endpoints
.protected abstract boolean
AbstractEndpointExceptionResolver.resolveExceptionInternal
(MessageContext messageContext, Object endpoint, Exception ex) Template method for resolving exceptions that is called byAbstractEndpointExceptionResolver.resolveException(org.springframework.ws.context.MessageContext, java.lang.Object, java.lang.Exception)
. -
Uses of MessageContext in org.springframework.ws.server.endpoint.adapter
Modifier and TypeMethodDescriptionprotected Object[]
DefaultMethodEndpointAdapter.getMethodArguments
(MessageContext messageContext, MethodEndpoint methodEndpoint) Returns the argument array for the given method endpoint.protected void
DefaultMethodEndpointAdapter.handleMethodReturnValue
(MessageContext messageContext, Object returnValue, MethodEndpoint methodEndpoint) Handle the return value for the given method endpoint.final void
AbstractMethodEndpointAdapter.invoke
(MessageContext messageContext, Object endpoint) void
MessageEndpointAdapter.invoke
(MessageContext messageContext, Object endpoint) void
PayloadEndpointAdapter.invoke
(MessageContext messageContext, Object endpoint) protected abstract void
AbstractMethodEndpointAdapter.invokeInternal
(MessageContext messageContext, MethodEndpoint methodEndpoint) Use the given method endpoint to handle the request.protected final void
DefaultMethodEndpointAdapter.invokeInternal
(MessageContext messageContext, MethodEndpoint methodEndpoint) protected void
MarshallingMethodEndpointAdapter.invokeInternal
(MessageContext messageContext, MethodEndpoint methodEndpoint) Deprecated.protected void
MessageMethodEndpointAdapter.invokeInternal
(MessageContext messageContext, MethodEndpoint methodEndpoint) Deprecated.protected void
PayloadMethodEndpointAdapter.invokeInternal
(MessageContext messageContext, MethodEndpoint methodEndpoint) Deprecated.protected void
XPathParamAnnotationMethodEndpointAdapter.invokeInternal
(MessageContext messageContext, MethodEndpoint methodEndpoint) Deprecated. -
Uses of MessageContext in org.springframework.ws.server.endpoint.adapter.method
Modifier and TypeMethodDescriptionMessageContextMethodArgumentResolver.resolveArgument
(MessageContext messageContext, org.springframework.core.MethodParameter parameter) Modifier and TypeMethodDescriptionfinal void
AbstractPayloadSourceMethodProcessor.handleReturnValue
(MessageContext messageContext, org.springframework.core.MethodParameter returnType, Object returnValue) void
MarshallingPayloadMethodProcessor.handleReturnValue
(MessageContext messageContext, org.springframework.core.MethodParameter returnType, Object returnValue) void
MethodReturnValueHandler.handleReturnValue
(MessageContext messageContext, org.springframework.core.MethodParameter returnType, Object returnValue) Handles the given return value.final Object
AbstractPayloadSourceMethodProcessor.resolveArgument
(MessageContext messageContext, org.springframework.core.MethodParameter parameter) MarshallingPayloadMethodProcessor.resolveArgument
(MessageContext messageContext, org.springframework.core.MethodParameter parameter) MessageContextMethodArgumentResolver.resolveArgument
(MessageContext messageContext, org.springframework.core.MethodParameter parameter) MethodArgumentResolver.resolveArgument
(MessageContext messageContext, org.springframework.core.MethodParameter parameter) Resolves the given parameter into a method argument.StaxPayloadMethodArgumentResolver.resolveArgument
(MessageContext messageContext, org.springframework.core.MethodParameter parameter) XPathParamMethodArgumentResolver.resolveArgument
(MessageContext messageContext, org.springframework.core.MethodParameter parameter) -
Uses of MessageContext in org.springframework.ws.server.endpoint.adapter.method.jaxb
Modifier and TypeMethodDescriptionfinal void
AbstractJaxb2PayloadMethodProcessor.handleReturnValue
(MessageContext messageContext, org.springframework.core.MethodParameter returnType, Object returnValue) protected abstract void
AbstractJaxb2PayloadMethodProcessor.handleReturnValueInternal
(MessageContext messageContext, org.springframework.core.MethodParameter returnType, Object returnValue) protected void
JaxbElementPayloadMethodProcessor.handleReturnValueInternal
(MessageContext messageContext, org.springframework.core.MethodParameter returnType, Object returnValue) protected void
XmlRootElementPayloadMethodProcessor.handleReturnValueInternal
(MessageContext messageContext, org.springframework.core.MethodParameter returnType, Object returnValue) protected final void
AbstractJaxb2PayloadMethodProcessor.marshalToResponsePayload
(MessageContext messageContext, Class<?> clazz, Object jaxbElement) Marshals the givenjaxbElement
to the response payload of the given message context.jakarta.xml.bind.JAXBElement<?>
JaxbElementPayloadMethodProcessor.resolveArgument
(MessageContext messageContext, org.springframework.core.MethodParameter parameter) XmlRootElementPayloadMethodProcessor.resolveArgument
(MessageContext messageContext, org.springframework.core.MethodParameter parameter) protected final <T> jakarta.xml.bind.JAXBElement<T>
AbstractJaxb2PayloadMethodProcessor.unmarshalElementFromRequestPayload
(MessageContext messageContext, Class<T> clazz) Unmarshals the request payload of the given message context asJAXBElement
.protected final Object
AbstractJaxb2PayloadMethodProcessor.unmarshalFromRequestPayload
(MessageContext messageContext, Class<?> clazz) Unmarshals the request payload of the given message context. -
Uses of MessageContext in org.springframework.ws.server.endpoint.interceptor
Modifier and TypeMethodDescriptionvoid
AbstractValidatingInterceptor.afterCompletion
(MessageContext messageContext, Object endpoint, Exception ex) Does nothing by default.void
DelegatingSmartEndpointInterceptor.afterCompletion
(MessageContext messageContext, Object endpoint, Exception ex) void
EndpointInterceptorAdapter.afterCompletion
(MessageContext messageContext, Object endpoint, Exception ex) Does nothing by default.void
PayloadTransformingInterceptor.afterCompletion
(MessageContext messageContext, Object endpoint, Exception ex) Does nothing by default.boolean
AbstractValidatingInterceptor.handleFault
(MessageContext messageContext, Object endpoint) Does nothing by default.boolean
DelegatingSmartEndpointInterceptor.handleFault
(MessageContext messageContext, Object endpoint) boolean
EndpointInterceptorAdapter.handleFault
(MessageContext messageContext, Object endpoint) Returnstrue
.boolean
PayloadTransformingInterceptor.handleFault
(MessageContext messageContext, Object endpoint) Does nothing by default.boolean
AbstractValidatingInterceptor.handleRequest
(MessageContext messageContext, Object endpoint) Validates the request message in the given message context.boolean
DelegatingSmartEndpointInterceptor.handleRequest
(MessageContext messageContext, Object endpoint) boolean
EndpointInterceptorAdapter.handleRequest
(MessageContext messageContext, Object endpoint) Returnstrue
.boolean
PayloadTransformingInterceptor.handleRequest
(MessageContext messageContext, Object endpoint) Transforms the request message in the given message context using a provided stylesheet.protected boolean
AbstractValidatingInterceptor.handleRequestValidationErrors
(MessageContext messageContext, SAXParseException[] errors) Template method that is called when the request message contains validation errors.boolean
AbstractValidatingInterceptor.handleResponse
(MessageContext messageContext, Object endpoint) Validates the response message in the given message context.boolean
DelegatingSmartEndpointInterceptor.handleResponse
(MessageContext messageContext, Object endpoint) boolean
EndpointInterceptorAdapter.handleResponse
(MessageContext messageContext, Object endpoint) Returnstrue
.boolean
PayloadTransformingInterceptor.handleResponse
(MessageContext messageContext, Object endpoint) Transforms the response message in the given message context using a stylesheet.protected boolean
AbstractValidatingInterceptor.handleResponseValidationErrors
(MessageContext messageContext, SAXParseException[] errors) Template method that is called when the response message contains validation errors.boolean
DelegatingSmartEndpointInterceptor.shouldIntercept
(MessageContext messageContext, Object endpoint) Indicates whether this interceptor should intercept the given message context. -
Uses of MessageContext in org.springframework.ws.server.endpoint.mapping
Modifier and TypeMethodDescriptionprotected EndpointInvocationChain
AbstractEndpointMapping.createEndpointInvocationChain
(MessageContext messageContext, Object endpoint, EndpointInterceptor[] interceptors) Creates a newEndpointInvocationChain
based on the given message context, endpoint, and interceptors.final EndpointInvocationChain
AbstractEndpointMapping.getEndpoint
(MessageContext messageContext) Look up an endpoint for the given message context, falling back to the default endpoint if no specific one is found.protected abstract Object
AbstractEndpointMapping.getEndpointInternal
(MessageContext messageContext) Lookup an endpoint for the given request, returningnull
if no specific one is found.protected final Object
AbstractMapBasedEndpointMapping.getEndpointInternal
(MessageContext messageContext) Lookup an endpoint for the given message.protected Object
AbstractMethodEndpointMapping.getEndpointInternal
(MessageContext messageContext) Lookup an endpoint for the given message.protected abstract String
AbstractMapBasedEndpointMapping.getLookupKeyForMessage
(MessageContext messageContext) Returns the endpoint key for the given message context.protected abstract T
AbstractMethodEndpointMapping.getLookupKeyForMessage
(MessageContext messageContext) Returns the endpoint keys for the given message context.protected final String
AbstractQNameEndpointMapping.getLookupKeyForMessage
(MessageContext messageContext) protected QName
PayloadRootAnnotationMethodEndpointMapping.getLookupKeyForMessage
(MessageContext messageContext) protected String
SimpleMethodEndpointMapping.getLookupKeyForMessage
(MessageContext messageContext) Returns the local part of the payload root element of the request.protected String
UriEndpointMapping.getLookupKeyForMessage
(MessageContext messageContext) protected String
XPathPayloadEndpointMapping.getLookupKeyForMessage
(MessageContext messageContext) protected abstract QName
AbstractQNameEndpointMapping.resolveQName
(MessageContext messageContext) Template method that resolves the qualified names from the given SOAP message.protected QName
PayloadRootQNameEndpointMapping.resolveQName
(MessageContext messageContext) -
Uses of MessageContext in org.springframework.ws.server.endpoint.mapping.jaxb
Modifier and TypeMethodDescriptionprotected QName
XmlRootElementEndpointMapping.getLookupKeyForMessage
(MessageContext messageContext) -
Uses of MessageContext in org.springframework.ws.soap.addressing.server
Modifier and TypeMethodDescriptionfinal EndpointInvocationChain
AbstractAddressingEndpointMapping.getEndpoint
(MessageContext messageContext) -
Uses of MessageContext in org.springframework.ws.soap.security
Modifier and TypeMethodDescriptionvoid
AbstractWsSecurityInterceptor.afterCompletion
(MessageContext messageContext, Exception ex) void
AbstractWsSecurityInterceptor.afterCompletion
(MessageContext messageContext, Object endpoint, Exception ex) boolean
AbstractWsSecurityInterceptor.handleFault
(MessageContext messageContext) Returnstrue
, i.e.boolean
AbstractWsSecurityInterceptor.handleFault
(MessageContext messageContext, Object endpoint) Returnstrue
, i.e.protected boolean
AbstractWsSecurityInterceptor.handleFaultException
(WsSecurityFaultException ex, MessageContext messageContext) Handles a fault exception.Default implementation logs the given exception, and creates a SOAP Fault with the properties of the given exception, and returnsfalse
.final boolean
AbstractWsSecurityInterceptor.handleRequest
(MessageContext messageContext) Secures a client-side outgoing request.final boolean
AbstractWsSecurityInterceptor.handleRequest
(MessageContext messageContext, Object endpoint) Validates a server-side incoming request.final boolean
AbstractWsSecurityInterceptor.handleResponse
(MessageContext messageContext) Validates a client-side incoming response.final boolean
AbstractWsSecurityInterceptor.handleResponse
(MessageContext messageContext, Object endpoint) Secures a server-side outgoing response.protected boolean
AbstractWsSecurityInterceptor.handleSecurementException
(WsSecuritySecurementException ex, MessageContext messageContext) Handles an securement exception.protected boolean
AbstractWsSecurityInterceptor.handleValidationException
(WsSecurityValidationException ex, MessageContext messageContext) Handles an invalid SOAP message.protected abstract void
AbstractWsSecurityInterceptor.secureMessage
(SoapMessage soapMessage, MessageContext messageContext) Abstract template method.protected abstract void
AbstractWsSecurityInterceptor.validateMessage
(SoapMessage soapMessage, MessageContext messageContext) Abstract template method. -
Uses of MessageContext in org.springframework.ws.soap.security.wss4j2
Modifier and TypeMethodDescriptionprotected org.apache.wss4j.dom.handler.RequestData
Wss4jSecurityInterceptor.initializeRequestData
(MessageContext messageContext) Creates and initializes a request data for the given message context.protected org.apache.wss4j.dom.handler.RequestData
Wss4jSecurityInterceptor.initializeValidationRequestData
(MessageContext messageContext) Creates and initializes a request data for the given message context.protected void
Wss4jSecurityInterceptor.secureMessage
(SoapMessage soapMessage, MessageContext messageContext) protected void
Wss4jSecurityInterceptor.validateMessage
(SoapMessage soapMessage, MessageContext messageContext) -
Uses of MessageContext in org.springframework.ws.soap.server
Modifier and TypeMethodDescriptionprotected boolean
SoapMessageDispatcher.handleRequest
(EndpointInvocationChain mappedEndpoint, MessageContext messageContext) Process the headers targeted at the actor or role fullfilled by the endpoint. -
Uses of MessageContext in org.springframework.ws.soap.server.endpoint
Modifier and TypeMethodDescriptionprotected void
SimpleSoapExceptionResolver.customizeFault
(MessageContext messageContext, Object endpoint, Exception ex, SoapFault fault) Empty template method to allow subclasses an opportunity to customize the givenSoapFault
.protected final boolean
AbstractFaultCreatingValidatingMarshallingPayloadEndpoint.onValidationErrors
(MessageContext messageContext, Object requestObject, org.springframework.validation.Errors errors) Deprecated.This implementation logs all errors, returnsfalse
, and creates aclient or sender
SoapFault
, adding aSoapFaultDetail
with all errors if theaddValidationErrorDetail
property istrue
.protected final boolean
AbstractSoapFaultDefinitionExceptionResolver.resolveExceptionInternal
(MessageContext messageContext, Object endpoint, Exception ex) protected final boolean
SimpleSoapExceptionResolver.resolveExceptionInternal
(MessageContext messageContext, Object endpoint, Exception ex) -
Uses of MessageContext in org.springframework.ws.soap.server.endpoint.adapter.method
Modifier and TypeMethodDescriptionSoapHeaderElementMethodArgumentResolver.resolveArgument
(MessageContext messageContext, org.springframework.core.MethodParameter parameter) SoapMethodArgumentResolver.resolveArgument
(MessageContext messageContext, org.springframework.core.MethodParameter parameter) -
Uses of MessageContext in org.springframework.ws.soap.server.endpoint.interceptor
Modifier and TypeMethodDescriptionboolean
SoapEnvelopeLoggingInterceptor.handleFault
(MessageContext messageContext, Object endpoint) protected boolean
AbstractFaultCreatingValidatingInterceptor.handleRequestValidationErrors
(MessageContext messageContext, SAXParseException[] errors) Template method that is called when the request message contains validation errors. -
Uses of MessageContext in org.springframework.ws.soap.server.endpoint.mapping
Modifier and TypeMethodDescriptionprotected final EndpointInvocationChain
SoapActionAnnotationMethodEndpointMapping.createEndpointInvocationChain
(MessageContext messageContext, Object endpoint, EndpointInterceptor[] interceptors) Creates a newSoapEndpointInvocationChain
based on the given endpoint, and the set interceptors, and actors/roles.protected final EndpointInvocationChain
SoapActionEndpointMapping.createEndpointInvocationChain
(MessageContext messageContext, Object endpoint, EndpointInterceptor[] interceptors) Creates a newSoapEndpointInvocationChain
based on the given endpoint, and the set interceptors, and actors/roles.DelegatingSoapEndpointMapping.getEndpoint
(MessageContext messageContext) Creates a newSoapEndpointInvocationChain
based on the delegate endpoint, the delegate interceptors, and set actors/roles.protected String
SoapActionAnnotationMethodEndpointMapping.getLookupKeyForMessage
(MessageContext messageContext) protected String
SoapActionEndpointMapping.getLookupKeyForMessage
(MessageContext messageContext) -
Uses of MessageContext in org.springframework.ws.transport
Modifier and TypeMethodDescriptionvoid
WebServiceMessageReceiver.receive
(MessageContext messageContext) Receives the given message context.