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
Modifier and TypeFieldDescriptionstatic final String
Deprecated.Default request object name used for validating request objects.Fields inherited from class org.springframework.ws.server.endpoint.AbstractMarshallingPayloadEndpoint
logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Return the name of the request object for validation error codes.org.springframework.validation.Validator
Deprecated.Return the primary Validator for this controller.org.springframework.validation.Validator[]
Deprecated.Return the Validators for this controller.protected boolean
onUnmarshalRequest
(MessageContext messageContext, Object requestObject) Deprecated.Callback for post-processing in terms of unmarshalling.protected abstract boolean
onValidationErrors
(MessageContext messageContext, Object requestObject, org.springframework.validation.Errors errors) Deprecated.Callback for post-processing validation errors.void
setRequestName
(String requestName) Deprecated.Set the name of the request object user for validation errors.void
setValidator
(org.springframework.validation.Validator validator) Deprecated.Set the primaryValidator
for this endpoint.void
setValidators
(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 primaryValidator
for this endpoint. TheValidator
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. 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:AbstractMarshallingPayloadEndpoint
Callback for post-processing in terms of unmarshalling. Called on each message request, after standard unmarshalling.Default implementation returns
true
.- Overrides:
onUnmarshalRequest
in classAbstractMarshallingPayloadEndpoint
- Parameters:
messageContext
- the message contextrequestObject
- the object unmarshalled from therequest
- Returns:
true
to continue and callAbstractMarshallingPayloadEndpoint.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 contextrequestObject
- the object unmarshalled from therequest
errors
- validation errors holder- Returns:
true
to continue and callAbstractMarshallingPayloadEndpoint.invokeInternal(Object)
;false
otherwise
-