# Uses of Interface
org.apache.sling.api.request.builder.SlingHttpServletRequestBuilder

Packages that use SlingHttpServletRequestBuilder
Package
Description
org.apache.sling.api.request.builder

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

Methods in org.apache.sling.api.request.builder that return SlingHttpServletRequestBuilder
Modifier and Type
Method
Description
`static @NotNull SlingHttpServletRequestBuilder`
Builders.`newRequestBuilder(@NotNull Resource resource)`
Creates a new request builder.
`@NotNull SlingHttpServletRequestBuilder`
SlingHttpServletRequestBuilder.`useAttributesFrom(@NotNull jakarta.servlet.http.HttpServletRequest request)`
Uses the attributes backed by the provided request.
`@NotNull SlingHttpServletRequestBuilder`
SlingHttpServletRequestBuilder.`useAttributesFrom(javax.servlet.http.HttpServletRequest request)`
Deprecated.
Use `useAttributesFrom(HttpServletRequest)` instead
`@NotNull SlingHttpServletRequestBuilder`
SlingHttpServletRequestBuilder.`useRequestDispatcherFrom(SlingHttpServletRequest request)`
Deprecated.
Use `useRequestDispatcherFrom(SlingJakartaHttpServletRequest)` instead
`@NotNull SlingHttpServletRequestBuilder`
SlingHttpServletRequestBuilder.`useRequestDispatcherFrom(SlingJakartaHttpServletRequest request)`
Uses the request dispatcher from the provided request.
`@NotNull SlingHttpServletRequestBuilder`
SlingHttpServletRequestBuilder.`useServletContextFrom(@NotNull jakarta.servlet.http.HttpServletRequest request)`
Uses the servlet context from the provided request.
`@NotNull SlingHttpServletRequestBuilder`
SlingHttpServletRequestBuilder.`useServletContextFrom(javax.servlet.http.HttpServletRequest request)`
Deprecated.
Use `useServletContextFrom(HttpServletRequest)` instead
`@NotNull SlingHttpServletRequestBuilder`
SlingHttpServletRequestBuilder.`useSessionFrom(@NotNull jakarta.servlet.http.HttpServletRequest request)`
Uses the session from the provided request.
`@NotNull SlingHttpServletRequestBuilder`
SlingHttpServletRequestBuilder.`useSessionFrom(javax.servlet.http.HttpServletRequest request)`
Deprecated.
Use `useSessionFrom(HttpServletRequest)` instead
`@NotNull SlingHttpServletRequestBuilder`
SlingHttpServletRequestBuilder.`withBody(@Nullable String content)`
Uses the supplied content as the request's body content.
`@NotNull SlingHttpServletRequestBuilder`
SlingHttpServletRequestBuilder.`withContentType(@Nullable String contentType)`
Sets the HTTP request's `Content-Type` header.
`@NotNull SlingHttpServletRequestBuilder`
SlingHttpServletRequestBuilder.`withExtension(@Nullable String extension)`
Sets the optional extension of the internal request, which influences the servlet/script resolution.
`@NotNull SlingHttpServletRequestBuilder`
SlingHttpServletRequestBuilder.`withParameter(@NotNull String key, @NotNull String value)`
Sets a request parameter.
`@NotNull SlingHttpServletRequestBuilder`
SlingHttpServletRequestBuilder.`withParameter(@NotNull String key, @NotNull String[] values)`
Sets a request parameter.
`@NotNull SlingHttpServletRequestBuilder`
SlingHttpServletRequestBuilder.`withParameters(@Nullable Map<String,String[]> parameters)`
Adds the supplied request parameters to the current ones.
`@NotNull SlingHttpServletRequestBuilder`
SlingHttpServletRequestBuilder.`withRequestMethod(@NotNull String method)`
Sets the HTTP request method to use - defaults to `GET`.
`@NotNull SlingHttpServletRequestBuilder`
SlingHttpServletRequestBuilder.`withRequestProgressTracker(@NotNull RequestProgressTracker tracker)`
Uses the provided request progress tracker
`@NotNull SlingHttpServletRequestBuilder`
SlingHttpServletRequestBuilder.`withSelectors(@Nullable String... selectors)`
Sets the optional selectors of the internal request, which influence the servlet/script resolution.
`@NotNull SlingHttpServletRequestBuilder`
SlingHttpServletRequestBuilder.`withSuffix(@Nullable String suffix)`
Sets the optional suffix of the internal request.