this.ssoSessionProvider = ssoSessionProvider;
}
public Resource getResource(String host, String url) {
Path p = Path.path(url);
String firstComp = p.getFirst();
Object oUserTag = null;
if( firstComp != null ) {
oUserTag = ssoSessionProvider.getUserTag(firstComp);
}
if (oUserTag == null) {
log.trace("not a SSO path");
return resourceFactory.getResource(host, url);
} else {
log.trace("is an SSO path");
Path strippedPath = p.getStripFirst();
HttpManager.request().getAttributes().put("_sso_user", oUserTag);
return resourceFactory.getResource(host, strippedPath.toString());
}
}