Package fr.paris.lutece.test
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.
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_SCHEME, DEFAULT_SERVER_ADDR, DEFAULT_SERVER_NAME, DEFAULT_SERVER_PORTFields inherited from interface javax.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMokeHeader(String strHeaderName, String strValue) Deprecated.voidaddMokeParameter(String strParameterName, String strValue) Deprecated.voidaddMokeParameters(String strParameterName, String strValue) Deprecated.voidregisterAdminUser(fr.paris.lutece.portal.business.user.AdminUser user) Deprecated.voidregisterAdminUserWithRigth(fr.paris.lutece.portal.business.user.AdminUser user, String strRight) Deprecated.voidsetMokeCookies(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, getContentAsByteArray, getContentAsString, 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, removeHeader, 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, upgradeMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.servlet.http.HttpServletRequest
getHttpServletMapping, getTrailerFields, isTrailerFieldsReady, newPushBuilder
-
Constructor Details
-
MokeHttpServletRequest
public MokeHttpServletRequest()Deprecated.
-
-
Method Details
-
registerAdminUserWithRigth
@Deprecated public void registerAdminUserWithRigth(fr.paris.lutece.portal.business.user.AdminUser user, String strRight) Deprecated.Register an admin user with a given right- Parameters:
user- The userstrRight- The right
-
registerAdminUser
Deprecated.Register an admin user- Parameters:
user- The user
-
addMokeParameters
Deprecated.Initialize moke parameters- Parameters:
strParameterName- The namestrValue- The value
-
addMokeParameter
Deprecated.Initialize moke parameters- Parameters:
strParameterName- The namestrValue- The value
-
addMokeHeader
Deprecated.Initialize moke parameters- Parameters:
strHeaderName- The namestrValue- The value
-
setMokeCookies
Deprecated.Initialize moke cookies- Parameters:
cookies- Cookie
-
MockHttpServletRequestinstead