Package org.serviceconnector.net.res
Class Responder
java.lang.Object
org.serviceconnector.net.res.Responder
- All Implemented Interfaces:
IResponder
The Class Responder. Abstracts responder functionality from a application view. It is not the technical representation of a responder connection.
- Author:
- JTraber
-
Constructor Summary
ConstructorsConstructorDescriptionResponder(ListenerConfiguration listenerConfig) Instantiates a new responder. -
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 listenerConfig) Sets the responder configuration.voidStart listen asynchronous.voidStart listener synchronous.voidStop listening.
-
Constructor Details
-
Responder
Instantiates a new responder.- Parameters:
listenerConfig- the listener config
-
-
Method Details
-
create
Creates the responder.- Specified by:
createin interfaceIResponder- Throws:
Exception- the exception
-
startListenAsync
Start listen asynchronous. Starts responder in a separate thread.- Specified by:
startListenAsyncin interfaceIResponder- Throws:
Exception- the exception
-
startListenSync
Start listener synchronous. Starts responder in current thread. Does not give back control.- Specified by:
startListenSyncin interfaceIResponder- Throws:
Exception- the exception
-
stopListening
public void stopListening()Stop listening.- Specified by:
stopListeningin interfaceIResponder
-
destroy
public void destroy()Destroys responder.- Specified by:
destroyin interfaceIResponder
-
getListenerConfig
Gets the responder configuration.- Specified by:
getListenerConfigin interfaceIResponder- Returns:
- the responder configuration
-
setListenerConfig
Sets the responder configuration.- Specified by:
setListenerConfigin interfaceIResponder- Parameters:
listenerConfig- the new responder configuration
-
getEndpoints
Gets the endpoint.- Specified by:
getEndpointsin interfaceIResponder- Returns:
- the endpoint
-
dump
Dump the responder into the xml writer.- Specified by:
dumpin interfaceIResponder- Parameters:
writer- the writer- Throws:
Exception- the exception
-