", source="+source+
", par="+par);
}
String handlerName = null;
String applicationName = null;
SunRise sunRise = null;
Map map = null;
boolean initialized;
try {
final Request request = ObjectModelHelper.getRequest( objectModel );
// Are we called as an internal resource?
if ( objectModel.get("Internal-Request") != null ) {
handlerName = (String)request.getAttribute(Constants.REQUEST_ATTRIBUTE_HANDLER_NAME);
applicationName = (String)request.getAttribute(Constants.REQUEST_ATTRIBUTE_APPLICATION_NAME);
initialized = true;
} else {
handlerName = par.getParameter("handler", null);
applicationName = par.getParameter("application", null);
if (handlerName != null) request.setAttribute(Constants.REQUEST_ATTRIBUTE_HANDLER_NAME, handlerName);
if (applicationName != null) request.setAttribute(Constants.REQUEST_ATTRIBUTE_APPLICATION_NAME, applicationName);
initialized = false;
}
sunRise = (SunRise) this.manager.lookup( SunRise.ROLE );
// do authentication
if (sunRise.checkAuthentication(redirector, !initialized) == false) {
// All events are ignored
// the sitemap.xsl ensures that only the redirect is processed
} else {
if (initialized == false) {
map = sunRise.createMap();
} else {
map = new HashMap();
}
}
} finally {