Class AbstractValidatingMarshallingPayloadEndpoint

java.lang.Object
org.springframework.ws.server.endpoint.AbstractMarshallingPayloadEndpoint
org.springframework.ws.server.endpoint.AbstractValidatingMarshallingPayloadEndpoint
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, MessageEndpoint
Direct Known Subclasses:
AbstractFaultCreatingValidatingMarshallingPayloadEndpoint

@Deprecated public abstract class AbstractValidatingMarshallingPayloadEndpoint extends AbstractMarshallingPayloadEndpoint
Deprecated.
as of Spring Web Services 2.0, in favor of annotated endpoints
Extension of the AbstractMarshallingPayloadEndpoint which validates the request payload with Validator(s). The desired validators can be set using properties, and must support the request object.
Since:
1.0.2
Author:
Arjen Poutsma
  • Field Details

    • DEFAULT_REQUEST_NAME

      public static final String DEFAULT_REQUEST_NAME
      Deprecated.
      Default request object name used for validating request objects.
      See Also:
  • Constructor Details

    • AbstractValidatingMarshallingPayloadEndpoint

      public AbstractValidatingMarshallingPayloadEndpoint()
      Deprecated.
  • Method Details

    • getRequestName

      public String getRequestName()
      Deprecated.
      Return the name of the request object for validation error codes.
    • setRequestName

      public void setRequestName(String requestName)
      Deprecated.
      Set the name of the request object user for validation errors.
    • getValidator

      public org.springframework.validation.Validator getValidator()
      Deprecated.
      Return the primary Validator for this controller.
    • setValidator

      public void setValidator(org.springframework.validation.Validator validator)
      Deprecated.
      Set the primary Validator for this endpoint. The Validator is must support the unmarshalled class. If there are one or more existing validators set already when this method is called, only the specified validator will be kept. Use setValidators(Validator[]) to set multiple validators.
    • getValidators

      public org.springframework.validation.Validator[] getValidators()
      Deprecated.
      Return the Validators for this controller.
    • setValidators

      public void setValidators(org.springframework.validation.Validator[] validators)
      Deprecated.
      Set the Validators for this controller. The Validator must support the specified command class.
    • onUnmarshalRequest

      protected boolean onUnmarshalRequest(MessageContext messageContext, Object requestObject) throws Exception
      Deprecated.
      Description copied from class: AbstractMarshallingPayloadEndpoint
      Callback for post-processing in terms of unmarshalling. Called on each message request, after standard unmarshalling.

      Default implementation returns true.

      Overrides:
      onUnmarshalRequest in class AbstractMarshallingPayloadEndpoint
      Parameters:
      messageContext - the message context
      requestObject - the object unmarshalled from the request
      Returns:
      true to continue and call AbstractMarshallingPayloadEndpoint.invokeInternal(Object); false otherwise
      Throws:
      Exception
    • onValidationErrors

      protected abstract boolean onValidationErrors(MessageContext messageContext, Object requestObject, org.springframework.validation.Errors errors)
      Deprecated.
      Callback for post-processing validation errors. Called when validator(s) have been specified, and validation fails.
      Parameters:
      messageContext - the message context
      requestObject - the object unmarshalled from the request
      errors - validation errors holder
      Returns:
      true to continue and call AbstractMarshallingPayloadEndpoint.invokeInternal(Object); false otherwise