comparison src/main/java/de/mpiwg/itgroup/annotations/restlet/annotations_ui/AnnotationsUiRestlet.java @ 93:3d1a00418b42 admin_ui_rel_links

starting web admin ui with relative links. doesn't fully work yet.
author casties
date Mon, 09 Feb 2015 12:55:51 +0100
parents 25eb2e1df106
children
comparison
equal deleted inserted replaced
92:aadf8760216d 93:3d1a00418b42
1 /**
2 *
3 */
4 package de.mpiwg.itgroup.annotations.restlet.annotations_ui; 1 package de.mpiwg.itgroup.annotations.restlet.annotations_ui;
5 2
6 /* 3 /*
7 * #%L 4 * #%L
8 * AnnotationManager 5 * AnnotationManager
39 * @author casties 36 * @author casties
40 * 37 *
41 */ 38 */
42 public class AnnotationsUiRestlet extends BaseRestlet { 39 public class AnnotationsUiRestlet extends BaseRestlet {
43 40
44 public final String version = "AnnotationManagerN4J/AnnotationsUI 0.3"; 41 public final String version = "AnnotationManagerN4J/AnnotationsUI 0.4";
45 42
46 public static Logger logger = Logger.getLogger("de.mpiwg.itgroup.annotations.restlet.annotations_ui.AnnotationsUiRestlet"); 43 public static Logger logger = Logger.getLogger("de.mpiwg.itgroup.annotations.restlet.annotations_ui.AnnotationsUiRestlet");
47 44
48 /* 45 /*
49 * (non-Javadoc) 46 * (non-Javadoc)
81 verifier.getLocalSecrets().put(user, pw.toCharArray()); 78 verifier.getLocalSecrets().put(user, pw.toCharArray());
82 } else { 79 } else {
83 logger.severe("Admin user and password missing in serverconfig!"); 80 logger.severe("Admin user and password missing in serverconfig!");
84 } 81 }
85 // Create a Guard 82 // Create a Guard
86 ChallengeAuthenticator guard = new ChallengeAuthenticator(getContext(), ChallengeScheme.HTTP_BASIC, "Tutorial"); 83 ChallengeAuthenticator guard = new ChallengeAuthenticator(getContext(), ChallengeScheme.HTTP_BASIC, "Annotation Server");
87 guard.setVerifier(verifier); 84 guard.setVerifier(verifier);
88 // put everything through guard 85 // put everything through guard
89 guard.setNext(router); 86 guard.setNext(router);
90 return guard; 87 return guard;
91 } 88 }