Package net.ontopia.infoset.content
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ContentStoreServlet()
-
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
-
-
-
-
Method Detail
-
doGet
public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException
- Overrides:
doGet
in classjavax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
-
getContentStore
protected ContentStoreIF getContentStore(TopicMapIF tm, javax.servlet.ServletContext ctxt) throws ContentStoreException
- Throws:
ContentStoreException
-
-