jmri.web.servlet.xmlio
Class XMLIOServlet

java.lang.Object
  extended by jmri.web.miniserver.AbstractServlet
      extended by jmri.web.servlet.xmlio.XMLIOServlet
All Implemented Interfaces:
javax.servlet.Servlet, javax.servlet.ServletConfig, XmlIORequestor

public class XMLIOServlet
extends AbstractServlet
implements XmlIORequestor

A simple servlet that uses the jmri.web.xmlio package to do XML I/O to and from JMRI using AJAX. See the examples in the web directory.

Author:
Modifications by Bob Jacobsen Copyright 2005, 2006, 2008

Field Summary
 
Fields inherited from class jmri.web.miniserver.AbstractServlet
maxRequestLines
 
Constructor Summary
XMLIOServlet()
           
 
Method Summary
 String getServletInfo()
           
 void monitorReply(Element e)
          Call back with the result of a XmlIOServer.monitorRequest(Element)
protected  void sendReply(Document doc)
           
 void service(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res)
           
 
Methods inherited from class jmri.web.miniserver.AbstractServlet
destroy, getInitParameter, getInitParameterNames, getInputLines, getRequest, getServletConfig, getServletContext, getServletName, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLIOServlet

public XMLIOServlet()
Method Detail

getServletInfo

public String getServletInfo()
Specified by:
getServletInfo in interface javax.servlet.Servlet
Overrides:
getServletInfo in class AbstractServlet

service

public void service(javax.servlet.ServletRequest req,
                    javax.servlet.ServletResponse res)
             throws IOException
Specified by:
service in interface javax.servlet.Servlet
Specified by:
service in class AbstractServlet
Throws:
IOException

monitorReply

public void monitorReply(Element e)
Description copied from interface: XmlIORequestor
Call back with the result of a XmlIOServer.monitorRequest(Element)

Specified by:
monitorReply in interface XmlIORequestor

sendReply

protected void sendReply(Document doc)


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