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 Link icon

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

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

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

    Methods inherited from class java.lang.Object Link icon

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

    • ObjectResource Link icon

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

    • getInfo Link icon

      @GET @Path("/info.json") @Produces("application/json") public ObjectInfo getInfo(@Context jakarta.servlet.http.HttpServletRequest request, @Context jakarta.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 Link icon

      @GET @Produces("application/octet-stream") public jakarta.ws.rs.core.StreamingOutput getObject(@Context jakarta.servlet.http.HttpServletRequest request, @Context jakarta.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 Link icon

      @GET @Path("/{subfolder}/{auxfilename}") @Produces("application/octet-stream") public jakarta.ws.rs.core.StreamingOutput getObjectResource(@Context jakarta.servlet.http.HttpServletRequest request, @Context jakarta.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 Link icon

      @GET @Path("/{subfolder}//{auxfilename}") @Produces("application/octet-stream") public jakarta.ws.rs.core.StreamingOutput getObjectResource2(@Context jakarta.servlet.http.HttpServletRequest request, @Context jakarta.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 Link icon

      @GET @Path("/{subfolder}/{subsubfolder}/{auxfilename}") @Produces("application/octet-stream") public jakarta.ws.rs.core.StreamingOutput getObjectResource(@Context jakarta.servlet.http.HttpServletRequest request, @Context jakarta.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 Link icon

      @GET @Path("//{subfolder}/{subsubfolder}/{auxfilename}") @Produces("application/octet-stream") public jakarta.ws.rs.core.StreamingOutput getObjectResource2(@Context jakarta.servlet.http.HttpServletRequest request, @Context jakarta.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.