java.lang.Object
org.apache.jena.fuseki.servlets.ServletOps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voiderror(int statusCode) static voidstatic voiderrorBadRequest(String string) static voidstatic voiderrorForbidden(String msg) static voiderrorMethodNotAllowed(String method) static voiderrorMethodNotAllowed(String method, String msg) static voidstatic voiderrorNotFound(String string) static voidstatic voiderrorOccurred(String message) static voiderrorOccurred(String message, Throwable ex) static voidstatic voiderrorParseError(org.apache.jena.riot.RiotParseException ex) static StringformatForLog(String string) static voidresponseSendError(jakarta.servlet.http.HttpServletResponse response, int statusCode) Send an HTTP response with no bodystatic voidresponseSendError(jakarta.servlet.http.HttpServletResponse response, int statusCode, String message) Send an HTTP error response.static voidsendJson(HttpAction action, org.apache.jena.atlas.json.JsonValue jValue) Send a JSON value as a 200 response.static voidsendJsonReponse(HttpAction action, org.apache.jena.atlas.json.JsonValue v) Send a JSON value as a 200 response.static voidsetNoCache(jakarta.servlet.http.HttpServletResponse response) static voidsetNoCache(HttpAction action) static voidsuccess(HttpAction action) static voidsuccess(HttpAction action, int httpStatusCode) static voidsuccessCreated(HttpAction action) static voidsuccessNoContent(HttpAction action) static voidsuccessNotFound(HttpAction action) static voidsuccessPage(HttpAction action, String message) static voiduploadResponse(HttpAction action, UploadDetails details) response to a upload operation of some kind.static voidwarning(HttpAction action, String string) static voidwarning(HttpAction action, String string, Throwable thorwable) static voidwriteMessagePlainTextError(jakarta.servlet.http.HttpServletResponse response, String message)
-
Constructor Details
-
ServletOps
public ServletOps()
-
-
Method Details
-
responseSendError
public static void responseSendError(jakarta.servlet.http.HttpServletResponse response, int statusCode, String message) Send an HTTP error response. Include an optional message in the body (as text/plain), if provided. Note that we do not set a custom Reason Phrase.
HTTPS/2 does not have a "Reason Phrase". -
responseSendError
public static void responseSendError(jakarta.servlet.http.HttpServletResponse response, int statusCode) Send an HTTP response with no body -
writeMessagePlainTextError
public static void writeMessagePlainTextError(jakarta.servlet.http.HttpServletResponse response, String message) -
successNoContent
-
success
-
successCreated
-
successNotFound
-
success
-
successPage
-
warning
-
warning
-
errorParseError
public static void errorParseError(org.apache.jena.riot.RiotParseException ex) -
errorBadRequest
-
errorNotFound
public static void errorNotFound() -
errorNotFound
-
errorNotImplemented
-
errorMethodNotAllowed
-
errorMethodNotAllowed
-
errorForbidden
public static void errorForbidden() -
errorForbidden
-
error
public static void error(int statusCode) -
error
-
errorOccurred
-
errorOccurred
-
errorOccurred
-
formatForLog
-
setNoCache
-
setNoCache
public static void setNoCache(jakarta.servlet.http.HttpServletResponse response) -
uploadResponse
response to a upload operation of some kind. -
sendJsonReponse
Send a JSON value as a 200 response. Null object means no response body and no content-type headers. -
sendJson
Send a JSON value as a 200 response. Null object means no response body and no content-type headers.
-