|
Spring Web Services Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.ws.server.endpoint.AbstractMarshallingPayloadEndpoint
org.springframework.ws.server.endpoint.AbstractValidatingMarshallingPayloadEndpoint
public abstract class AbstractValidatingMarshallingPayloadEndpoint
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.
| Field Summary | |
|---|---|
static String |
DEFAULT_REQUEST_NAME
Default request object name used for validating request objects. |
| Fields inherited from class org.springframework.ws.server.endpoint.AbstractMarshallingPayloadEndpoint |
|---|
logger |
| Constructor Summary | |
|---|---|
AbstractValidatingMarshallingPayloadEndpoint()
|
|
| Method Summary | |
|---|---|
String |
getRequestName()
Return the name of the request object for validation error codes. |
Validator |
getValidator()
Return the primary Validator for this controller. |
Validator[] |
getValidators()
Return the Validators for this controller. |
protected boolean |
onUnmarshalRequest(MessageContext messageContext,
Object requestObject)
Callback for post-processing in terms of unmarshalling. |
protected abstract boolean |
onValidationErrors(MessageContext messageContext,
Object requestObject,
Errors errors)
Callback for post-processing validation errors. |
void |
setRequestName(String requestName)
Set the name of the request object user for validation errors. |
void |
setValidator(Validator validator)
Set the primary Validator for this endpoint. |
void |
setValidators(Validator[] validators)
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_REQUEST_NAME
| Constructor Detail |
|---|
public AbstractValidatingMarshallingPayloadEndpoint()
| Method Detail |
|---|
public final String getRequestName()
public final void setRequestName(String requestName)
public final Validator getValidator()
public final void setValidator(Validator validator)
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.
public final Validator[] getValidators()
public final void setValidators(Validator[] validators)
protected final boolean onUnmarshalRequest(MessageContext messageContext,
Object requestObject)
throws Exception
AbstractMarshallingPayloadEndpointtrue.
onUnmarshalRequest in class AbstractMarshallingPayloadEndpointmessageContext - the message contextrequestObject - the object unmarshalled from the request
true to continue and call AbstractMarshallingPayloadEndpoint.invokeInternal(Object); false otherwise
Exception
protected abstract boolean onValidationErrors(MessageContext messageContext,
Object requestObject,
Errors errors)
messageContext - the message contextrequestObject - the object unmarshalled from the requesterrors - validation errors holder
true to continue and call AbstractMarshallingPayloadEndpoint.invokeInternal(Object); false otherwise
|
Spring Web Services Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||