Class AbstractFaultCreatingValidatingMarshallingPayloadEndpoint
java.lang.Object
org.springframework.ws.server.endpoint.AbstractMarshallingPayloadEndpoint
org.springframework.ws.server.endpoint.AbstractValidatingMarshallingPayloadEndpoint
org.springframework.ws.soap.server.endpoint.AbstractFaultCreatingValidatingMarshallingPayloadEndpoint
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.InitializingBean
,org.springframework.context.MessageSourceAware
,MessageEndpoint
@Deprecated
public abstract class AbstractFaultCreatingValidatingMarshallingPayloadEndpoint
extends AbstractValidatingMarshallingPayloadEndpoint
implements org.springframework.context.MessageSourceAware
Deprecated.
as of Spring Web Services 2.0, in favor of annotated endpoints
Extension of the
AbstractValidatingMarshallingPayloadEndpoint
which
validates the request payload with Validator
(s), and creates a SOAP Fault whenever the request message cannot
be validated. The desired validators can be set using properties, and must
support
the request object.
The contents of the SOAP Fault can be specified by setting the addValidationErrorDetail
, faultStringOrReason
, or
detailElementName
properties.
- Since:
- 1.0.2
- Author:
- Arjen Poutsma
-
Field Summary
Modifier and TypeFieldDescriptionstatic final QName
Deprecated.Default SOAP Fault Detail name used when a global validation error occur on the request.static final String
Deprecated.Default SOAP Fault string used when a validation errors occur on the request.Fields inherited from class org.springframework.ws.server.endpoint.AbstractValidatingMarshallingPayloadEndpoint
DEFAULT_REQUEST_NAME
Fields inherited from class org.springframework.ws.server.endpoint.AbstractMarshallingPayloadEndpoint
logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Deprecated.Returns whether a SOAP Fault detail element should be created when a validation error occurs.Deprecated.Returns the fault detail element name when validation errors occur on the request.Deprecated.Returns the locale for SOAP fault reason and validation message resolution.Deprecated.Sets the SOAPfaultstring
orReason
used when validation errors occur on the request.protected final boolean
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
.void
setAddValidationErrorDetail
(boolean addValidationErrorDetail) Deprecated.Indicates whether a SOAP Fault detail element should be created when a validation error occurs.void
setDetailElementName
(QName detailElementName) Deprecated.Sets the fault detail element name when validation errors occur on the request.void
setFaultStringOrReason
(String faultStringOrReason) Deprecated.Sets the SOAPfaultstring
orReason
used when validation errors occur on the request.void
setFaultStringOrReasonLocale
(Locale faultStringOrReasonLocale) Deprecated.Sets the locale for SOAP fault reason and validation messages.final void
setMessageSource
(org.springframework.context.MessageSource messageSource) Deprecated.Methods inherited from class org.springframework.ws.server.endpoint.AbstractValidatingMarshallingPayloadEndpoint
getRequestName, getValidator, getValidators, onUnmarshalRequest, setRequestName, setValidator, setValidators
Methods inherited from class org.springframework.ws.server.endpoint.AbstractMarshallingPayloadEndpoint
afterMarshallerSet, afterPropertiesSet, getMarshaller, getUnmarshaller, invoke, invokeInternal, onMarshalResponse, setMarshaller, setUnmarshaller
-
Field Details
-
DEFAULT_DETAIL_ELEMENT_NAME
Deprecated.Default SOAP Fault Detail name used when a global validation error occur on the request. -
DEFAULT_FAULTSTRING_OR_REASON
Deprecated.Default SOAP Fault string used when a validation errors occur on the request.
-
-
Constructor Details
-
AbstractFaultCreatingValidatingMarshallingPayloadEndpoint
public AbstractFaultCreatingValidatingMarshallingPayloadEndpoint()Deprecated.
-
-
Method Details
-
getAddValidationErrorDetail
public boolean getAddValidationErrorDetail()Deprecated.Returns whether a SOAP Fault detail element should be created when a validation error occurs. This detail element will contain the exact validation errors. It is only added when the underlying message is aSoapMessage
. Defaults totrue
.- See Also:
-
setAddValidationErrorDetail
public void setAddValidationErrorDetail(boolean addValidationErrorDetail) Deprecated.Indicates whether a SOAP Fault detail element should be created when a validation error occurs. This detail element will contain the exact validation errors. It is only added when the underlying message is aSoapMessage
. Defaults totrue
.- See Also:
-
getDetailElementName
Deprecated.Returns the fault detail element name when validation errors occur on the request. -
setDetailElementName
Deprecated.Sets the fault detail element name when validation errors occur on the request. Defaults toDEFAULT_DETAIL_ELEMENT_NAME
.- See Also:
-
getFaultStringOrReason
Deprecated.Sets the SOAPfaultstring
orReason
used when validation errors occur on the request. -
setFaultStringOrReason
Deprecated.Sets the SOAPfaultstring
orReason
used when validation errors occur on the request. It is only added when the underlying message is aSoapMessage
. Defaults toDEFAULT_FAULTSTRING_OR_REASON
.- See Also:
-
getFaultLocale
Deprecated.Returns the locale for SOAP fault reason and validation message resolution. -
setFaultStringOrReasonLocale
Deprecated.Sets the locale for SOAP fault reason and validation messages. It is only added when the underlying message is aSoapMessage
. Defaults to English.- See Also:
-
setMessageSource
public final void setMessageSource(org.springframework.context.MessageSource messageSource) Deprecated.- Specified by:
setMessageSource
in interfaceorg.springframework.context.MessageSourceAware
-
onValidationErrors
protected final boolean 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
.- Specified by:
onValidationErrors
in classAbstractValidatingMarshallingPayloadEndpoint
- Parameters:
messageContext
- the message contexterrors
- the validation errorsrequestObject
- the object unmarshalled from therequest
- Returns:
true
to continue processing the request,false
(the default) otherwise- See Also:
-
Errors.getAllErrors()
-