Mercurial > hg > AnnotationManagerN4J
changeset 90:475ab3d32630
update to Restlet 2.3.1.
author | casties |
---|---|
date | Sun, 08 Feb 2015 16:57:42 +0100 |
parents | 247cbbb385de |
children | cf44d9e1a4a7 |
files | pom.xml src/main/java/de/mpiwg/itgroup/annotations/restlet/AnnotatorResourceImpl.java |
diffstat | 2 files changed, 4 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/pom.xml Wed Feb 04 19:37:02 2015 +0100 +++ b/pom.xml Sun Feb 08 16:57:42 2015 +0100 @@ -7,9 +7,8 @@ <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <neo4j-version>2.1.6</neo4j-version> - <!-- <restlet-version>2.0.15</restlet-version> --> - <!-- <restlet-version>2.1.7</restlet-version> --> - <restlet-version>2.2.3</restlet-version> + <!-- <restlet-version>2.2.3</restlet-version> --> + <restlet-version>2.3.1</restlet-version> </properties> <repositories> <repository>
--- a/src/main/java/de/mpiwg/itgroup/annotations/restlet/AnnotatorResourceImpl.java Wed Feb 04 19:37:02 2015 +0100 +++ b/src/main/java/de/mpiwg/itgroup/annotations/restlet/AnnotatorResourceImpl.java Sun Feb 08 16:57:42 2015 +0100 @@ -45,7 +45,7 @@ import org.json.JSONException; import org.json.JSONObject; import org.restlet.data.Status; -import org.restlet.engine.header.Header; +import org.restlet.data.Header; import org.restlet.representation.Representation; import org.restlet.resource.Options; import org.restlet.resource.ServerResource; @@ -122,8 +122,7 @@ * set headers to allow CORS for AJAX. */ protected void setCorsHeaders() { - @SuppressWarnings("unchecked") - Series<Header> responseHeaders = (Series<Header>) getResponse().getAttributes().get("org.restlet.http.headers"); + Series<Header> responseHeaders = (Series<Header>) getResponse().getHeaders(); if (responseHeaders == null) { responseHeaders = new Series<Header>(Header.class); getResponse().getAttributes().put("org.restlet.http.headers", responseHeaders);