Update of /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/fastagi
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22035/src/java/net/sf/asterisk/fastagi
Modified Files:
AGIRequest.java
Log Message:
Added getLocalAddress(), getLocalPort(), getRemoteAddress() and getRemotePort() to AGIRequest (AJ-14)
Index: AGIRequest.java
===================================================================
RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/fastagi/AGIRequest.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -p -r1.5 -r1.6
--- AGIRequest.java 15 Apr 2005 04:47:02 -0000 1.5
+++ AGIRequest.java 27 Sep 2005 21:07:26 -0000 1.6
@@ -16,6 +16,7 @@
*/
package net.sf.asterisk.fastagi;
+import java.net.InetAddress;
import java.util.Map;
/**
@@ -190,4 +191,40 @@ public interface AGIRequest
* String. The values in the parameter map are of type String array.
*/
Map getParameterMap();
+
+ /**
+ * Returns the local address this channel, that is the IP address of the AGI
+ * server.
+ *
+ * @return the local address this channel.
+ * @since 0.2
+ */
+ InetAddress getLocalAddress();
+
+ /**
+ * Returns the local port of this channel, that is the port the AGI server
+ * is listening on.
+ *
+ * @return the local port of this socket channel.
+ * @since 0.2
+ */
+ int getLocalPort();
+
+ /**
+ * Returns the remote address of this channel, that is the IP address of the
+ * Asterisk server.
+ *
+ * @return the remote address of this channel.
+ * @since 0.2
+ */
+ InetAddress getRemoteAddress();
+
+ /**
+ * Returns the remote port of this channel, that is the client port the
+ * Asterisk server is using for the AGI connection.
+ *
+ * @return the remote port of this channel.
+ * @since 0.2
+ */
+ int getRemotePort();
}
|