jmri.web.servlet.frameimage
Class JmriJFrameServlet
java.lang.Object
jmri.web.servlet.frameimage.JmriJFrameServlet
- All Implemented Interfaces:
- javax.servlet.Servlet
public class JmriJFrameServlet
- extends Object
- implements javax.servlet.Servlet
A simple servlet that returns a JMRI window as
a PNG image or enclosing HTML file.
The suffix of the request determines which.
- .html
- Returns a HTML file that displays the panel enabled for
clicking via server side image map; see the .properties file for the content
- .png
- Just return the image
The associated .properties file contains the HTML fragments used to
form replies.
Parts taken from Core Web Programming from
Prentice Hall and Sun Microsystems Press,
http://www.corewebprogramming.com/.
© 2001 Marty Hall and Larry Brown;
may be freely used or adapted.
- Author:
- Modifications by Bob Jacobsen Copyright 2005, 2006, 2008
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
maxRequestLines
protected int maxRequestLines
serverName
protected String serverName
JmriJFrameServlet
public JmriJFrameServlet()
destroy
public void destroy()
- Specified by:
destroy in interface javax.servlet.Servlet
init
public void init(javax.servlet.ServletConfig config)
- Specified by:
init in interface javax.servlet.Servlet
getServletInfo
public String getServletInfo()
- Specified by:
getServletInfo in interface javax.servlet.Servlet
getServletConfig
public javax.servlet.ServletConfig getServletConfig()
- Specified by:
getServletConfig in interface javax.servlet.Servlet
service
public void service(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res)
throws IOException
- Specified by:
service in interface javax.servlet.Servlet
- Throws:
IOException
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: