Class JmriJFrameServlet

java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
jmri.web.servlet.frameimage.JmriJFrameServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

@WebServlet(name="FrameServlet", urlPatterns="/frame") public class JmriJFrameServlet extends javax.servlet.http.HttpServlet
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 frame enabled for clicking via server side image map; see the .properties file for the content
.png
Just return the image
no name
Return an HTML page with links to available images

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.

See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    clickOnEditorPane(Component c, int x, int y, JmriJFrame f)
     
    protected void
    doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
     
    protected void
    doGetOnSwing(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
     
    protected void
    doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
     
    protected Map<String,String[]>
     
    (package private) void
    sendClick(String name, Component c, int xg, int yg, Container frameContentPane)
     

    Methods inherited from class javax.servlet.http.HttpServlet

    doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service

    Methods inherited from class javax.servlet.GenericServlet

    destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait