Class WebPreservationResource


  • @Path("/v1/api")
    @ApplicationPath("webresources")
    public class WebPreservationResource
    extends java.lang.Object
    WebPreservationResource class
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.ws.rs.core.Response getGriffinById​(javax.servlet.http.HttpServletRequest request, java.lang.String id)  
      javax.ws.rs.core.Response getPreservationGriffins​(javax.servlet.http.HttpServletRequest request, java.lang.String select)  
      javax.ws.rs.core.Response getPreservationScenarioById​(javax.servlet.http.HttpServletRequest request, java.lang.String id)  
      javax.ws.rs.core.Response getPreservationScenarios​(javax.servlet.http.HttpServletRequest request, java.lang.String select)  
      javax.ws.rs.core.Response launchPreservation​(javax.servlet.http.HttpServletRequest request, java.lang.String preservationString)  
      javax.ws.rs.core.Response uploadGriffins​(javax.servlet.http.HttpServletRequest request, java.io.InputStream input)  
      javax.ws.rs.core.Response uploadPreservationScenario​(javax.servlet.http.HttpServletRequest request, java.io.InputStream input)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • launchPreservation

        @POST
        @Path("/preservation")
        @Produces("application/json")
        public javax.ws.rs.core.Response launchPreservation​(@Context
                                                            javax.servlet.http.HttpServletRequest request,
                                                            java.lang.String preservationString)
      • getPreservationScenarios

        @POST
        @Path("/preservationScenarios")
        @Produces("application/json")
        public javax.ws.rs.core.Response getPreservationScenarios​(@Context
                                                                  javax.servlet.http.HttpServletRequest request,
                                                                  java.lang.String select)
      • getPreservationGriffins

        @POST
        @Path("/griffins")
        @Produces("application/json")
        public javax.ws.rs.core.Response getPreservationGriffins​(@Context
                                                                 javax.servlet.http.HttpServletRequest request,
                                                                 java.lang.String select)
      • uploadGriffins

        @POST
        @Path("/griffins")
        @Consumes("application/octet-stream")
        @Produces("application/json")
        public javax.ws.rs.core.Response uploadGriffins​(@Context
                                                        javax.servlet.http.HttpServletRequest request,
                                                        java.io.InputStream input)
      • uploadPreservationScenario

        @POST
        @Path("/scenarios")
        @Consumes("application/octet-stream")
        @Produces("application/json")
        public javax.ws.rs.core.Response uploadPreservationScenario​(@Context
                                                                    javax.servlet.http.HttpServletRequest request,
                                                                    java.io.InputStream input)
      • getGriffinById

        @GET
        @Path("griffin/{id}")
        @Produces("application/json")
        @Consumes("application/json")
        public javax.ws.rs.core.Response getGriffinById​(@Context
                                                        javax.servlet.http.HttpServletRequest request,
                                                        @PathParam("id")
                                                        java.lang.String id)
      • getPreservationScenarioById

        @GET
        @Path("scenario/{id}")
        @Produces("application/json")
        @Consumes("application/json")
        public javax.ws.rs.core.Response getPreservationScenarioById​(@Context
                                                                     javax.servlet.http.HttpServletRequest request,
                                                                     @PathParam("id")
                                                                     java.lang.String id)