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 Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.Default request object name used for validating request objects.Fields inherited from class org.springframework.ws.server.endpoint.AbstractMarshallingPayloadEndpoint
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Return the name of the request object for validation error codes.org.springframework.validation.ValidatorDeprecated.Return the primary Validator for this controller.org.springframework.validation.Validator[]Deprecated.Return the Validators for this controller.protected booleanonUnmarshalRequest(MessageContext messageContext, Object requestObject) Deprecated.Callback for post-processing in terms of unmarshalling.protected abstract booleanonValidationErrors(MessageContext messageContext, Object requestObject, org.springframework.validation.Errors errors) Deprecated.Callback for post-processing validation errors.voidsetRequestName(String requestName) Deprecated.Set the name of the request object user for validation errors.voidsetValidator(org.springframework.validation.Validator validator) Deprecated.Set the primaryValidatorfor this endpoint.voidsetValidators(org.springframework.validation.Validator[] validators) Deprecated.Set the Validators for this controller.Methods inherited from class org.springframework.ws.server.endpoint.AbstractMarshallingPayloadEndpoint
afterMarshallerSet, afterPropertiesSet, getMarshaller, getUnmarshaller, invoke, invokeInternal, onMarshalResponse, setMarshaller, setUnmarshaller
-
Field Details
-
DEFAULT_REQUEST_NAME
Deprecated.Default request object name used for validating request objects.- See Also:
-
-
Constructor Details
-
AbstractValidatingMarshallingPayloadEndpoint
public AbstractValidatingMarshallingPayloadEndpoint()Deprecated.
-
-
Method Details
-
getRequestName
Deprecated.Return the name of the request object for validation error codes. -
setRequestName
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 primaryValidatorfor this endpoint. TheValidatoris 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. UsesetValidators(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:AbstractMarshallingPayloadEndpointCallback for post-processing in terms of unmarshalling. Called on each message request, after standard unmarshalling.Default implementation returns
true.- Overrides:
onUnmarshalRequestin classAbstractMarshallingPayloadEndpoint- Parameters:
messageContext- the message contextrequestObject- the object unmarshalled from therequest- Returns:
trueto continue and callAbstractMarshallingPayloadEndpoint.invokeInternal(Object);falseotherwise- 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 contextrequestObject- the object unmarshalled from therequesterrors- validation errors holder- Returns:
trueto continue and callAbstractMarshallingPayloadEndpoint.invokeInternal(Object);falseotherwise
-