|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.javacrumbs.springws.test.validator.SchemaRequestValidator
public class SchemaRequestValidator
Validates message using provided schema(s). Similar to the AbstractValidatingInterceptor.
| Field Summary | |
|---|---|
protected org.apache.commons.logging.Log |
logger
|
| Fields inherited from interface org.springframework.core.Ordered |
|---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
| Constructor Summary | |
|---|---|
SchemaRequestValidator()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
int |
getOrder()
|
java.lang.String |
getSchemaLanguage()
|
org.springframework.core.io.Resource[] |
getSchemas()
Returns the schema resources to use for validation. |
SchemaValidator |
getSchemaValidator()
|
org.springframework.xml.validation.XmlValidator |
getValidator()
|
org.springframework.ws.WebServiceMessage |
processRequest(java.net.URI uri,
org.springframework.ws.WebServiceMessageFactory messageFactory,
org.springframework.ws.WebServiceMessage request)
Processes the request. |
void |
setOrder(int order)
|
void |
setSchema(org.springframework.core.io.Resource schema)
Sets the schema resource to use for validation. |
void |
setSchemaLanguage(java.lang.String schemaLanguage)
Sets the schema language. |
void |
setSchemas(org.springframework.core.io.Resource[] schemas)
Sets the schema resources to use for validation. |
void |
setSchemaValidator(SchemaValidator schemaValidator)
|
void |
setValidator(org.springframework.xml.validation.XmlValidator validator)
|
void |
setXsdSchema(org.springframework.xml.xsd.XsdSchema schema)
Sets the XsdSchema to use for validation. |
void |
setXsdSchemaCollection(org.springframework.xml.xsd.XsdSchemaCollection schemaCollection)
Sets the XsdSchemaCollection to use for validation. |
protected void |
validateRequest(java.net.URI uri,
org.springframework.ws.WebServiceMessage message)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.apache.commons.logging.Log logger
| Constructor Detail |
|---|
public SchemaRequestValidator()
| Method Detail |
|---|
public org.springframework.ws.WebServiceMessage processRequest(java.net.URI uri,
org.springframework.ws.WebServiceMessageFactory messageFactory,
org.springframework.ws.WebServiceMessage request)
throws java.io.IOException
RequestProcessornull if it does not apply to given request or throw an
exception if appropriate.
processRequest in interface RequestProcessorjava.io.IOException
protected void validateRequest(java.net.URI uri,
org.springframework.ws.WebServiceMessage message)
throws java.io.IOException
java.io.IOException
public void afterPropertiesSet()
throws java.io.IOException
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.io.IOExceptionpublic java.lang.String getSchemaLanguage()
public void setSchemaLanguage(java.lang.String schemaLanguage)
http://www.w3.org/2001/XMLSchema".
XmlValidatorFactory.SCHEMA_W3C_XML,
XmlValidatorFactory.SCHEMA_RELAX_NGpublic org.springframework.core.io.Resource[] getSchemas()
public void setSchema(org.springframework.core.io.Resource schema)
xsdSchemaCollection, schema, or schemas is required.
public void setSchemas(org.springframework.core.io.Resource[] schemas)
xsdSchemaCollection, schema, or schemas is required.
public void setXsdSchema(org.springframework.xml.xsd.XsdSchema schema)
throws java.io.IOException
XsdSchema to use for validation. Setting this property, xsdSchemaCollection, schema, or schemas is required.
schema - the xsd schema to use
java.io.IOException - in case of I/O errors
public void setXsdSchemaCollection(org.springframework.xml.xsd.XsdSchemaCollection schemaCollection)
throws java.io.IOException
XsdSchemaCollection to use for validation. Setting this property, xsdSchema, schema, or schemas is required.
schemaCollection - the xsd schema collection to use
java.io.IOException - in case of I/O errorspublic org.springframework.xml.validation.XmlValidator getValidator()
public void setValidator(org.springframework.xml.validation.XmlValidator validator)
public int getOrder()
getOrder in interface org.springframework.core.Orderedpublic void setOrder(int order)
public SchemaValidator getSchemaValidator()
public void setSchemaValidator(SchemaValidator schemaValidator)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||