Class ContentStoreServlet

java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
net.ontopia.infoset.content.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:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    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

    Methods inherited from class java.lang.Object

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

    • ContentStoreServlet

      public ContentStoreServlet()
  • Method Details

    • 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
    • getContentStore

      protected ContentStoreIF getContentStore(TopicMapIF tm, javax.servlet.ServletContext ctxt) throws ContentStoreException
      Throws:
      ContentStoreException