public class ValidatorInterceptor extends AbstractInterceptor
WSDLValidator
, XMLSchemaValidator
,
JSONValidator
and SchematronValidator
depending on the
attributes.Modifier and Type | Class and Description |
---|---|
static interface |
ValidatorInterceptor.FailureHandler |
Interceptor.Flow
ELEMENT_NAME, id, name
router
Constructor and Description |
---|
ValidatorInterceptor() |
Modifier and Type | Method and Description |
---|---|
void |
doAfterParsing() |
String |
getFailureHandler() |
String |
getHelpId() |
String |
getJsonSchema() |
String |
getLongDescription() |
String |
getSchema() |
String |
getSchematron() |
String |
getShortDescription() |
String |
getWsdl() |
Outcome |
handleRequest(Exchange exc) |
Outcome |
handleResponse(Exchange exc) |
void |
init() |
protected void |
parseAttributes(XMLStreamReader token) |
void |
setFailureHandler(String failureHandler) |
void |
setJsonSchema(String jsonSchema) |
void |
setResourceResolver(ResourceResolver resourceResolver) |
void |
setRouter(Router router) |
void |
setSchema(String schema) |
void |
setSchematron(String schematron) |
void |
setWsdl(String wsdl) |
protected void |
writeInterceptor(XMLStreamWriter out) |
getDisplayName, getElementName, getFlow, getId, setDisplayName, setFlow, setId, write
getRouter
getBoolean, move2RootElementIfNeeded, parse, parseCharacters, parseChildren, toXml, writeIfNotNull
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRouter
parse
public Outcome handleRequest(Exchange exc) throws Exception
handleRequest
in interface Interceptor
handleRequest
in class AbstractInterceptor
Exception
public Outcome handleResponse(Exchange exc) throws Exception
handleResponse
in interface Interceptor
handleResponse
in class AbstractInterceptor
Exception
protected void writeInterceptor(XMLStreamWriter out) throws XMLStreamException
writeInterceptor
in class AbstractInterceptor
XMLStreamException
protected void parseAttributes(XMLStreamReader token) throws Exception
parseAttributes
in class AbstractInterceptor
Exception
public void doAfterParsing() throws Exception
doAfterParsing
in class AbstractXmlElement
Exception
public void setWsdl(String wsdl)
public String getWsdl()
public String getSchema()
public void setSchema(String schema)
public String getFailureHandler()
public void setFailureHandler(String failureHandler)
public String getJsonSchema()
public void setJsonSchema(String jsonSchema)
public String getSchematron()
public void setSchematron(String schematron)
public void setRouter(Router router)
setRouter
in interface Interceptor
setRouter
in class AbstractConfigElement
public void setResourceResolver(ResourceResolver resourceResolver)
public String getShortDescription()
getShortDescription
in interface Interceptor
getShortDescription
in class AbstractInterceptor
public String getLongDescription()
getLongDescription
in interface Interceptor
getLongDescription
in class AbstractInterceptor
public String getHelpId()
getHelpId
in interface Interceptor
getHelpId
in class AbstractInterceptor
Copyright © 2012. All Rights Reserved.