Package net.sourceforge.plantuml.picoweb
Class PicoWebServer
- java.lang.Object
-
- net.sourceforge.plantuml.picoweb.PicoWebServer
-
- All Implemented Interfaces:
java.lang.Runnable
public class PicoWebServer extends java.lang.Object implements java.lang.Runnable
-
-
Constructor Summary
Constructors Constructor Description PicoWebServer(java.net.Socket c)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleRenderRequest(RenderRequest renderRequest, java.io.BufferedOutputStream out)
static void
main(java.lang.String[] args)
void
run()
static void
serverLoop(java.net.ServerSocket serverConnect)
static void
startServer(int port, java.lang.String bindAddress)
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] args) throws java.io.IOException
- Throws:
java.io.IOException
-
startServer
public static void startServer(int port, java.lang.String bindAddress) throws java.io.IOException
- Throws:
java.io.IOException
-
serverLoop
public static void serverLoop(java.net.ServerSocket serverConnect) throws java.io.IOException
- Throws:
java.io.IOException
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
-
handleRenderRequest
public void handleRenderRequest(RenderRequest renderRequest, java.io.BufferedOutputStream out) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-