Klasse MockSlingHttpServletRequest

java.lang.Object
org.apache.felix.http.javaxwrappers.ServletRequestWrapper
org.apache.felix.http.javaxwrappers.HttpServletRequestWrapper
org.apache.sling.api.wrappers.JakartaToJavaxRequestWrapper
org.apache.sling.servlethelpers.MockSlingHttpServletRequest
org.apache.sling.testing.mock.sling.servlet.MockSlingHttpServletRequest
Alle implementierten Schnittstellen:
javax.servlet.http.HttpServletRequest, javax.servlet.ServletRequest, org.apache.sling.api.adapter.Adaptable, org.apache.sling.api.SlingHttpServletRequest

@Deprecated(since="3.2.0") public class MockSlingHttpServletRequest extends org.apache.sling.servlethelpers.MockSlingHttpServletRequest
Veraltet.
Mock SlingHttpServletRequest implementation.
  • Feldübersicht

    Von Klasse geerbte Felder org.apache.sling.servlethelpers.MockSlingHttpServletRequest

    EMPTY_RESOURCE_BUNDLE

    Von Schnittstelle geerbte Felder javax.servlet.http.HttpServletRequest

    BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
    MockSlingHttpServletRequest(@NotNull org.apache.sling.api.resource.ResourceResolver resourceResolver, @NotNull org.osgi.framework.BundleContext bundleContext)
    Veraltet.
     
    Veraltet.
     
    MockSlingHttpServletRequest(@NotNull org.osgi.framework.BundleContext bundleContext)
    Veraltet.
    Instantiate with default resource resolver
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    protected @NotNull MockHttpSession
    Veraltet.
     
    protected @NotNull MockRequestPathInfo
    Veraltet.
     

    Von Klasse geerbte Methoden org.apache.sling.servlethelpers.MockSlingHttpServletRequest

    adaptTo, addCookie, addDateHeader, addHeader, addIntHeader, addPart, addRequestParameter, addRequestParameter, addRequestParameter, authenticate, getRequestDispatcher, getRequestDispatcher, getRequestDispatcher, getRequestDispatcher, getRequestPathInfo, getSession, getSession, setAuthType, setContent, setContentType, setContextPath, setDateHeader, setHeader, setIntHeader, setLocale, setMethod, setParameterMap, setPathInfo, setQueryString, setRemoteAddr, setRemoteHost, setRemotePort, setRemoteUser, setRequestDispatcherFactory, setResource, setResponseContentType, setScheme, setServerName, setServerPort, setServletPath

    Von Klasse geerbte Methoden org.apache.sling.api.wrappers.JakartaToJavaxRequestWrapper

    getCookie, getRequestParameter, getRequestParameterList, getRequestParameterMap, getRequestParameters, getRequestProgressTracker, getResource, getResourceBundle, getResourceBundle, getResourceResolver, getResponseContentType, getResponseContentTypes, toJavaxRequest, toJavaxRequest, toJavaxRequest

    Von Klasse geerbte Methoden org.apache.felix.http.javaxwrappers.HttpServletRequestWrapper

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

    Von Klasse geerbte Methoden org.apache.felix.http.javaxwrappers.ServletRequestWrapper

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

    Von Klasse geerbte Methoden java.lang.Object

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

    Von Schnittstelle geerbte Methoden javax.servlet.http.HttpServletRequest

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

    Von Schnittstelle geerbte Methoden javax.servlet.ServletRequest

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

    Von Schnittstelle geerbte Methoden org.apache.sling.api.SlingHttpServletRequest

    getAuthType, getRemoteUser, getUserPrincipal
  • Konstruktordetails

    • MockSlingHttpServletRequest

      public MockSlingHttpServletRequest(@NotNull @NotNull org.osgi.framework.BundleContext bundleContext)
      Veraltet.
      Instantiate with default resource resolver
      Parameter:
      bundleContext - Bundle context
    • MockSlingHttpServletRequest

      public MockSlingHttpServletRequest(@NotNull @NotNull org.apache.sling.api.resource.ResourceResolver resourceResolver, @NotNull @NotNull org.osgi.framework.BundleContext bundleContext)
      Veraltet.
      Parameter:
      resourceResolver - Resource resolver
      bundleContext - Bundle context
    • MockSlingHttpServletRequest

      public MockSlingHttpServletRequest(@NotNull @NotNull MockSlingJakartaHttpServletRequest jakartaRequest)
      Veraltet.
      Parameter:
      jakartaRequest - the jakarta request to wrap
  • Methodendetails

    • newMockRequestPathInfo

      @NotNull protected @NotNull MockRequestPathInfo newMockRequestPathInfo()
      Veraltet.
      Setzt außer Kraft:
      newMockRequestPathInfo in Klasse org.apache.sling.servlethelpers.MockSlingHttpServletRequest
    • newMockHttpSession

      @NotNull protected @NotNull MockHttpSession newMockHttpSession()
      Veraltet.
      Setzt außer Kraft:
      newMockHttpSession in Klasse org.apache.sling.servlethelpers.MockSlingHttpServletRequest