Package org.serviceconnector.net.res
Interface IResponder
- All Known Implementing Classes:
Responder
public interface IResponder
The Interface IRequester.
- Author:
- JTraber
-
Method Summary
Modifier and TypeMethodDescriptionvoidcreate()Creates the responder.voiddestroy()Destroys responder.voiddump(XMLDumpWriter writer) Dump the responder into the xml writer.Gets the endpoint.Gets the responder configuration.voidsetListenerConfig(ListenerConfiguration respConfig) Sets the responder configuration.voidStart listen asynchronous.voidStart listener synchronous.voidStop listening.
-
Method Details
-
create
Creates the responder.- Throws:
Exception- the exception
-
startListenAsync
Start listen asynchronous. Starts responder in a separate thread.- Throws:
Exception- the exception
-
startListenSync
Start listener synchronous. Starts responder in current thread. Does not give back control.- Throws:
Exception- the exception
-
stopListening
void stopListening()Stop listening. -
destroy
void destroy()Destroys responder. -
setListenerConfig
Sets the responder configuration.- Parameters:
respConfig- the new responder configuration
-
getListenerConfig
ListenerConfiguration getListenerConfig()Gets the responder configuration.- Returns:
- the responder configuration
-
getEndpoints
Gets the endpoint.- Returns:
- the endpoint
-
dump
Dump the responder into the xml writer.- Parameters:
writer- the writer- Throws:
Exception- the exception
-