Class 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 Details

  • 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 a SoapMessage. Defaults to true.
      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 a SoapMessage. Defaults to true.
      See Also:
    • getDetailElementName

      public QName getDetailElementName()
      Deprecated.
      Returns the fault detail element name when validation errors occur on the request.
    • setDetailElementName

      public void setDetailElementName(QName detailElementName)
      Deprecated.
      Sets the fault detail element name when validation errors occur on the request. Defaults to DEFAULT_DETAIL_ELEMENT_NAME.
      See Also:
    • getFaultStringOrReason

      public String getFaultStringOrReason()
      Deprecated.
      Sets the SOAP faultstring or Reason used when validation errors occur on the request.
    • setFaultStringOrReason

      public void setFaultStringOrReason(String faultStringOrReason)
      Deprecated.
      Sets the SOAP faultstring or Reason used when validation errors occur on the request. It is only added when the underlying message is a SoapMessage. Defaults to DEFAULT_FAULTSTRING_OR_REASON.
      See Also:
    • getFaultLocale

      public Locale getFaultLocale()
      Deprecated.
      Returns the locale for SOAP fault reason and validation message resolution.
    • setFaultStringOrReasonLocale

      public void setFaultStringOrReasonLocale(Locale faultStringOrReasonLocale)
      Deprecated.
      Sets the locale for SOAP fault reason and validation messages. It is only added when the underlying message is a SoapMessage. Defaults to English.
      See Also:
    • setMessageSource

      public final void setMessageSource(org.springframework.context.MessageSource messageSource)
      Deprecated.
      Specified by:
      setMessageSource in interface org.springframework.context.MessageSourceAware
    • onValidationErrors

      protected final boolean onValidationErrors(MessageContext messageContext, Object requestObject, org.springframework.validation.Errors errors)
      Deprecated.
      This implementation logs all errors, returns false, and creates a client or sender SoapFault, adding a SoapFaultDetail with all errors if the addValidationErrorDetail property is true.
      Specified by:
      onValidationErrors in class AbstractValidatingMarshallingPayloadEndpoint
      Parameters:
      messageContext - the message context
      errors - the validation errors
      requestObject - the object unmarshalled from the request
      Returns:
      true to continue processing the request, false (the default) otherwise
      See Also:
      • Errors.getAllErrors()