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, setRouter
doAfterParsing, getBoolean, move2RootElementIfNeeded, parse, parseCharacters, parseChildren, toXml, writeIfNotNull
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRouter, setRouter
parse
public 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 Interceptor
Exception
public Outcome handleResponse(Exchange exc) throws Exception
handleResponse
in interface Interceptor
Exception
public String getDisplayName()
getDisplayName
in interface Interceptor
public void setDisplayName(String name)
setDisplayName
in interface Interceptor
protected String getElementName()
getElementName
in class AbstractXmlElement
protected void parseAttributes(XMLStreamReader token) throws Exception
parseAttributes
in class AbstractXmlElement
Exception
public void write(XMLStreamWriter out) throws XMLStreamException
write
in interface XMLElement
write
in class AbstractXmlElement
XMLStreamException
protected void writeInterceptor(XMLStreamWriter out) throws XMLStreamException
XMLStreamException
public String getId()
getId
in interface Interceptor
public void setId(String id)
setId
in interface Interceptor
public void setFlow(Interceptor.Flow flow)
setFlow
in interface Interceptor
public Interceptor.Flow getFlow()
getFlow
in interface Interceptor
public String getShortDescription()
getShortDescription
in interface Interceptor
public String getLongDescription()
getLongDescription
in interface Interceptor
public String getHelpId()
getHelpId
in interface Interceptor
Copyright © 2012. All Rights Reserved.