Class ContentStoreServlet

  • All Implemented Interfaces:
    Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

    public class ContentStoreServlet
    extends javax.servlet.http.HttpServlet
    INTERNAL: A servlet implementation that returns content stored in a content store. It supports the following interface:

     Parameter   Explanation                                       Required
     ---------   ------------------------------------------------  --------
     uri         The URI of the content object, which must be of   Yes
                 the form "x-ontopia:cms:XXX".
     
     tmid        The identifier of the topic map from which the    Yes
                 CO has been referenced.
     
     ctype       The content-type to be given for the CO. Default  No
                 is "application/octet-stream".
     
     view        Whether to tell browser to open in browser        No
                 window or to download into file. Values: 
                 true/false. Default is to download to file 
                 (false). 
     
     filename    The filename to suggest. Default is to suggest    No
                 none.
     
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void doGet​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)  
      protected ContentStoreIF getContentStore​(TopicMapIF tm, javax.servlet.ServletContext ctxt)  
      • Methods inherited from class javax.servlet.http.HttpServlet

        doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
      • Methods inherited from class javax.servlet.GenericServlet

        destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
    • Constructor Detail

      • ContentStoreServlet

        public ContentStoreServlet()
    • Method Detail

      • doGet

        public void doGet​(javax.servlet.http.HttpServletRequest request,
                          javax.servlet.http.HttpServletResponse response)
                   throws javax.servlet.ServletException
        Overrides:
        doGet in class javax.servlet.http.HttpServlet
        Throws:
        javax.servlet.ServletException