Class MokeHttpServletRequest

java.lang.Object
org.springframework.mock.web.MockHttpServletRequest
fr.paris.lutece.test.MokeHttpServletRequest
All Implemented Interfaces:
javax.servlet.http.HttpServletRequest, javax.servlet.ServletRequest

@Deprecated public class MokeHttpServletRequest extends org.springframework.mock.web.MockHttpServletRequest
Deprecated.
Use MockHttpServletRequest instead
The Class is a mock object to simulate a HttpServletRequest
  • Field Summary

    Fields inherited from class org.springframework.mock.web.MockHttpServletRequest

    DEFAULT_PROTOCOL, DEFAULT_REMOTE_ADDR, DEFAULT_REMOTE_HOST, DEFAULT_SERVER_ADDR, DEFAULT_SERVER_NAME, DEFAULT_SERVER_PORT

    Fields inherited from interface javax.servlet.http.HttpServletRequest

    BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addMokeHeader(String strHeaderName, String strValue)
    Deprecated.
    void
    addMokeParameter(String strParameterName, String strValue)
    Deprecated.
    void
    addMokeParameters(String strParameterName, String strValue)
    Deprecated.
    void
    registerAdminUser(fr.paris.lutece.portal.business.user.AdminUser user)
    void
    registerAdminUserWithRigth(fr.paris.lutece.portal.business.user.AdminUser user, String strRight)
    void
    setMokeCookies(javax.servlet.http.Cookie[] cookies)
    Deprecated.

    Methods inherited from class org.springframework.mock.web.MockHttpServletRequest

    addHeader, addParameter, addParameter, addParameters, addPart, addPreferredLocale, addUserRole, authenticate, changeSessionId, clearAttributes, close, getAsyncContext, getAttribute, getAttributeNames, getAuthType, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getContextPath, getCookies, getDateHeader, getDispatcherType, getHeader, getHeaderNames, getHeaders, getInputStream, getIntHeader, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getMethod, getParameter, getParameterMap, getParameterNames, getParameterValues, getPart, getParts, getPathInfo, getPathTranslated, getProtocol, getQueryString, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRemoteUser, getRequestDispatcher, getRequestedSessionId, getRequestURI, getRequestURL, getScheme, getServerName, getServerPort, getServletContext, getServletPath, getSession, getSession, getUserPrincipal, invalidate, isActive, isAsyncStarted, isAsyncSupported, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isSecure, isUserInRole, login, logout, removeAllParameters, removeAttribute, removeParameter, setAsyncContext, setAsyncStarted, setAsyncSupported, setAttribute, setAuthType, setCharacterEncoding, setContent, setContentType, setContextPath, setCookies, setDispatcherType, setLocalAddr, setLocalName, setLocalPort, setMethod, setParameter, setParameter, setParameters, setPathInfo, setPreferredLocales, setProtocol, setQueryString, setRemoteAddr, setRemoteHost, setRemotePort, setRemoteUser, setRequestedSessionId, setRequestedSessionIdFromCookie, setRequestedSessionIdFromURL, setRequestedSessionIdValid, setRequestURI, setScheme, setSecure, setServerName, setServerPort, setServletPath, setSession, setUserPrincipal, startAsync, startAsync

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface javax.servlet.http.HttpServletRequest

    getHttpServletMapping, getTrailerFields, isTrailerFieldsReady, newPushBuilder, upgrade
  • Constructor Details

    • MokeHttpServletRequest

      public MokeHttpServletRequest()
      Deprecated.
  • Method Details

    • registerAdminUserWithRigth

      @Deprecated public void registerAdminUserWithRigth(fr.paris.lutece.portal.business.user.AdminUser user, String strRight)
      Register an admin user with a given right
      Parameters:
      user - The user
      strRight - The right
    • registerAdminUser

      @Deprecated public void registerAdminUser(fr.paris.lutece.portal.business.user.AdminUser user)
      Register an admin user
      Parameters:
      user - The user
    • addMokeParameters

      @Deprecated public void addMokeParameters(String strParameterName, String strValue)
      Deprecated.
      Initialize moke parameters
      Parameters:
      strParameterName - The name
      strValue - The value
    • addMokeParameter

      @Deprecated public void addMokeParameter(String strParameterName, String strValue)
      Deprecated.
      Initialize moke parameters
      Parameters:
      strParameterName - The name
      strValue - The value
    • addMokeHeader

      @Deprecated public void addMokeHeader(String strHeaderName, String strValue)
      Deprecated.
      Initialize moke parameters
      Parameters:
      strHeaderName - The name
      strValue - The value
    • setMokeCookies

      @Deprecated public void setMokeCookies(javax.servlet.http.Cookie[] cookies)
      Deprecated.
      Initialize moke cookies
      Parameters:
      cookies - Cookie