java.lang.Object
org.miamm.soapmmil.MIAMMService
org.miamm.soapmmil.test.echo.EchoMIAMMService
- All Implemented Interfaces:
- org.miamm.soapmmil.SoapMMILConstants
- public class EchoMIAMMService
- extends org.miamm.soapmmil.MIAMMService
An example MIAMMService that listens for toy events and writes what
it hears to the console
- Version:
- $Revision: 1.6 $
$Date: 2003/04/22 23:01:16 $
|
Nested Class Summary |
(package private) class |
EchoMIAMMService.EchoContentHandler
A ContentHandler that just prints things to the OutputStream,
adding a few bits of information to the output just for fun |
| Nested classes inherited from class org.miamm.soapmmil.MIAMMService |
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_logger
static org.apache.log4j.Logger _logger
_saxFactory
static javax.xml.parsers.SAXParserFactory _saxFactory
_saxParser
static javax.xml.parsers.SAXParser _saxParser
EchoMIAMMService
public EchoMIAMMService()
throws org.miamm.soapmmil.MIAMMException
start
public void start()
throws org.miamm.soapmmil.MIAMMException
- Description copied from class:
org.miamm.soapmmil.MIAMMService
- Initialise the service. This is called only once in the life-cycle
of the service. This would also be the right time to register the
types of messages we are interested in receiving. This does not
guarantee that all messages of these types will come to the
service, but that the only messages received by the service will be
of these types.
restart
public void restart()
throws org.miamm.soapmmil.MIAMMException
- Description copied from class:
org.miamm.soapmmil.MIAMMService
- Reinitialise the service. I don't see why you wouldn't just call
stop and then call start again, but who knows.
FIXME: decide whether or not to keep this function
stop
public void stop()
throws org.miamm.soapmmil.MIAMMException
- Description copied from class:
org.miamm.soapmmil.MIAMMService
- Stops the service and does any cleanup. This would be a good
time to save stuff to disk, for example
recogniseEvent
public void recogniseEvent(org.miamm.soapmmil.SoapmmilMessage message)
throws org.miamm.soapmmil.MIAMMException
- Description copied from class:
org.miamm.soapmmil.MIAMMService
- Do the main work of this service. This function is only called
when the SoapMMIL detects an incoming message of a type that we
explicitly allow.