GeoPubby
Version 0.1.0.0
|
Servlet that handles the public URIs of mapped resources. More...
Public Member Functions | |
boolean | doGet (String relativeURI, HttpServletRequest request, HttpServletResponse response, Configuration config) throws IOException |
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) |
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 = 3797268342314917283L |
Servlet that handles the public URIs of mapped resources.
It redirects either to the page URL or to the data URL, based on content negotiation.
TODO: This should provide only a 303 service. The conneg stuff should happen in new generic versions of the representation-producing servlets.
|
protectedinherited |
References MetadataConfiguration.addCustomMetadata(), MetadataConfiguration.addMetadataFromTemplate(), ModelUtil.addNSIfUndefined(), BaseServlet.config, HypermediaControls.getAbsoluteIRI(), and Configuration.getDatasets().
Referenced by ValuesDataURLServlet.doGet(), and DataURLServlet.doGet().
|
protectedinherited |
References MetadataConfiguration.addMetadataFromTemplate(), BaseServlet.config, and Configuration.getDatasets().
Referenced by ValuesURLServlet.doGet(), and PageURLServlet.doGet().
|
protectedinherited |
Referenced by ValuesDataURLServlet.doGet(), and DataURLServlet.doGet().
|
inherited |
References BaseServlet.config, BaseServlet.doGet(), ServletContextInitializer.ERROR_MESSAGE, ServletContextInitializer.initConfiguration(), BaseServlet.initError, BaseServlet.send404(), BaseServlet.sendInitialization500(), and ServletContextInitializer.SERVER_CONFIGURATION.
boolean doGet | ( | String | relativeURI, |
HttpServletRequest | request, | ||
HttpServletResponse | response, | ||
Configuration | config | ||
) | throws IOException |
Reimplemented from BaseServlet.
References BaseServlet.config, ContentTypeNegotiator.getBestMatch(), Configuration.getControls(), HypermediaControls.getDataURL(), MediaRangeSpec.getMediaType(), HypermediaControls.getPageURL(), PubbyNegotiator.getPubbyNegotiator(), HypermediaControls.isHosted, and IRIEncoder.toURI().
|
inherited |
|
protectedinherited |
References BaseServlet.config, Configuration.getProjectLink(), Configuration.getProjectName(), and Configuration.getWebApplicationBaseURI().
Referenced by BaseServlet.doGet().
|
protectedinherited |
Referenced by BaseServlet.doGet().
|
privateinherited |
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().
|
privateinherited |
Referenced by BaseServlet.doGet(), and BaseServlet.init().
|
staticprivate |