Update of /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/fastagi/impl
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26389/src/java/net/sf/asterisk/fastagi/impl
Modified Files:
AGIRequestImpl.java
Log Message:
fixed synchronize
Index: AGIRequestImpl.java
===================================================================
RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/fastagi/impl/AGIRequestImpl.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -p -r1.5 -r1.6
--- AGIRequestImpl.java 23 Jul 2005 08:27:27 -0000 1.5
+++ AGIRequestImpl.java 23 Jul 2005 10:13:24 -0000 1.6
@@ -64,24 +64,21 @@ public class AGIRequestImpl implements S
private String parameters;
private String script;
-
private boolean callerIdCreated;
/**
* Creates a new AGIRequestImpl.
+ *
+ * @param environment the first lines as received from Asterisk containing
+ * the environment.
*/
- public AGIRequestImpl()
- {
- throw new IllegalArgumentException("Environment must not be null.");
- }
-
- public AGIRequestImpl(final Collection lines)
+ public AGIRequestImpl(final Collection environment)
{
- if (lines == null)
+ if (environment == null)
{
throw new IllegalArgumentException("Environment must not be null.");
}
- request = buildMap(lines);
+ request = buildMap(environment);
}
/**
|