String location = null;
String location_param = null;
Iterator iter = config.getInitParams().getInitParam().iterator();
while (iter.hasNext() == true)
{
InitParam parm = (InitParam) iter.next();
if (parm.getParamName().equals("stateful") == true)
{
String v = parm.getParamValue();
if ((v.equals("true") == true) || (v.equals("yes") == true))
{
stateful = true;
if (isDebugEnabled() == true)
{
debug("The ProxyJiplet is stateful.");
}
}
else if ((v.equals("false") == true)
|| (v.equals("no") == true))
{
stateful = false;
}
else
{
throw new JipletException(
"The value for the init-param \"stateful\" is invalid");
}
}
else if (parm.getParamName().equals("addRecordRoute") == true)
{
String v = parm.getParamValue();
if ((v.equals("true") == true) || (v.equals("yes") == true))
{
addRecordRoute = true;
if (isDebugEnabled() == true)
{
debug("The ProxyJiplet will add record route parameter.");
}
}
else if ((v.equals("false") == true)
|| (v.equals("no") == true))
{
addRecordRoute = false;
}
else
{
throw new JipletException(
"The value for the init-param \"addRecordRoute\" is invalid");
}
}
else if (parm.getParamName().equals("presenceServer") == true)
{
String v = parm.getParamValue();
if ((v.equals("true") == true) || (v.equals("yes") == true))
{
presenceServer = true;
if (isDebugEnabled() == true)
{
debug("The ProxyJiplet presenceServer setting = true.");
}
}
else if ((v.equals("false") == true)
|| (v.equals("no") == true))
{
presenceServer = false;
}
else
{
throw new JipletException(
"The value for the init-param \"presenceServer\" is invalid");
}
}
else if (parm.getParamName().equals("locationRegister") == true)
{
location = parm.getParamValue();
}
else if (parm.getParamName().equals("locationRegisterParam") == true)
{
location_param = parm.getParamValue();
}
else if (parm.getParamName().equals("forwardLocation") == true)
{
forward = parm.getParamValue();
}
else
{
warn ("Unknown init-param " + parm.getParamName());
}
}
if (location == null)
{