Package jmri.web.miniserver

MiniServer is a small web server, the smallest scaffold possible for running simple servlets.

See:
          Description

Class Summary
AbstractMiniServerPreferences  
AbstractMiniServerPreferences.AbstractMiniServerPreferencesXml  
AbstractServlet Implement some useful tools for a Servlet.
MiniServer A simple HTTP server that generates a Web page showing all of the data that it received from the Web client (usually a browser).
MiniServerAction Action to start a miniserver
MiniServerManager  
MiniServerPreferences  
MiniServerPrefsFrame  
MiniServerPrefsPanel  
MiniServletContext Minimal function ServletContext Although not the same as ServletContext, this is meant to be method-signature compatible, so that we can move to servlets later on.
MiniServletOutputStream Although not the same as ServletOutputStream, this is meant to be method-signature compatible, so that we can move to servlets later on.
MiniServletRequest Encapsulate a request.
MiniServletResponse Encapsulate a response to a request.
NetworkServer A starting point for network servers.
SocketUtil A shorthand way to create BufferedReaders and PrintWriters associated with a Socket.
ThreadedMiniServer A multithreaded variation of MiniServer.
 

Package jmri.web.miniserver Description

MiniServer is a small web server, the smallest scaffold possible for running simple servlets.

URL Mapping

The Services.properties file determines how requests (URLs) will be mapped to servlets. When the request is received, any modifiers are stripped off and then it's checked against the defined properties. If there's a match, the value is a Servlet class to be invoked. If not, the last (right-most) token is removed, and the attempt is repeated.

Servlets

Two small servlets are included:
EchoServlet
Echo the request back to the browser, so you can see the details of the request
FileServlet
Serve files back to the browser, at least for simple cases.

Since:
2.3.1


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