public class ExploreServlet extends TupleServlet
Modifier and Type | Class and Description |
---|---|
protected class |
ExploreServlet.ResultCursor
Class for keeping track of location within the result set, relative to offset and limit.
|
Modifier and Type | Field and Description |
---|---|
protected static String |
LIMIT |
protected static int |
LIMIT_DEFAULT |
variables, xsl
CONTEXT, cookies, INFO, NON_VERIFYING_PARSER_CONFIG
info, manager, MANAGER_PARAM, repository, REPOSITORY_PARAM, vf
ACCEPT, appConfig, APPLICATION_JAVASCRIPT, APPLICATION_SPARQL_RESULTS_XML, APPLICATION_XML, config, DEFAULT_JSONP_CALLBACK_PARAMETER, JSONP_CALLBACK_PARAMETER, JSONP_ENABLED, JSONP_VALIDATOR, log, MOZILLA, MSIE, SERVER_PASSWORD, SERVER_USER, SERVER_USER_PASSWORD, TEXT_HTML, TEXT_PLAIN, USER_AGENT
Constructor and Description |
---|
ExploreServlet() |
Modifier and Type | Method and Description |
---|---|
String[] |
getCookieNames() |
protected ExploreServlet.ResultCursor |
processResource(RepositoryConnection con,
TupleResultBuilder builder,
Value value,
int offset,
int limit,
boolean render)
Query the repository for all instances of the given value, optionally writing the results into the HTTP response.
|
void |
service(WorkbenchRequest req,
javax.servlet.http.HttpServletResponse resp,
String xslPath) |
protected void |
service(WorkbenchRequest req,
javax.servlet.http.HttpServletResponse resp,
TupleResultBuilder builder,
RepositoryConnection con) |
service
doPost, init, service, service
setRepository, setRepositoryInfo, setRepositoryManager
checkJSONP, destroy, getBooleanResultFormat, getJSONPResultFormat, getResultWriter, getServletConfig, getServletInfo, getTupleResultBuilder, getTupleResultFormat, service
protected static final String LIMIT
protected static final int LIMIT_DEFAULT
public String[] getCookieNames()
getCookieNames
in class TransformationServlet
public void service(WorkbenchRequest req, javax.servlet.http.HttpServletResponse resp, String xslPath) throws Exception
service
in class TupleServlet
Exception
protected void service(WorkbenchRequest req, javax.servlet.http.HttpServletResponse resp, TupleResultBuilder builder, RepositoryConnection con) throws BadRequestException, RDF4JException
service
in class TupleServlet
BadRequestException
RDF4JException
protected ExploreServlet.ResultCursor processResource(RepositoryConnection con, TupleResultBuilder builder, Value value, int offset, int limit, boolean render) throws RDF4JException
con
- the connection to the repositorybuilder
- used for writing to the HTTP responsevalue
- the value to query the repository foroffset
- The result at which to start rendering results.limit
- The limit on the number of results to render.render
- If false, suppresses output to the HTTP response.RDF4JException
- if there is an issue iterating through resultsCopyright © 2015-2022 Eclipse Foundation. All Rights Reserved.