Class JmriJFrameServlet

  • All Implemented Interfaces:, javax.servlet.Servlet, javax.servlet.ServletConfig

    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.

    Returns a HTML file that displays the frame enabled for clicking via server side image map; see the .properties file for the content
    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, © 2001 Marty Hall and Larry Brown; may be freely used or adapted.

    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clickOnEditorPane​(java.awt.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 java.util.Map<java.lang.String,​java.lang.String[]> populateParameterMap​(java.util.Map<java.lang.String,​java.lang.String[]> map)  
      (package private) void sendClick​(java.lang.String name, java.awt.Component c, int xg, int yg, java.awt.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
    • Method Detail

      • sendClick

        void sendClick​(java.lang.String name,
                       java.awt.Component c,
                       int xg,
                       int yg,
                       java.awt.Container FrameContentPane)
      • doGet

        protected void doGet​(javax.servlet.http.HttpServletRequest request,
                             javax.servlet.http.HttpServletResponse response)
                      throws javax.servlet.ServletException,
        doGet in class javax.servlet.http.HttpServlet
      • doGetOnSwing

        protected void doGetOnSwing​(javax.servlet.http.HttpServletRequest request,
                                    javax.servlet.http.HttpServletResponse response)
                             throws javax.servlet.ServletException,
      • doPost

        protected void doPost​(javax.servlet.http.HttpServletRequest request,
                              javax.servlet.http.HttpServletResponse response)
                       throws javax.servlet.ServletException,
        doPost in class javax.servlet.http.HttpServlet
      • populateParameterMap

        protected java.util.Map<java.lang.String,​java.lang.String[]> populateParameterMap​(@Nonnull
                                                                                                java.util.Map<java.lang.String,​java.lang.String[]> map)