GeoPubby
Version 0.1.0.0
|
Abstract base servlet for servlets that handle a property of a given resource. More...
Public Member Functions | |
abstract boolean | doGet (HypermediaControls controller, Property property, boolean isInverse, HttpServletRequest request, HttpServletResponse response, Configuration config) throws IOException, ServletException |
boolean | doGet (String relativeURI, HttpServletRequest request, HttpServletResponse response, Configuration config) throws IOException, ServletException |
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 Pattern | prefixedNamePattern = Pattern.compile("(-?)([^!:/]*):([^:/]*)/(.*)") |
static Pattern | fullIRIPattern = Pattern.compile("(-?)!(.*?)///(.*)") |
static final long | serialVersionUID = 7393467141233996715L |
Abstract base servlet for servlets that handle a property of a given resource.
The base servlet takes care of extracting the resource's URI and the property's URI from the requested URL, and mapping everything to the data sources. Concrete subclasses then take care of generating the response.
|
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.
|
abstract |
Reimplemented in ValuesURLServlet, and ValuesDataURLServlet.
Referenced by ValuesBaseServlet.doGet().
boolean doGet | ( | String | relativeURI, |
HttpServletRequest | request, | ||
HttpServletResponse | response, | ||
Configuration | config | ||
) | throws IOException, ServletException |
Reimplemented from BaseServlet.
References BaseServlet.config, ValuesBaseServlet.doGet(), ValuesBaseServlet.fullIRIPattern, Configuration.getControls(), Configuration.getPrefixes(), ValuesBaseServlet.prefixedNamePattern, IRIEncoder.toIRI(), and PubbyIRIEscaper.unescapeSpecialCharacters().
|
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().
|
staticprivate |
Referenced by ValuesBaseServlet.doGet().
|
privateinherited |
Referenced by BaseServlet.doGet(), and BaseServlet.init().
|
staticprivate |
Referenced by ValuesBaseServlet.doGet().
|
staticprivate |