Ignore:
Timestamp:
Feb 8, 2015, 5:09:00 PM (9 years ago)
Author:
casties
Branch:
default
Children:
92:aadf8760216d, 94:fcb6fe10e08c
Message:

let CORS be handled by Restlet 2.3 CorsFilter?.

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  */
    41package de.mpiwg.itgroup.annotations.restlet;
    52
     
    5249public class AnnotatorSearch extends AnnotatorResourceImpl {
    5350
    54     protected String getAllowedMethodsForHeader() {
    55         return "OPTIONS,GET";
    56     }
    57 
    5851    /**
    5952     * result for JSON content-type. optional search parameters: uri, user, limit,
     
    6659    public Representation doGetJSON(Representation entity) {
    6760        logger.fine("AnnotatorSearch doGetJSON!");
    68         setCorsHeaders();
    6961        // do authentication
    7062        Person authUser = getUserFromAuthToken(entity);
Note: See TracChangeset for help on using the changeset viewer.