org.boris.xlloop
Class FunctionServer
java.lang.Object
org.boris.xlloop.FunctionServer
- Direct Known Subclasses:
- FunctionHandlerServer
public class FunctionServer
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
port
protected int port
handler
protected IFunctionHandler handler
socket
protected java.net.ServerSocket socket
listener
protected IFunctionServerListener listener
FunctionServer
public FunctionServer()
FunctionServer
public FunctionServer(int port)
FunctionServer
public FunctionServer(int port,
IFunctionHandler f)
getPort
public int getPort()
setFunctionHandler
public void setFunctionHandler(IFunctionHandler h)
getFunctionHandler
public IFunctionHandler getFunctionHandler()
setListener
public void setListener(IFunctionServerListener listener)
stop
public void stop()
throws java.io.IOException
- Throws:
java.io.IOException
start
public void start()
run
public void run()
throws java.io.IOException
- Throws:
java.io.IOException
handleRequest
public static void handleRequest(IFunctionHandler handler,
IRequestProtocol protocol,
java.net.Socket socket)