net.ontopia.infoset.content
Class ContentStoreServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by net.ontopia.infoset.content.ContentStoreServlet
All Implemented Interfaces:
java.io.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

Constructor Summary
ContentStoreServlet()
           
 
Method Summary
 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 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

getContentStore

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


Copyright © 2000-2012 Ontopia.