ChallengeScheme.HTTP_DIGEST, "Authentication Required"); guard.getSecrets().put(authLogin, authPassword.toCharArray()); component.getDefaultHost().attach(guard); guard.setNext(new EngineApplication(engine)); component.start();
/** * Attaches a target Restlet to the default host. * * @param target * The target Restlet. */ public void setDefaultTarget(Restlet target) { getDefaultHost().attach(target); }
ChallengeScheme.HTTP_DIGEST, "Authentication Required"); guard.getSecrets().put(authLogin, authPassword.toCharArray()); component.getDefaultHost().attach(guard); guard.setNext(new EngineApplication(engine)); component.start();
log("[Noelios Restlet Engine] - Attaching application: " + this.application + " to URI: " + uriPattern); component.getDefaultHost().attach(uriPattern, this.application);