Changeset 65:c0dd5314bada in AnnotationManagerN4J for src/main/java/de/mpiwg/itgroup/annotations/restlet/annotations_ui/PersonResource.java
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/de/mpiwg/itgroup/annotations/restlet/annotations_ui/PersonResource.java
r32 r65 3 3 */ 4 4 package de.mpiwg.itgroup.annotations.restlet.annotations_ui; 5 6 import java.io.UnsupportedEncodingException; 7 import java.net.URLDecoder; 5 8 6 9 import org.apache.log4j.Logger; … … 42 45 // id from URI /annotations/persons/{id} 43 46 requestId = (String) getRequest().getAttributes().get("id"); 44 logger.debug(" group-id=" + requestId);47 logger.debug("person-id=" + requestId); 45 48 // get store instance 46 49 if (store == null) { 47 50 store = ((BaseRestlet) getApplication()).getAnnotationStore(); 48 51 } 49 // get groupfrom store52 // get person from store 50 53 if (requestId != null) { 54 // URL decode 55 try { 56 requestId = URLDecoder.decode(requestId, "UTF-8"); 57 } catch (UnsupportedEncodingException e) { 58 // this shouldn't happen 59 } 51 60 person = (Person) store.getActor(new Person(requestId)); 52 61 }
Note: See TracChangeset
for help on using the changeset viewer.