Class ObjectResource

java.lang.Object
io.goobi.viewer.api.rest.v1.records.media.ObjectResource

@Path("/records/{pi}/files/3d/{filename}") public class ObjectResource extends Object

ObjectResource class.

Author:
Florian Alpers
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ObjectResource(javax.ws.rs.container.ContainerRequestContext context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, AbstractApiUrlManager urls, String pi, String filename)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    getInfo(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
    getInfo.
    javax.ws.rs.core.StreamingOutput
    getObject(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
    getObject.
    javax.ws.rs.core.StreamingOutput
    getObjectResource(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String pi, String subfolder, String auxfilename)
    getObjectResource.
    javax.ws.rs.core.StreamingOutput
    getObjectResource(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String pi, String subfolder1, String subfolder2, String auxfilename)
    getObjectResource.
    javax.ws.rs.core.StreamingOutput
    getObjectResource2(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String pi, String subfolder, String auxfilename)
    getObjectResource2.
    javax.ws.rs.core.StreamingOutput
    getObjectResource2(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String pi, String subfolder1, String subfolder2, String auxfilename)
    getObjectResource2.

    Methods inherited from class java.lang.Object

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

    • ObjectResource

      public ObjectResource(@Context javax.ws.rs.container.ContainerRequestContext context, @Context javax.servlet.http.HttpServletRequest request, @Context javax.servlet.http.HttpServletResponse response, @Context AbstractApiUrlManager urls, @PathParam("pi") String pi, @PathParam("filename") String filename)
      Parameters:
      context -
      request -
      response -
      urls -
      pi -
      filename -
  • Method Details

    • getInfo

      @GET @Path("/info.json") @Produces("application/json") public ObjectInfo getInfo(@Context javax.servlet.http.HttpServletRequest request, @Context javax.servlet.http.HttpServletResponse response) throws PresentationException, IndexUnreachableException

      getInfo.

      Parameters:
      request - a HttpServletRequest object.
      response - a HttpServletResponse object.
      Returns:
      a ObjectInfo object.
      Throws:
      PresentationException - if any.
      IndexUnreachableException - if any.
    • getObject

      @GET @Produces("application/octet-stream") public javax.ws.rs.core.StreamingOutput getObject(@Context javax.servlet.http.HttpServletRequest request, @Context javax.servlet.http.HttpServletResponse response) throws IOException, PresentationException, IndexUnreachableException

      getObject.

      Parameters:
      request - a HttpServletRequest object.
      response - a HttpServletResponse object.
      Returns:
      a StreamingOutput object.
      Throws:
      IOException - if any.
      PresentationException - if any.
      IndexUnreachableException - if any.
    • getObjectResource

      @GET @Path("/{subfolder}/{auxfilename}") @Produces("application/octet-stream") public javax.ws.rs.core.StreamingOutput getObjectResource(@Context javax.servlet.http.HttpServletRequest request, @Context javax.servlet.http.HttpServletResponse response, @PathParam("pi") String pi, @PathParam("subfolder") String subfolder, @PathParam("auxfilename") String auxfilename) throws IOException, PresentationException, IndexUnreachableException

      getObjectResource.

      Parameters:
      request - a HttpServletRequest object.
      response - a HttpServletResponse object.
      pi - a String object.
      subfolder - a String object.
      auxfilename - a String object.
      Returns:
      a StreamingOutput object.
      Throws:
      IOException - if any.
      PresentationException - if any.
      IndexUnreachableException - if any.
    • getObjectResource2

      @GET @Path("/{subfolder}//{auxfilename}") @Produces("application/octet-stream") public javax.ws.rs.core.StreamingOutput getObjectResource2(@Context javax.servlet.http.HttpServletRequest request, @Context javax.servlet.http.HttpServletResponse response, @PathParam("pi") String pi, @PathParam("subfolder") String subfolder, @PathParam("auxfilename") String auxfilename) throws IOException, PresentationException, IndexUnreachableException

      getObjectResource2.

      Parameters:
      request - a HttpServletRequest object.
      response - a HttpServletResponse object.
      pi - a String object.
      subfolder - a String object.
      auxfilename - a String object.
      Returns:
      a StreamingOutput object.
      Throws:
      IOException - if any.
      PresentationException - if any.
      IndexUnreachableException - if any.
    • getObjectResource

      @GET @Path("/{subfolder}/{subsubfolder}/{auxfilename}") @Produces("application/octet-stream") public javax.ws.rs.core.StreamingOutput getObjectResource(@Context javax.servlet.http.HttpServletRequest request, @Context javax.servlet.http.HttpServletResponse response, @PathParam("pi") String pi, @PathParam("subfolder") String subfolder1, @PathParam("subsubfolder") String subfolder2, @PathParam("auxfilename") String auxfilename) throws IOException, PresentationException, IndexUnreachableException

      getObjectResource.

      Parameters:
      request - a HttpServletRequest object.
      response - a HttpServletResponse object.
      pi - a String object.
      subfolder1 - a String object.
      subfolder2 - a String object.
      auxfilename - a String object.
      Returns:
      a StreamingOutput object.
      Throws:
      IOException - if any.
      PresentationException - if any.
      IndexUnreachableException - if any.
    • getObjectResource2

      @GET @Path("//{subfolder}/{subsubfolder}/{auxfilename}") @Produces("application/octet-stream") public javax.ws.rs.core.StreamingOutput getObjectResource2(@Context javax.servlet.http.HttpServletRequest request, @Context javax.servlet.http.HttpServletResponse response, @PathParam("pi") String pi, @PathParam("subfolder") String subfolder1, @PathParam("subsubfolder") String subfolder2, @PathParam("auxfilename") String auxfilename) throws IOException, PresentationException, IndexUnreachableException

      getObjectResource2.

      Parameters:
      request - a HttpServletRequest object.
      response - a HttpServletResponse object.
      pi - a String object.
      subfolder1 - a String object.
      subfolder2 - a String object.
      auxfilename - a String object.
      Returns:
      a StreamingOutput object.
      Throws:
      IOException - if any.
      PresentationException - if any.
      IndexUnreachableException - if any.