# Uses of Interface
org.apache.sling.api.SlingJakartaHttpServletResponse

Packages that use SlingJakartaHttpServletResponse
Package
Description
org.apache.sling.api.request.builder
org.apache.sling.api.scripting
org.apache.sling.api.servlets
org.apache.sling.api.wrappers

## Uses of SlingJakartaHttpServletResponse in org.apache.sling.api.request.builder

Subinterfaces of SlingJakartaHttpServletResponse in org.apache.sling.api.request.builder
Modifier and Type
Interface
Description
`interface`
`SlingJakartaHttpServletResponseResult`
This is an extension of a `SlingJakartaHttpServletResponse` to get the result from a processing operation.

## Uses of SlingJakartaHttpServletResponse in org.apache.sling.api.scripting

Methods in org.apache.sling.api.scripting that return SlingJakartaHttpServletResponse
Modifier and Type
Method
Description
`@Nullable SlingJakartaHttpServletResponse`
SlingBindings.`getJakartaResponse()`
Returns the `SlingBindings.JAKARTA_RESPONSE` property if not `null` and a `SlingJakartaHttpServletResponse` instance.
`@NotNull SlingJakartaHttpServletResponse`
SlingScriptHelper.`getJakartaResponse()`
Returns the `SlingJakartaHttpServletResponse` representing the output of the request.
Methods in org.apache.sling.api.scripting with parameters of type SlingJakartaHttpServletResponse
Modifier and Type
Method
Description
`void`
SlingBindings.`setJakartaResponse(SlingJakartaHttpServletResponse response)`
Sets the `SlingBindings.JAKARTA_RESPONSE` property to `response` if not `null`.

## Uses of SlingJakartaHttpServletResponse in org.apache.sling.api.servlets

Methods in org.apache.sling.api.servlets with parameters of type SlingJakartaHttpServletResponse
Modifier and Type
Method
Description
`protected void`
SlingJakartaAllMethodsServlet.`doDelete(@NotNull SlingJakartaHttpServletRequest request, @NotNull SlingJakartaHttpServletResponse response)`
Called by the `SlingJakartaAllMethodsServlet.mayService(SlingJakartaHttpServletRequest, SlingJakartaHttpServletResponse)` method to handle an HTTP DELETE request.
`protected void`
SlingJakartaSafeMethodsServlet.`doGeneric(@NotNull SlingJakartaHttpServletRequest request, @NotNull SlingJakartaHttpServletResponse response)`
Called by the `SlingJakartaSafeMethodsServlet.service(SlingJakartaHttpServletRequest, SlingJakartaHttpServletResponse)` method to handle a request for an HTTP method, which is not known and handled by this class or its extension.
`protected void`
SlingJakartaSafeMethodsServlet.`doGet(@NotNull SlingJakartaHttpServletRequest request, @NotNull SlingJakartaHttpServletResponse response)`
Called by the `SlingJakartaSafeMethodsServlet.mayService(SlingJakartaHttpServletRequest, SlingJakartaHttpServletResponse)` method to handle an HTTP GET request.
`protected void`
SlingJakartaSafeMethodsServlet.`doHead(@NotNull SlingJakartaHttpServletRequest request, @NotNull SlingJakartaHttpServletResponse response)`
Handles the HEAD method.
`protected void`
SlingJakartaSafeMethodsServlet.`doOptions(@NotNull SlingJakartaHttpServletRequest request, @NotNull SlingJakartaHttpServletResponse response)`
Handles the OPTIONS method by setting the HTTP `Allow` header on the response depending on the methods declared in this class.
`protected void`
SlingJakartaAllMethodsServlet.`doPost(@NotNull SlingJakartaHttpServletRequest request, @NotNull SlingJakartaHttpServletResponse response)`
Called by the `SlingJakartaAllMethodsServlet.mayService(SlingJakartaHttpServletRequest, SlingJakartaHttpServletResponse)` method to handle an HTTP POST request.
`protected void`
SlingJakartaAllMethodsServlet.`doPut(@NotNull SlingJakartaHttpServletRequest request, @NotNull SlingJakartaHttpServletResponse response)`
Called by the `SlingJakartaAllMethodsServlet.mayService(SlingJakartaHttpServletRequest, SlingJakartaHttpServletResponse)` method to handle an HTTP PUT request.
`protected void`
SlingJakartaSafeMethodsServlet.`doTrace(@NotNull SlingJakartaHttpServletRequest request, @NotNull SlingJakartaHttpServletResponse response)`
Handles the TRACE method by just returning the list of all header values in the response body.
`void`
JakartaErrorHandler.`handleError(int status, String message, SlingJakartaHttpServletRequest request, SlingJakartaHttpServletResponse response)`
Called to render a response for a HTTP status code.
`void`
JakartaErrorHandler.`handleError(Throwable throwable, SlingJakartaHttpServletRequest request, SlingJakartaHttpServletResponse response)`
Called to render a response for an uncaught `Throwable`.
`protected void`
SlingJakartaSafeMethodsServlet.`handleMethodNotImplemented(@NotNull SlingJakartaHttpServletRequest request, @NotNull SlingJakartaHttpServletResponse response)`
Helper method which causes an appropriate HTTP response to be sent for an unhandled HTTP request method.
`protected boolean`
SlingJakartaAllMethodsServlet.`mayService(@NotNull SlingJakartaHttpServletRequest request, @NotNull SlingJakartaHttpServletResponse response)`
Tries to handle the request by calling a Java method implemented for the respective HTTP request method.
`protected boolean`
SlingJakartaSafeMethodsServlet.`mayService(@NotNull SlingJakartaHttpServletRequest request, @NotNull SlingJakartaHttpServletResponse response)`
Tries to handle the request by calling a Java method implemented for the respective HTTP request method.
`protected void`
SlingJakartaSafeMethodsServlet.`service(@NotNull SlingJakartaHttpServletRequest request, @NotNull SlingJakartaHttpServletResponse response)`
Called by the `SlingJakartaSafeMethodsServlet.service(ServletRequest, ServletResponse)` method to handle the HTTP request.

## Uses of SlingJakartaHttpServletResponse in org.apache.sling.api.wrappers

Classes in org.apache.sling.api.wrappers that implement SlingJakartaHttpServletResponse
Modifier and Type
Class
Description
`class`
`JavaxToJakartaResponseWrapper`
Wrapper for `SlingHttpServletResponse` to adapt it to the Jacax Servlet API.
`class`
`SlingJakartaHttpServletResponseWrapper`
The `SlingJakartaHttpServletResponseWrapper` class is a default wrapper class around a `SlingJakartaHttpServletResponse` which may be extended to amend the functionality of the original response object.
Methods in org.apache.sling.api.wrappers that return SlingJakartaHttpServletResponse
Modifier and Type
Method
Description
`SlingJakartaHttpServletResponse`
SlingJakartaHttpServletResponseWrapper.`getSlingResponse()`
Return the original `SlingJakartaHttpServletResponse` object wrapped by this.
`static @Nullable SlingJakartaHttpServletResponse`
JavaxToJakartaResponseWrapper.`toJakartaResponse(@Nullable SlingHttpServletResponse response)`
Create a new wrapper
Methods in org.apache.sling.api.wrappers with parameters of type SlingJakartaHttpServletResponse
Modifier and Type
Method
Description
`static @Nullable SlingHttpServletResponse`
JakartaToJavaxResponseWrapper.`toJavaxResponse(@Nullable SlingJakartaHttpServletResponse response)`
Create a new wrapper
Constructors in org.apache.sling.api.wrappers with parameters of type SlingJakartaHttpServletResponse
Modifier
Constructor
Description
``
`JakartaToJavaxResponseWrapper(SlingJakartaHttpServletResponse wrappedResponse)`
``
`SlingJakartaHttpServletResponseWrapper(SlingJakartaHttpServletResponse wrappedResponse)`
Create a wrapper for the supplied wrappedRequest