@Deprecated public abstract class AbstractFaultCreatingValidatingMarshallingPayloadEndpoint extends AbstractValidatingMarshallingPayloadEndpoint implements MessageSourceAware
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.
| Modifier and Type | Field and Description |
|---|---|
static QName |
DEFAULT_DETAIL_ELEMENT_NAME
Deprecated.
Default SOAP Fault Detail name used when a global validation error occur on the request.
|
static String |
DEFAULT_FAULTSTRING_OR_REASON
Deprecated.
Default SOAP Fault string used when a validation errors occur on the request.
|
DEFAULT_REQUEST_NAMElogger| Constructor and Description |
|---|
AbstractFaultCreatingValidatingMarshallingPayloadEndpoint()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAddValidationErrorDetail()
Deprecated.
Returns whether a SOAP Fault detail element should be created when a validation error occurs.
|
QName |
getDetailElementName()
Deprecated.
Returns the fault detail element name when validation errors occur on the request.
|
Locale |
getFaultLocale()
Deprecated.
Returns the locale for SOAP fault reason and validation message resolution.
|
String |
getFaultStringOrReason()
Deprecated.
Sets the SOAP
faultstring or Reason used when validation errors occur on the request. |
protected boolean |
onValidationErrors(MessageContext messageContext,
Object requestObject,
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. |
void |
setAddValidationErrorDetail(boolean addValidationErrorDetail)
Deprecated.
Indicates whether a SOAP Fault detail element should be created when a validation error occurs.
|
void |
setDetailElementName(QName detailElementName)
Deprecated.
Sets the fault detail element name when validation errors occur on the request.
|
void |
setFaultStringOrReason(String faultStringOrReason)
Deprecated.
Sets the SOAP
faultstring or Reason used when validation errors occur on the request. |
void |
setFaultStringOrReasonLocale(Locale faultStringOrReasonLocale)
Deprecated.
Sets the locale for SOAP fault reason and validation messages.
|
void |
setMessageSource(MessageSource messageSource)
Deprecated.
|
getRequestName, getValidator, getValidators, onUnmarshalRequest, setRequestName, setValidator, setValidatorsafterMarshallerSet, afterPropertiesSet, getMarshaller, getUnmarshaller, invoke, invokeInternal, onMarshalResponse, setMarshaller, setUnmarshallerpublic static final QName DEFAULT_DETAIL_ELEMENT_NAME
public static final String DEFAULT_FAULTSTRING_OR_REASON
public AbstractFaultCreatingValidatingMarshallingPayloadEndpoint()
public boolean getAddValidationErrorDetail()
SoapMessage. Defaults to true.SoapFault.addFaultDetail()public void setAddValidationErrorDetail(boolean addValidationErrorDetail)
SoapMessage. Defaults to true.SoapFault.addFaultDetail()public QName getDetailElementName()
public void setDetailElementName(QName detailElementName)
DEFAULT_DETAIL_ELEMENT_NAME.DEFAULT_DETAIL_ELEMENT_NAMEpublic String getFaultStringOrReason()
faultstring or Reason used when validation errors occur on the request.public void setFaultStringOrReason(String faultStringOrReason)
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.DEFAULT_FAULTSTRING_OR_REASONpublic Locale getFaultLocale()
public void setFaultStringOrReasonLocale(Locale faultStringOrReasonLocale)
SoapMessage. Defaults to English.Locale.ENGLISHpublic final void setMessageSource(MessageSource messageSource)
setMessageSource in interface MessageSourceAwareprotected final boolean onValidationErrors(MessageContext messageContext, Object requestObject, Errors errors)
false, and creates a client or sender SoapFault, adding a SoapFaultDetail with all errors if the addValidationErrorDetail property is true.onValidationErrors in class AbstractValidatingMarshallingPayloadEndpointmessageContext - the message contexterrors - the validation errorsrequestObject - the object unmarshalled from the requesttrue to continue processing the request, false (the default) otherwiseErrors.getAllErrors()