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
FieldsModifier and TypeFieldDescriptionstatic final QNameDeprecated.Default SOAP Fault Detail name used when a global validation error occur on the request.static final StringDeprecated.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_NAMEFields inherited from class org.springframework.ws.server.endpoint.AbstractMarshallingPayloadEndpoint
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.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 SOAPfaultstringorReasonused when validation errors occur on the request.protected final booleanonValidationErrors(MessageContext messageContext, Object requestObject, org.springframework.validation.Errors errors) Deprecated.This implementation logs all errors, returnsfalse, and creates aclient or senderSoapFault, adding aSoapFaultDetailwith all errors if theaddValidationErrorDetailproperty istrue.voidsetAddValidationErrorDetail(boolean addValidationErrorDetail) Deprecated.Indicates whether a SOAP Fault detail element should be created when a validation error occurs.voidsetDetailElementName(QName detailElementName) Deprecated.Sets the fault detail element name when validation errors occur on the request.voidsetFaultStringOrReason(String faultStringOrReason) Deprecated.Sets the SOAPfaultstringorReasonused when validation errors occur on the request.voidsetFaultStringOrReasonLocale(Locale faultStringOrReasonLocale) Deprecated.Sets the locale for SOAP fault reason and validation messages.final voidsetMessageSource(org.springframework.context.MessageSource messageSource) Deprecated.Methods inherited from class org.springframework.ws.server.endpoint.AbstractValidatingMarshallingPayloadEndpoint
getRequestName, getValidator, getValidators, onUnmarshalRequest, setRequestName, setValidator, setValidatorsMethods 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 SOAPfaultstringorReasonused when validation errors occur on the request. -
setFaultStringOrReason
Deprecated.Sets the SOAPfaultstringorReasonused 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:
setMessageSourcein 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 senderSoapFault, adding aSoapFaultDetailwith all errors if theaddValidationErrorDetailproperty istrue.- Specified by:
onValidationErrorsin classAbstractValidatingMarshallingPayloadEndpoint- Parameters:
messageContext- the message contexterrors- the validation errorsrequestObject- the object unmarshalled from therequest- Returns:
trueto continue processing the request,false(the default) otherwise- See Also:
-
Errors.getAllErrors()
-