[Asterisk-java-cvs] CVS: asterisk-java/src/test/net/sf/asterisk/fastagi ResourceBundleMappingStrateg
Brought to you by:
srt
From: Stefan R. <sr...@us...> - 2005-09-27 21:07:42
|
Update of /cvsroot/asterisk-java/asterisk-java/src/test/net/sf/asterisk/fastagi In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22035/src/test/net/sf/asterisk/fastagi Modified Files: ResourceBundleMappingStrategyTest.java Log Message: Added getLocalAddress(), getLocalPort(), getRemoteAddress() and getRemotePort() to AGIRequest (AJ-14) Index: ResourceBundleMappingStrategyTest.java =================================================================== RCS file: /cvsroot/asterisk-java/asterisk-java/src/test/net/sf/asterisk/fastagi/ResourceBundleMappingStrategyTest.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -p -r1.5 -r1.6 --- ResourceBundleMappingStrategyTest.java 15 Apr 2005 04:47:02 -0000 1.5 +++ ResourceBundleMappingStrategyTest.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; import junit.framework.TestCase; @@ -62,6 +63,10 @@ public class ResourceBundleMappingStrate public class SimpleAGIRequest implements AGIRequest { + private InetAddress localAddress; + private int localPort; + private InetAddress remoteAddress; + private int remotePort; public Map getRequest() { @@ -156,6 +161,46 @@ public class ResourceBundleMappingStrate public Map getParameterMap() { throw new UnsupportedOperationException(); - } + } + + public InetAddress getLocalAddress() + { + return localAddress; + } + + public void setLocalAddress(InetAddress localAddress) + { + this.localAddress = localAddress; + } + + public int getLocalPort() + { + return localPort; + } + + public void setLocalPort(int localPort) + { + this.localPort = localPort; + } + + public InetAddress getRemoteAddress() + { + return remoteAddress; + } + + public void setRemoteAddress(InetAddress remoteAddress) + { + this.remoteAddress = remoteAddress; + } + + public int getRemotePort() + { + return remotePort; + } + + public void setRemotePort(int remotePort) + { + this.remotePort = remotePort; + } } } |