public class TestXmlHandler extends XmlHandler<TestXmlHandler,Connection,TestXmlEvent,SourceType>
XmlHandler
for testing purposes.ConnectionHandler.ClosingType
dummyFuture
Constructor and Description |
---|
TestXmlHandler(String name,
int minimumSize,
int maximumSize,
SourceLocal<TestXmlEvent> receiver)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected TestXmlEvent |
createEos()
Creates an end-of-stream
XmlEvent . |
protected TestXmlEvent |
createError()
Creates an error
XmlEvent . |
void |
onLocal(TestXmlEvent evt)
Delivers an
Event to the local manifestation. |
protected TestXmlEvent |
parse(Element rootElement)
|
getHandler, getType, newFilter, onBind, onClose, onClosing, onReceive, onRemote, setHandler
close, getConnection, onBind, onClosing, onOob, onOob, onReceive, send, setConnection, setFilterFactory, toString
public TestXmlHandler(String name, int minimumSize, int maximumSize, SourceLocal<TestXmlEvent> receiver)
receiver
- the local receiver to which events will be forwarded.public void onLocal(TestXmlEvent evt)
SourceLocal
Event
to the local manifestation.protected TestXmlEvent parse(Element rootElement)
XmlHandler
parse
in class XmlHandler<TestXmlHandler,Connection,TestXmlEvent,SourceType>
rootElement
- the root DOM Element
.XmlEvent
.protected TestXmlEvent createEos()
XmlHandler
XmlEvent
.createEos
in class XmlHandler<TestXmlHandler,Connection,TestXmlEvent,SourceType>
XmlEvent
.protected TestXmlEvent createError()
XmlHandler
XmlEvent
.createError
in class XmlHandler<TestXmlHandler,Connection,TestXmlEvent,SourceType>
XmlEvent
.