|
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
org.springframework.ws.soap.server.endpoint.AbstractFaultCreatingValidatingMarshallingPayloadEndpoint
public abstract class AbstractFaultCreatingValidatingMarshallingPayloadEndpoint
Extension of the 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.
addValidationErrorDetail, faultStringOrReason, or detailElementName properties.
| Field Summary | |
|---|---|
static QName |
DEFAULT_DETAIL_ELEMENT_NAME
Default SOAP Fault Detail name used when a global validation error occur on the request. |
static String |
DEFAULT_FAULTSTRING_OR_REASON
Default SOAP Fault string used when a validation errors occur on the request. |
| Fields inherited from class org.springframework.ws.server.endpoint.AbstractValidatingMarshallingPayloadEndpoint |
|---|
DEFAULT_REQUEST_NAME |
| Fields inherited from class org.springframework.ws.server.endpoint.AbstractMarshallingPayloadEndpoint |
|---|
logger |
| Constructor Summary | |
|---|---|
AbstractFaultCreatingValidatingMarshallingPayloadEndpoint()
|
|
| Method Summary | |
|---|---|
boolean |
getAddValidationErrorDetail()
Returns whether a SOAP Fault detail element should be created when a validation error occurs. |
QName |
getDetailElementName()
Returns the fault detail element name when validation errors occur on the request. |
Locale |
getFaultLocale()
Returns the locale for SOAP fault reason and validation message resolution. |
String |
getFaultStringOrReason()
Sets the SOAP faultstring or Reason used when validation errors occur on the request. |
protected boolean |
onValidationErrors(MessageContext messageContext,
Object requestObject,
Errors errors)
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)
Indicates whether a SOAP Fault detail element should be created when a validation error occurs. |
void |
setDetailElementName(QName detailElementName)
Sets the fault detail element name when validation errors occur on the request. |
void |
setFaultStringOrReason(String faultStringOrReason)
Sets the SOAP faultstring or Reason used when validation errors occur on the request. |
void |
setFaultStringOrReasonLocale(Locale faultStringOrReasonLocale)
Sets the locale for SOAP fault reason and validation messages. |
void |
setMessageSource(MessageSource messageSource)
|
| Methods inherited from class org.springframework.ws.server.endpoint.AbstractValidatingMarshallingPayloadEndpoint |
|---|
getRequestName, getValidator, getValidators, onUnmarshalRequest, setRequestName, setValidator, setValidators |
| 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 QName DEFAULT_DETAIL_ELEMENT_NAME
setDetailElementName(javax.xml.namespace.QName)public static final String DEFAULT_FAULTSTRING_OR_REASON
setFaultStringOrReason(String),
Constant Field Values| Constructor Detail |
|---|
public AbstractFaultCreatingValidatingMarshallingPayloadEndpoint()
| Method Detail |
|---|
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 MessageSourceAware
protected 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 request
true to continue processing the request, false (the default) otherwiseErrors.getAllErrors()
|
Spring Web Services Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||