|
||||||||||
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 executorMethod Detail |
---|
public void start(int port) throws EndpointException
Endpoint
start
in class Endpoint
EndpointException
- on endpoint initialization errorpublic void stop() throws EndpointShutdownException
Endpoint
stop
in class Endpoint
EndpointShutdownException
- 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 |