Mercurial > hg > AnnotationManager
comparison src/de/mpiwg/itgroup/annotationManager/restlet/AnnotatorSearch.java @ 15:6c7c4140630d
on the way to updating annotations.
author | casties |
---|---|
date | Wed, 21 Mar 2012 18:12:45 +0100 |
parents | 9393c9c9b916 |
children | 667d98fd28bd |
comparison
equal
deleted
inserted
replaced
14:0f64de5fff5a | 15:6c7c4140630d |
---|---|
45 * @param entity | 45 * @param entity |
46 * @return | 46 * @return |
47 */ | 47 */ |
48 @Get("json") | 48 @Get("json") |
49 public Representation doGetJSON(Representation entity) { | 49 public Representation doGetJSON(Representation entity) { |
50 | 50 logger.debug("AnnotatorSearch doGetJSON!"); |
51 doOptions(entity); | 51 setCorsHeaders(); |
52 //TODO: what to do with authentication? | 52 //TODO: what to do with authentication? |
53 boolean authenticated = isAuthenticated(entity); | 53 boolean authenticated = isAuthenticated(entity); |
54 logger.debug("request authenticated="+authenticated); | 54 logger.debug("request authenticated="+authenticated); |
55 | 55 |
56 Form form = getRequest().getResourceRef().getQueryAsForm(); | 56 Form form = getRequest().getResourceRef().getQueryAsForm(); |
108 * @param entity | 108 * @param entity |
109 * @return | 109 * @return |
110 */ | 110 */ |
111 @Get("html") | 111 @Get("html") |
112 public Representation doGetHTML(Representation entity) { | 112 public Representation doGetHTML(Representation entity) { |
113 | 113 logger.debug("AnnotatorSearch doGetHTML!"); |
114 doOptions(entity); | 114 doOptions(entity); |
115 Form form = getRequest().getResourceRef().getQueryAsForm(); | 115 Form form = getRequest().getResourceRef().getQueryAsForm(); |
116 String uri = form.getFirstValue("uri"); | 116 String uri = form.getFirstValue("uri"); |
117 String user = form.getFirstValue("user"); | 117 String user = form.getFirstValue("user"); |
118 | 118 |