Package net.ontopia.infoset.content
Class ContentStoreServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
net.ontopia.infoset.content.ContentStoreServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,Serializable
public class ContentStoreServlet
extends jakarta.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:
-
Field Summary
Fields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoGet(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) protected ContentStoreIFgetContentStore(TopicMapIF tm, jakarta.servlet.ServletContext ctxt) Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPatch, doPost, doPut, doTrace, getLastModified, init, isSensitiveHeader, service, serviceMethods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
ContentStoreServlet
public ContentStoreServlet()
-
-
Method Details
-
doGet
public void doGet(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws jakarta.servlet.ServletException - Overrides:
doGetin classjakarta.servlet.http.HttpServlet- Throws:
jakarta.servlet.ServletException
-
getContentStore
protected ContentStoreIF getContentStore(TopicMapIF tm, jakarta.servlet.ServletContext ctxt) throws ContentStoreException - Throws:
ContentStoreException
-