Package org.serviceconnector.net.res
Interface IEndpoint
- All Known Implementing Classes:
EndpointAdapter,NettyHttpEndpoint,NettyTcpEndpoint,NettyTcpProxyEndpoint,NettyWebEndpoint
public interface IEndpoint
The Interface IEndpoint.
- Author:
- JTraber
-
Method Summary
Modifier and TypeMethodDescriptionvoidcreate()Creates an endpoint.voiddestroy()Destroys endpoint.voiddump(XMLDumpWriter writer) Dump the endpoint into the xml writer.Gets the responder.voidSets the host.voidsetPort(int port) Sets the port.voidsetResponder(IResponder resp) Sets the responder.voidStart listen synchronous.voidStarts listen asynchronous.voidStop listening.
-
Method Details
-
setHost
Sets the host.- Parameters:
host- the host
-
setPort
void setPort(int port) Sets the port.- Parameters:
port- the port
-
destroy
void destroy()Destroys endpoint. -
create
void create()Creates an endpoint. -
startsListenAsync
Starts listen asynchronous. Starts listener in a separate thread.- Throws:
Exception- the exception
-
startListenSync
Start listen synchronous. Starts listener in current thread. Does not give back control.- Throws:
Exception- the exception
-
stopListening
void stopListening()Stop listening. -
getResponder
IResponder getResponder()Gets the responder.- Returns:
- the responder
-
setResponder
Sets the responder.- Parameters:
resp- the new responder
-
dump
Dump the endpoint into the xml writer.- Parameters:
writer- the writer- Throws:
Exception- the exception
-