|
GeoPubby
Version 0.1.0.0
|
An abstract base servlet for servlets that manage a namespace of resources. More...


Public Member Functions | |
| void | init () throws ServletException |
| void | doGet (HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException |
Protected Member Functions | |
| void | addDocumentMetadata (Model model, HypermediaControls controller, String documentURL, String title) |
| void | addPageMetadata (Context context, HypermediaControls controller, PrefixMapping prefixes) |
| abstract boolean | doGet (String relativeURI, HttpServletRequest request, HttpServletResponse response, Configuration config) throws IOException, ServletException |
| void | send404 (HttpServletResponse response, String resourceURI) throws IOException |
| void | sendInitialization500 (HttpServletResponse response, String message) throws IOException |
| String | addQueryString (String dataURL, HttpServletRequest request) |
Private Attributes | |
| Configuration | config |
| String | initError |
Static Private Attributes | |
| static final long | serialVersionUID = 7594710471966527559L |
An abstract base servlet for servlets that manage a namespace of resources.
This class handles preprocessing of the request to extract the resource URI relative to the namespace root, and manages the Configuration instance shared by all servlets.
|
protected |
References MetadataConfiguration.addCustomMetadata(), MetadataConfiguration.addMetadataFromTemplate(), ModelUtil.addNSIfUndefined(), BaseServlet.config, HypermediaControls.getAbsoluteIRI(), and Configuration.getDatasets().
Referenced by ValuesDataURLServlet.doGet(), and DataURLServlet.doGet().
|
protected |
References MetadataConfiguration.addMetadataFromTemplate(), BaseServlet.config, and Configuration.getDatasets().
Referenced by ValuesURLServlet.doGet(), and PageURLServlet.doGet().
|
protected |
Referenced by ValuesDataURLServlet.doGet(), and DataURLServlet.doGet().
| void doGet | ( | HttpServletRequest | request, |
| HttpServletResponse | response | ||
| ) | throws IOException, ServletException |
References BaseServlet.config, BaseServlet.doGet(), ServletContextInitializer.ERROR_MESSAGE, ServletContextInitializer.initConfiguration(), BaseServlet.initError, BaseServlet.send404(), BaseServlet.sendInitialization500(), and ServletContextInitializer.SERVER_CONFIGURATION.
|
abstractprotected |
Reimplemented in PageURLServlet, GeoBrowserServlet, WebURIServlet, ValuesBaseServlet, SearchServlet, RootServlet, and DataURLServlet.
Referenced by BaseServlet.doGet().
| void init | ( | ) | throws ServletException |
|
protected |
References BaseServlet.config, Configuration.getProjectLink(), Configuration.getProjectName(), and Configuration.getWebApplicationBaseURI().
Referenced by BaseServlet.doGet().
|
protected |
Referenced by BaseServlet.doGet().
|
private |
Referenced by BaseServlet.addDocumentMetadata(), BaseServlet.addPageMetadata(), BaseServlet.doGet(), ValuesDataURLServlet.doGet(), ValuesURLServlet.doGet(), DataURLServlet.doGet(), RootServlet.doGet(), SearchServlet.doGet(), ValuesBaseServlet.doGet(), WebURIServlet.doGet(), GeoBrowserServlet.doGet(), PageURLServlet.doGet(), BaseServlet.init(), and BaseServlet.send404().
|
private |
Referenced by BaseServlet.doGet(), and BaseServlet.init().
|
staticprivate |