jmri.web.xmlio
Class DefaultXmlIOServer

java.lang.Object
  extended by jmri.web.xmlio.DefaultXmlIOServer
All Implemented Interfaces:
XmlIOServer

public class DefaultXmlIOServer
extends Object
implements XmlIOServer

Default implementation for XML I/O.


This file is part of JMRI.

JMRI is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. See the "COPYING" file for a copy of this license.

JMRI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Author:
Bob Jacobsen Copyright (C) 2008, 2009, 2010
See Also:
XmlIOFactory

Constructor Summary
DefaultXmlIOServer()
           
 
Method Summary
 Element immediateRequest(Element e)
          Handle an immediate request, returning the result.
 void monitorRequest(Element e, XmlIORequestor r)
          Handle an asynchronous request The incoming Element may be modified and returned as the reply.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultXmlIOServer

public DefaultXmlIOServer()
Method Detail

immediateRequest

public Element immediateRequest(Element e)
                         throws JmriException
Description copied from interface: XmlIOServer
Handle an immediate request, returning the result.

The incoming Element may be modified and returned as the reply.

Specified by:
immediateRequest in interface XmlIOServer
Throws:
JmriException

monitorRequest

public void monitorRequest(Element e,
                           XmlIORequestor r)
                    throws JmriException
Description copied from interface: XmlIOServer
Handle an asynchronous request

The incoming Element may be modified and returned as the reply. The return to the XmlIORequestor may be immediate, before this method returns.

Specified by:
monitorRequest in interface XmlIOServer
Throws:
JmriException


Copyright © 1997 - 2011 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads