Ignore:
Timestamp:
10/21/14 19:01:09 (10 years ago)
Author:
olhsha@mpi.nl
Message:

bug in AnnotationTest?: httpSevletRequest = null;

File:
1 edited

Legend:

Unmodified
Added
Removed
  • DASISH/t5.6/backend/annotator-backend/branches/Jersey-2.12-adaptation/annotator-backend/src/main/java/eu/dasish/annotation/backend/rest/TargetResource.java

    r5693 r5739  
    1818package eu.dasish.annotation.backend.rest;
    1919
    20 import com.sun.jersey.multipart.BodyPartEntity;
    21 import com.sun.jersey.multipart.MultiPart;
     20import org.glassfish.jersey.media.multipart.MultiPart;
     21import org.glassfish.jersey.media.multipart.BodyPartEntity;
    2222import eu.dasish.annotation.backend.BackendConstants;
    2323import eu.dasish.annotation.backend.ForbiddenException;
     
    8282        Map params = new HashMap();
    8383        try {
    84             Target result = (Target) (new RequestWrappers(this)).wrapRequestResource(params, new GetTarget(), Resource.TARGET, ResourceAction.READ, externalIdentifier);
     84            Target result = (Target) (new RequestWrappers(this)).wrapRequestResource(params, new TargetResource.GetTarget(), Resource.TARGET, ResourceAction.READ, externalIdentifier);
    8585            if (result != null) {
    8686                return new ObjectFactory().createTarget(result);
     
    114114        Map params = new HashMap();
    115115        try {
    116             ReferenceList result = (ReferenceList) (new RequestWrappers(this)).wrapRequestResource(params, new GetSiblingTargets(), Resource.TARGET, ResourceAction.READ, externalIdentifier);
     116            ReferenceList result = (ReferenceList) (new RequestWrappers(this)).wrapRequestResource(params, new TargetResource.GetSiblingTargets(), Resource.TARGET, ResourceAction.READ, externalIdentifier);
    117117            if (result != null) {
    118118                return new ObjectFactory().createReferenceList(result);
     
    153153        params.put("fragmentDescriptor", fragmentDescriptor);
    154154        try {
    155             CachedRepresentationInfo result = (CachedRepresentationInfo) (new RequestWrappers(this)).wrapRequestResource(params, new PostCached(), Resource.TARGET, ResourceAction.WRITE_W_METAINFO, targetIdentifier);
     155            CachedRepresentationInfo result = (CachedRepresentationInfo) (new RequestWrappers(this)).wrapRequestResource(params, new TargetResource.PostCached(), Resource.TARGET, ResourceAction.WRITE_W_METAINFO, targetIdentifier);
    156156            if (result != null) {
    157157                return new ObjectFactory().createCachedRepresentationInfo(result);
Note: See TracChangeset for help on using the changeset viewer.