|
Spring Web Services Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.xml.transform.TransformerObjectSupport
org.springframework.ws.server.endpoint.interceptor.AbstractValidatingInterceptor
org.springframework.ws.soap.server.endpoint.interceptor.AbstractFaultCreatingValidatingInterceptor
public abstract class AbstractFaultCreatingValidatingInterceptor
Subclass of AbstractValidatingInterceptor that creates a SOAP Fault whenever the request message cannot
be validated. The contents of the SOAP Fault can be specified by setting the addValidationErrorDetail,
faultStringOrReason, or detailElementName properties. Further customizing can be
accomplished by overriding handleRequestValidationErrors.
setAddValidationErrorDetail(boolean),
setFaultStringOrReason(String),
DEFAULT_FAULTSTRING_OR_REASON,
setDetailElementName(javax.xml.namespace.QName),
DEFAULT_DETAIL_ELEMENT_NAME,
AbstractValidatingInterceptor.handleResponseValidationErrors(org.springframework.ws.context.MessageContext,org.xml.sax.SAXParseException[])| Field Summary | |
|---|---|
static QName |
DEFAULT_DETAIL_ELEMENT_NAME
Default SOAP Fault Detail name used when a validation errors 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.xml.transform.TransformerObjectSupport |
|---|
logger |
| Constructor Summary | |
|---|---|
AbstractFaultCreatingValidatingInterceptor()
|
|
| 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. |
String |
getFaultStringOrReason()
Sets the SOAP faultstring or Reason used when validation errors occur on the request. |
Locale |
getFaultStringOrReasonLocale()
Returns the SOAP fault reason locale used when validation errors occur on the request. |
protected boolean |
handleRequestValidationErrors(MessageContext messageContext,
SAXParseException[] errors)
Template method that is called when the request message contains validation errors. |
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 SOAP fault reason locale used when validation errors occur on the request. |
| Methods inherited from class org.springframework.ws.server.endpoint.interceptor.AbstractValidatingInterceptor |
|---|
afterCompletion, afterPropertiesSet, getSchemaLanguage, getSchemas, getValidationRequestSource, getValidationResponseSource, handleFault, handleRequest, handleResponse, handleResponseValidationErrors, setErrorHandler, setSchema, setSchemaLanguage, setSchemas, setValidateRequest, setValidateResponse, setXsdSchema, setXsdSchemaCollection |
| Methods inherited from class org.springframework.xml.transform.TransformerObjectSupport |
|---|
createTransformer, getTransformerFactory, newTransformerFactory, setTransformerFactoryClass, transform |
| 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 AbstractFaultCreatingValidatingInterceptor()
| 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 getFaultStringOrReasonLocale()
public void setFaultStringOrReasonLocale(Locale faultStringOrReasonLocale)
SoapMessage. Defaults to English.
Locale.ENGLISH
protected boolean handleRequestValidationErrors(MessageContext messageContext,
SAXParseException[] errors)
throws TransformerException
false, and creates a client or
sender SoapFault, adding a SoapFaultDetail with all errors if the
addValidationErrorDetail property is true.
handleRequestValidationErrors in class AbstractValidatingInterceptormessageContext - the message contexterrors - the validation errors
true to continue processing the request, false (the default) otherwise
TransformerException
|
Spring Web Services Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||