|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pf.util.ExceptionIgnorer
org.pf.net.RequestServer
public abstract class RequestServer
A generic server that listens to a port and starts processing threads on the incoming requests.
| Constructor Summary | |
|---|---|
RequestServer()
Initialize the new instance with default values. |
|
RequestServer(ExceptionHandler exHandler)
Initialize the new instance with an expection handler. |
|
RequestServer(int port)
Initialize the new instance with a port number. |
|
RequestServer(int port,
ExceptionHandler exHandler)
Initialize the new instance with a port number and an expection handler. |
|
| Method Summary | |
|---|---|
void |
run()
Opens the server socket on the configured port then runs a loop to listen on this socket until done is set to true and then closes the socket. |
| Methods inherited from class org.pf.util.ExceptionIgnorer |
|---|
exceptionOccurred, getExceptionHandler, setExceptionHandler |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RequestServer()
public RequestServer(ExceptionHandler exHandler)
public RequestServer(int port)
public RequestServer(int port,
ExceptionHandler exHandler)
| Method Detail |
|---|
public void run()
run in interface java.lang.Runnable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||