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