public class AbstractInterceptor extends AbstractConfigElement implements Interceptor
Interceptor.Flow| Modifier and Type | Field and Description |
|---|---|
static String |
ELEMENT_NAME |
protected String |
id |
protected String |
name |
router| Constructor and Description |
|---|
AbstractInterceptor() |
AbstractInterceptor(Router router) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDisplayName() |
protected String |
getElementName() |
Interceptor.Flow |
getFlow() |
String |
getHelpId() |
String |
getId() |
String |
getLongDescription() |
String |
getShortDescription() |
Outcome |
handleRequest(Exchange exc) |
Outcome |
handleResponse(Exchange exc) |
protected void |
parseAttributes(XMLStreamReader token) |
void |
setDisplayName(String name) |
void |
setFlow(Interceptor.Flow flow) |
void |
setId(String id) |
void |
write(XMLStreamWriter out) |
protected void |
writeInterceptor(XMLStreamWriter out) |
getRouter, setRouterdoAfterParsing, getBoolean, move2RootElementIfNeeded, parse, parseCharacters, parseChildren, toXml, writeIfNotNullclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRouter, setRouterparsepublic static final String ELEMENT_NAME
protected String name
protected String id
public AbstractInterceptor()
public AbstractInterceptor(Router router)
public Outcome handleRequest(Exchange exc) throws Exception
handleRequest in interface InterceptorExceptionpublic Outcome handleResponse(Exchange exc) throws Exception
handleResponse in interface InterceptorExceptionpublic String getDisplayName()
getDisplayName in interface Interceptorpublic void setDisplayName(String name)
setDisplayName in interface Interceptorprotected String getElementName()
getElementName in class AbstractXmlElementprotected void parseAttributes(XMLStreamReader token) throws Exception
parseAttributes in class AbstractXmlElementExceptionpublic void write(XMLStreamWriter out) throws XMLStreamException
write in interface XMLElementwrite in class AbstractXmlElementXMLStreamExceptionprotected void writeInterceptor(XMLStreamWriter out) throws XMLStreamException
XMLStreamExceptionpublic String getId()
getId in interface Interceptorpublic void setId(String id)
setId in interface Interceptorpublic void setFlow(Interceptor.Flow flow)
setFlow in interface Interceptorpublic Interceptor.Flow getFlow()
getFlow in interface Interceptorpublic String getShortDescription()
getShortDescription in interface Interceptorpublic String getLongDescription()
getLongDescription in interface Interceptorpublic String getHelpId()
getHelpId in interface InterceptorCopyright © 2012. All Rights Reserved.