Changeset 91:cf44d9e1a4a7 in AnnotationManagerN4J for src/main/java/de/mpiwg/itgroup/annotations/restlet/AnnotatorSearch.java
- Timestamp:
- Feb 8, 2015, 5:09:00 PM (9 years ago)
- Branch:
- default
- Children:
- 92:aadf8760216d, 94:fcb6fe10e08c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/de/mpiwg/itgroup/annotations/restlet/AnnotatorSearch.java
r89 r91 1 /**2 * Implements the "search" uri of the Annotator API.3 */4 1 package de.mpiwg.itgroup.annotations.restlet; 5 2 … … 52 49 public class AnnotatorSearch extends AnnotatorResourceImpl { 53 50 54 protected String getAllowedMethodsForHeader() {55 return "OPTIONS,GET";56 }57 58 51 /** 59 52 * result for JSON content-type. optional search parameters: uri, user, limit, … … 66 59 public Representation doGetJSON(Representation entity) { 67 60 logger.fine("AnnotatorSearch doGetJSON!"); 68 setCorsHeaders();69 61 // do authentication 70 62 Person authUser = getUserFromAuthToken(entity);
Note: See TracChangeset
for help on using the changeset viewer.