|
Asterisk-Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AgiServer
Listens for incoming AGI connections, reads the inital data and builds an
AgiRequest
that is then handed over to the appropriate
AgiScript
for processing.
AgiServerThread
Method Summary | |
---|---|
void |
shutdown()
Stops this AgiServer. |
void |
startup()
Starts this AgiServer. |
Method Detail |
---|
void startup() throws java.io.IOException, java.lang.IllegalStateException
After calling startup() this AgiServer is ready to receive requests from Asterisk servers and process them.
Note that this method will not return until the AgiServer has been shut down.
If you want to run the AgiServer in the background use wrap it with an
AgiServerThread
.
java.io.IOException
- if the server socket cannot be bound.
java.lang.IllegalStateException
- if this AgiServer is already running.void shutdown() throws java.lang.IllegalStateException
The server socket is closed, new connections are refused and resources
are freed. Any running AgiScript
s are finish before shutdown
completes.
java.lang.IllegalStateException
- if this AgiServer is already shut down or
has not yet been started.
|
Asterisk-Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |