URLResolver.DEFAULT.resolve(resource, context);
return;
}
}
String type = path.substring(0, idx).trim();
Resolver resolver = getResolver(type);
if(resolver==null)
FileResolver.DEFAULT.resolve(resource, context);
else
{
path = path.substring(idx+1).trim();
if(path.length()==0)
throw new IOException("invalid resource: " + path);
resource.setPath(path);
resolver.resolve(resource, context);
}
}