Class WorkbenchGateway
java.lang.Object
org.eclipse.rdf4j.workbench.base.AbstractServlet
org.eclipse.rdf4j.workbench.proxy.WorkbenchGateway
- All Implemented Interfaces:
jakarta.servlet.Servlet
All requests are serviced by this Servlet, though it usually delegates to other Servlets.
-
Field Summary
FieldsFields 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 jakarta.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 TypeMethodDescriptionprotected CookieHandlercreateCookieHandler(jakarta.servlet.ServletConfig config) protected org.eclipse.rdf4j.workbench.proxy.ServerValidatorcreateServerValidator(jakarta.servlet.ServletConfig config) protected WorkbenchServletprotected jakarta.servlet.ServletConfigcreateWorkbenchServletConfig(String server, Map<String, String> params) voiddestroy()Returns the value of the default-server configuration variable.voidinit(jakarta.servlet.ServletConfig config) booleanWhether the server path is fixed, which is when the change-server-path configuration value is not set.voidservice(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) Methods inherited from class AbstractServlet
checkJSONP, getBooleanResultFormat, getJSONPResultFormat, getResultWriter, getServletConfig, getServletInfo, getTupleResultBuilder, getTupleResultFormat, serviceModifier and TypeMethodDescriptionprotected QueryResultWritercheckJSONP(jakarta.servlet.http.HttpServletRequest req, OutputStream outputStream) protected QueryResultFormatgetBooleanResultFormat(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.ServletResponse resp) protected QueryResultFormatgetJSONPResultFormat(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.ServletResponse resp) protected QueryResultWritergetResultWriter(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.ServletResponse resp, OutputStream outputStream) jakarta.servlet.ServletConfigprotected TupleResultBuildergetTupleResultBuilder(jakarta.servlet.http.HttpServletRequest req, jakarta.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(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.ServletResponse resp) final voidservice(jakarta.servlet.ServletRequest req, jakarta.servlet.ServletResponse resp)
-
Field Details
-
TRANSFORMATIONS
- See Also:
-
-
Constructor Details
-
WorkbenchGateway
public WorkbenchGateway()
-
-
Method Details
-
init
public void init(jakarta.servlet.ServletConfig config) throws jakarta.servlet.ServletException - Specified by:
initin interfacejakarta.servlet.Servlet- Overrides:
initin classAbstractServlet- Throws:
jakarta.servlet.ServletException
-
destroy
public void destroy()- Specified by:
destroyin interfacejakarta.servlet.Servlet- Overrides:
destroyin classAbstractServlet
-
getChangeServerPath
-
getDefaultServerPath
Returns the value of the default-server configuration variable. Often, this is simply a relative path on the same HTTP server.- Returns:
- the path to the default Sesame server instance
-
isServerFixed
public boolean isServerFixed()Whether the server path is fixed, which is when the change-server-path configuration value is not set.- Returns:
- true, if the change-server-path configuration variable is not set, meaning that changing the server is blocked
-
service
public void service(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, IOException - Overrides:
servicein classAbstractServlet- Throws:
jakarta.servlet.ServletExceptionIOException
-
createCookieHandler
-
createServerValidator
protected org.eclipse.rdf4j.workbench.proxy.ServerValidator createServerValidator(jakarta.servlet.ServletConfig config) -
createWorkbenchServlet
-
createWorkbenchServletConfig
-