net.sourceforge.xmote.server
Class XmoteServer

java.lang.Object
  extended by net.sourceforge.xmote.server.XmoteServer

public class XmoteServer
extends java.lang.Object

The XmoteServer decodes and invokes requests on instances of a service.

Author:
Jason Rush

Constructor Summary
XmoteServer()
           
 
Method Summary
 void addService(java.lang.Object service)
          Create RemoteMethod instances for all declared methods in the service object and add them to the server.
 java.lang.Object invoke(org.jdom.Element root)
          Decode and invoke the request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmoteServer

public XmoteServer()
Method Detail

addService

public void addService(java.lang.Object service)
Create RemoteMethod instances for all declared methods in the service object and add them to the server.

Parameters:
service - The service object to add.

invoke

public java.lang.Object invoke(org.jdom.Element root)
                        throws XmoteException
Decode and invoke the request.

Parameters:
root - The root Element of the request.
Returns:
The return value from the invocation of the service method.
Throws:
XmoteException - If an exception occurs while invoking the method or no matching method is found.


Copyright (C) 2007 Jason Rush. All Rights Reserved.