Class RootTestResource

java.lang.Object
org.fcrepo.http.commons.AbstractResource
org.fcrepo.auth.integration.RootTestResource

@Scope("prototype") @Path("/{path: .*}") public class RootTestResource extends org.fcrepo.http.commons.AbstractResource
This class acts as the REST Resource endpoint against which integration tests are executed. This is used instead of the real F4 REST API for two reasons: - These integration tests are intended to test the AuthZ functionality, not the F4 REST API - A circular dependency between fcrepo-auth-common <--> fcrepo-http-api is bad
Since:
2014-06-26
Author:
awoods
  • Field Summary

    Fields inherited from class org.fcrepo.http.commons.AbstractResource

    defaultPidMinter, fedoraPropsConfig, headers, pidMinter, resourceFactory, uriInfo, versionService
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    javax.ws.rs.core.Response
    get(String externalPath)
     
    javax.ws.rs.core.Response
    post(String externalPath)
     
    javax.ws.rs.core.Response
    put(String externalPath)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • get

      @GET public javax.ws.rs.core.Response get(@PathParam("path") String externalPath)
    • put

      @PUT public javax.ws.rs.core.Response put(@PathParam("path") String externalPath) throws Exception
      Throws:
      Exception
    • post

      @POST public javax.ws.rs.core.Response post(@PathParam("path") String externalPath) throws Exception
      Throws:
      Exception