|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.larkc.core.endpoint.Endpoint
eu.larkc.core.endpoint.test.TestEndpointMain
public class TestEndpointMain
This class represents a very simple endpoint for testing.
| Constructor Summary | |
|---|---|
TestEndpointMain(Executor ex)
Custom constructor |
|
| Method Summary | |
|---|---|
void |
handle(com.sun.net.httpserver.HttpExchange arg0)
|
static void |
main(java.lang.String[] args)
Main method for manual testing. |
void |
start(int port)
Starts the endpoint. |
void |
stop()
Stops the endpoint. |
| Methods inherited from class eu.larkc.core.endpoint.Endpoint |
|---|
getExecutor, getPipeId, getPort, getURI, isInitialized, setPipeId, setPort |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TestEndpointMain(Executor ex)
ex - the executor| Method Detail |
|---|
public void start(int port)
throws EndpointException
Endpoint
start in class EndpointEndpointException - on endpoint initialization error
public void stop()
throws EndpointShutdownException
Endpoint
stop in class EndpointEndpointShutdownException - on endpoint shutdown error (if the server could not be
stopped, etc.)
public static void main(java.lang.String[] args)
throws java.lang.Exception
args - unused
java.lang.Exception
public void handle(com.sun.net.httpserver.HttpExchange arg0)
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||