Class MCRFileNodeServlet

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable

public class MCRFileNodeServlet extends MCRContentServlet
This servlet delivers the contents of an MCRFilesystemNode to the client browser. If the node is a ordinary MCRFile, the contents of that file will be sent to the browser. If the node is an MCRFile with a MCRAudioVideoExtender, the message that starts the associated streaming player will be delivered. If the node is a MCRDirectory, the contents of that directory will be forwareded to MCRLayoutService as XML data to display a detailed directory listing.
Version:
$Revision$ $Date$
Author:
Frank Lützenkirchen, Jens Kupferschmidt, Thomas Scheffler (yagee), A.Schaar, Robert Stephan
See Also:
  • Constructor Details

    • MCRFileNodeServlet

      public MCRFileNodeServlet()
  • Method Details

    • getContent

      public MCRContent getContent(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException
      Description copied from class: MCRContentServlet
      Returns MCRContent matching current request.
      Specified by:
      getContent in class MCRContentServlet
      Throws:
      IOException
    • getOwnerID

      public static String getOwnerID(jakarta.servlet.http.HttpServletRequest request)
      retrieves the derivate ID of the owning derivate from request path. Attention: derivateID is not always at the first position in path
      Parameters:
      request - - the http request object
    • getPath

      protected String getPath(jakarta.servlet.http.HttpServletRequest request)
      Retrieves the path of the file to display from request path.
      Parameters:
      request - - the http request object