net.sf.asterisk.fastagi
Interface AGIServer

All Known Implementing Classes:
DefaultAGIServer

public interface AGIServer

Listens for incoming AGI connections, reads the inital data and builds an AGIRequest using an AGIRequestBuilder.
The AGIRequest is then handed over to the appropriate AGIScript for processing.

Version:
$Id: AGIServer.java,v 1.3 2005/03/08 16:48:34 srt Exp $
Author:
srt

Method Summary
 void shutdown()
          Shuts this AGIServer down.
The server socket is closed and all resources are freed.
 void startup()
          Starts this AGIServer.
After calling startup() this AGIServer is ready to receive requests from Asterisk servers and process them.
 

Method Detail

startup

void startup()
             throws java.io.IOException,
                    java.lang.IllegalStateException
Starts this AGIServer.
After calling startup() this AGIServer is ready to receive requests from Asterisk servers and process them.

Throws:
java.io.IOException - if the server socket cannot be bound.
java.lang.IllegalStateException - if this AGIServer is already running.

shutdown

void shutdown()
              throws java.io.IOException,
                     java.lang.IllegalStateException
Shuts this AGIServer down.
The server socket is closed and all resources are freed.

Throws:
java.io.IOException - if the connection cannot be shut down.
java.lang.IllegalStateException - if this AGIServer is already shut down or has not yet been started.


Copyright © 2004-2005 Stefan Reuter. All Rights Reserved.