Class AbstractRepositoryServlet
java.lang.Object
org.eclipse.rdf4j.workbench.base.AbstractServlet
org.eclipse.rdf4j.workbench.base.AbstractRepositoryServlet
- All Implemented Interfaces:
javax.servlet.Servlet, RepositoryServlet
- Direct Known Subclasses:
ProxyRepositoryServlet, TransformationServlet
public abstract class AbstractRepositoryServlet
extends AbstractServlet
implements RepositoryServlet
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected RepositoryInfoprotected RepositoryManagerstatic final Stringprotected Repositorystatic final Stringprotected ValueFactoryFields inherited from class AbstractServlet
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_AGENTModifier and TypeFieldDescriptionprotected static final Stringprotected AppConfigurationprotected static final StringThis response content type is always used for JSONP results.protected static final StringThis response content type is used for SPARQL Results XML results in non-browser user agents or other cases where application/xml is not specifically requested.protected static final StringThis response content type is used in cases where application/xml is explicitly requested, or in cases where the user agent is known to be a commonly available browser.protected javax.servlet.ServletConfigprotected static final StringThis query parameter is only used in cases where the configuration property is not setup explicitly.protected static final Stringprotected static final StringJSONP property for enabling/disabling jsonp functionality.protected static final Patternprotected final org.slf4j.Loggerprotected static final Stringprotected static final Stringprotected static final StringDeprecated.protected static final StringDeprecated.protected static final Stringprotected static final Stringprotected static final Stringprotected static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinit(javax.servlet.ServletConfig config) voidsetRepository(Repository repository) voidvoidsetRepositoryManager(RepositoryManager manager) Methods inherited from class AbstractServlet
checkJSONP, destroy, getBooleanResultFormat, getJSONPResultFormat, getResultWriter, getServletConfig, getServletInfo, getTupleResultBuilder, getTupleResultFormat, service, serviceModifier and TypeMethodDescriptionprotected QueryResultWritercheckJSONP(javax.servlet.http.HttpServletRequest req, OutputStream outputStream) voiddestroy()protected QueryResultFormatgetBooleanResultFormat(javax.servlet.http.HttpServletRequest req, javax.servlet.ServletResponse resp) protected QueryResultFormatgetJSONPResultFormat(javax.servlet.http.HttpServletRequest req, javax.servlet.ServletResponse resp) protected QueryResultWritergetResultWriter(javax.servlet.http.HttpServletRequest req, javax.servlet.ServletResponse resp, OutputStream outputStream) javax.servlet.ServletConfigprotected TupleResultBuildergetTupleResultBuilder(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, OutputStream outputStream) Gets aTupleResultBuilderbased on the Accept header, and sets the result content type to the best available match for that, returning a builder that can be used to write out the results.protected QueryResultFormatgetTupleResultFormat(javax.servlet.http.HttpServletRequest req, javax.servlet.ServletResponse resp) voidservice(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) final voidservice(javax.servlet.ServletRequest req, javax.servlet.ServletResponse resp)
-
Field Details
-
REPOSITORY_PARAM
- See Also:
-
MANAGER_PARAM
- See Also:
-
manager
-
info
-
repository
-
vf
-
-
Constructor Details
-
AbstractRepositoryServlet
public AbstractRepositoryServlet()
-
-
Method Details
-
setRepositoryManager
- Specified by:
setRepositoryManagerin interfaceRepositoryServlet
-
setRepositoryInfo
- Specified by:
setRepositoryInfoin interfaceRepositoryServlet
-
setRepository
- Specified by:
setRepositoryin interfaceRepositoryServlet
-
init
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException - Specified by:
initin interfacejavax.servlet.Servlet- Overrides:
initin classAbstractServlet- Throws:
javax.servlet.ServletException
-