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

Packages that use SlingHttpServletResponse
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 SlingHttpServletResponse in org.apache.sling.api.request.builder

Subinterfaces of SlingHttpServletResponse in org.apache.sling.api.request.builder
Modifier and Type
Interface
Description
`interface`
`SlingHttpServletResponseResult`
Deprecated.
Use `SlingJakartaHttpServletResponseResult` instead

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

Methods in org.apache.sling.api.scripting that return SlingHttpServletResponse
Modifier and Type
Method
Description
`@Nullable SlingHttpServletResponse`
SlingBindings.`getResponse()`
Deprecated.
Use `SlingBindings.getJakartaResponse()` instead.
`@NotNull SlingHttpServletResponse`
SlingScriptHelper.`getResponse()`
Deprecated.
Use `SlingScriptHelper.getJakartaResponse()` instead.
Methods in org.apache.sling.api.scripting with parameters of type SlingHttpServletResponse
Modifier and Type
Method
Description
`void`
SlingBindings.`setResponse(SlingHttpServletResponse response)`
Deprecated.
Use `SlingBindings.setJakartaResponse(SlingJakartaHttpServletResponse)` instead.

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

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

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

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