agave-common/common-legacy-api/src/main/java/org/iplantc/service/common/restlet/AgaveApplication.java
/** 
     * Creates a root Restlet that will receive all incoming calls. 
     */
Creates a root Restlet that will receive all incoming calls.
Creates a root Restlet that will receive all incoming calls .
@Override  
    public synchronized Restlet createRoot() 
    {
    	if ("none".equals(Settings.AUTH_SOURCE))
		{
			guardFactory = new NullGuardFactory();
		}
		else if ("ldap".equals(Settings.AUTH_SOURCE))
		{
			guardFactory = new LdapGuardFactory();
		}
		else if ("ldap+tacc".equals(Settings.AUTH_SOURCE))
		{
			guardFactory = new MyProxyGuardFactory();
		} 
		else if ("wso2".equals(Settings.AUTH_SOURCE)) 
		{
			guardFactory = new JWTGuardFactory();
		}
    	Router router = new Router(getContext());
    	secureEndpoint(router, "/runtimes", RuntimeConfigurationResource.class);
        secureEndpoint(router, "/runtimes/environment", RuntimeConfigurationResource.class);
        secureEndpoint(router, "/runtimes/configuration", RuntimeConfigurationResource.class);
        secureEndpoint(router, "/runtimes/container", RuntimeConfigurationResource.class);
        mapServiceEndpoints(router);
        return router;
    }
@ Override public synchronized Restlet createRoot ( ) { if ( "none" . equals ( Settings . AUTH_SOURCE ) ) { guardFactory = new NullGuardFactory ( ) ; } else if ( "ldap" . equals ( Settings . AUTH_SOURCE ) ) { guardFactory = new LdapGuardFactory ( ) ; } else if ( "ldap+tacc" . equals ( Settings . AUTH_SOURCE ) ) { guardFactory = new MyProxyGuardFactory ( ) ; } else if ( "wso2" . equals ( Settings . AUTH_SOURCE ) ) { guardFactory = new JWTGuardFactory ( ) ; } Router router = new Router ( getContext ( ) ) ; secureEndpoint ( router , "/runtimes" , RuntimeConfigurationResource . class ) ; secureEndpoint ( router , "/runtimes/environment" , RuntimeConfigurationResource . class ) ; secureEndpoint ( router , "/runtimes/configuration" , RuntimeConfigurationResource . class ) ; secureEndpoint ( router , "/runtimes/container" , RuntimeConfigurationResource . class ) ; mapServiceEndpoints ( router ) ; return router ; }
Creates a root Restlet that will receive all incoming calls.
Creates a root Restlet that will receive all incoming calls .
// Create a router Restlet that routes each call to a   // new instance of HelloWorldResource.  