Class JavaxToJakartaRequestWrapper

java.lang.Object
org.apache.felix.http.jakartawrappers.ServletRequestWrapper
org.apache.felix.http.jakartawrappers.HttpServletRequestWrapper
org.apache.sling.api.wrappers.JavaxToJakartaRequestWrapper
All Implemented Interfaces:
jakarta.servlet.http.HttpServletRequest, jakarta.servlet.ServletRequest, Adaptable, SlingJakartaHttpServletRequest

public class JavaxToJakartaRequestWrapper extends org.apache.felix.http.jakartawrappers.HttpServletRequestWrapper implements SlingJakartaHttpServletRequest
Wrapper for SlingHttpServletRequest to adapt it to the Jakarta Servlet API.
Since:
2.9.0
  • Field Summary

    Fields inherited from interface jakarta.servlet.http.HttpServletRequest

    BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <AdapterType>
    AdapterType
    adaptTo(@NotNull Class<AdapterType> type)
    Adapts the adaptable to another type.
    @Nullable jakarta.servlet.http.Cookie
    Returns the named cookie from the HTTP request or null if no such cookie exists in the request.
    @Nullable jakarta.servlet.RequestDispatcher
    Returns a RequestDispatcher object that acts as a wrapper for the resource located at the given path.
    @Nullable jakarta.servlet.RequestDispatcher
    getRequestDispatcher(@NotNull Resource resource)
    @Nullable jakarta.servlet.RequestDispatcher
    Returns a RequestDispatcher object that acts as a wrapper for the resource located at the given resource.
    getRequestParameter(@NotNull String name)
    Returns the value of a request parameter as a RequestParameter, or null if the parameter does not exist.
    Returns the request parameters as instances of the RequestParameter interface in the order or the request where the query string parameters are first and the POST request parameters are second.
    Returns a Map of the parameters of this request.
    @Nullable RequestParameter[]
    Returns an array of RequestParameter objects containing all of the values the given request parameter has, or null if the parameter does not exist.
    Returns the RequestPathInfo pertaining to this request.
    Returns the RequestProgressTracker of this request.
    @NotNull Resource
    Returns the Resource object on whose behalf the servlet acts.
    @Nullable ResourceBundle
    getResourceBundle(String baseName, Locale locale)
    Returns the resource bundle of the given base name for the given locale.
    @Nullable ResourceBundle
    Returns the resource bundle for the given locale.
    Returns the ResourceResolver which resolved the resource of this request.
    @Nullable String
    Returns the framework preferred content type for the response.
    Gets a list of content types which the framework accepts for the response.
    static jakarta.servlet.http.HttpServletRequest
    toJakartaRequest(javax.servlet.http.HttpServletRequest request)
     
    static jakarta.servlet.ServletRequest
    toJakartaRequest(javax.servlet.ServletRequest request)
    Create a new wrapper
     

    Methods inherited from class org.apache.felix.http.jakartawrappers.HttpServletRequestWrapper

    authenticate, changeSessionId, getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getHttpServletMapping, getIntHeader, getMethod, getPart, getParts, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getTrailerFields, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isTrailerFieldsReady, isUserInRole, login, logout, newPushBuilder, upgrade

    Methods inherited from class org.apache.felix.http.jakartawrappers.ServletRequestWrapper

    getAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getProtocolRequestId, getReader, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getRequestId, getScheme, getServerName, getServerPort, getServletConnection, getServletContext, getTranslatedAttributeName, getWrapper, isAsyncStarted, isAsyncSupported, isSecure, removeAttribute, setAttribute, setCharacterEncoding, startAsync, startAsync

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface jakarta.servlet.http.HttpServletRequest

    authenticate, changeSessionId, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getHttpServletMapping, getIntHeader, getMethod, getPart, getParts, getPathInfo, getPathTranslated, getQueryString, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getTrailerFields, isRequestedSessionIdFromCookie, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isTrailerFieldsReady, isUserInRole, login, logout, newPushBuilder, upgrade

    Methods inherited from interface jakarta.servlet.ServletRequest

    getAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getProtocolRequestId, getReader, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getRequestId, getScheme, getServerName, getServerPort, getServletConnection, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, removeAttribute, setAttribute, setCharacterEncoding, setCharacterEncoding, startAsync, startAsync

    Methods inherited from interface org.apache.sling.api.SlingJakartaHttpServletRequest

    getAuthType, getRemoteUser, getUserPrincipal