org.portico.lrc
Class LRC.LRCDefaultRequestHandler
java.lang.Object
com.lbf.commons.messaging.AbstractMessageHandler
org.portico.lrc.LRC.LRCDefaultRequestHandler
- All Implemented Interfaces:
- com.lbf.commons.messaging.IMessageHandler
- Enclosing class:
- LRC
private class LRC.LRCDefaultRequestHandler
- extends com.lbf.commons.messaging.AbstractMessageHandler
- implements com.lbf.commons.messaging.IMessageHandler
This will act as the default handler for the lrc-request
MessageSink
. Where the default handler provided by the sink normally just ignores
messages it doesn't have a general handler for, this handler will route the request to the
connection (and thus, on to the RTI). There may be situations in the LRC where no
preprocessing of a message is required, making the process of writing a handler just to
handball the message onward both annoying and redundant.
Fields inherited from class com.lbf.commons.messaging.AbstractMessageHandler |
augmentable, name |
Method Summary |
void |
processMessage(com.lbf.commons.messaging.MessageContext context)
Call connection.sendMessage(context). |
Methods inherited from class com.lbf.commons.messaging.AbstractMessageHandler |
getName, initialize, isAugmentable, setAugmentable, setName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.lbf.commons.messaging.IMessageHandler |
getName, initialize, isAugmentable, setAugmentable, setName |
LRC.LRCDefaultRequestHandler
private LRC.LRCDefaultRequestHandler()
processMessage
public void processMessage(com.lbf.commons.messaging.MessageContext context)
throws Exception
- Call connection.sendMessage(context). If the connection is null, an RTIinternalError
will be thrown.
- Specified by:
processMessage
in interface com.lbf.commons.messaging.IMessageHandler
- Specified by:
processMessage
in class com.lbf.commons.messaging.AbstractMessageHandler
- Throws:
Exception