if ((sQuery == null) || (sQuery.length() == 0))
{
return null;
}
URIData oRetval = new URIData();
// Gather the resolve data
if ((sPath != null) && (sPath.length() > 1) &&
(sPath.charAt(0) == '/'))
{
// Trim the slash
sPath = sPath.substring(1);
oRetval.setResolveData(sPath);
}
else
{
return null;
}
// Determine the type of real query we have
String sLowQuery = sQuery.toLowerCase();
if (sLowQuery.startsWith("proxy=true"))
{
oRetval.setProxied(true);
}
else if (sLowQuery.startsWith("ns="))
{
oRetval.setNS(sQuery.substring(3));
}
else if (sLowQuery.startsWith("id="))
{
oRetval.setID(sQuery.substring(3));
}
else
{
// we have no idea what was being asked at
// this point