类 HtmlUnitRequestBuilder.HtmlUnitMockHttpServletRequest
java.lang.Object
cn.taketoday.mock.web.MockHttpServletRequest
cn.taketoday.test.web.servlet.htmlunit.HtmlUnitRequestBuilder.HtmlUnitMockHttpServletRequest
- 所有已实现的接口:
jakarta.servlet.http.HttpServletRequest,jakarta.servlet.ServletRequest
private final class HtmlUnitRequestBuilder.HtmlUnitMockHttpServletRequest
extends MockHttpServletRequest
An extension to
MockHttpServletRequest that ensures that when a
new HttpSession is created, it is added to the managed sessions.-
字段概要
从类继承的字段 cn.taketoday.mock.web.MockHttpServletRequest
DEFAULT_PROTOCOL, DEFAULT_REMOTE_ADDR, DEFAULT_REMOTE_HOST, DEFAULT_SCHEME, DEFAULT_SERVER_ADDR, DEFAULT_SERVER_NAME, DEFAULT_SERVER_PORT从接口继承的字段 jakarta.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH -
构造器概要
构造器构造器说明HtmlUnitMockHttpServletRequest(jakarta.servlet.ServletContext servletContext, String method, String requestURI) -
方法概要
从类继承的方法 cn.taketoday.mock.web.MockHttpServletRequest
addHeader, addParameter, addParameter, addParameters, addPart, addPreferredLocale, addUserRole, authenticate, changeSessionId, checkActive, clearAttributes, close, getAsyncContext, getAttribute, getAttributeNames, getAuthType, getCharacterEncoding, getContentAsByteArray, getContentAsString, getContentLength, getContentLengthLong, getContentType, getContextPath, getCookies, getDateHeader, getDispatcherType, getHeader, getHeaderNames, getHeaders, getHttpServletMapping, getInputStream, getIntHeader, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getMethod, getParameter, getParameterMap, getParameterNames, getParameterValues, getPart, getParts, getPathInfo, getPathTranslated, getProtocol, getProtocolRequestId, getQueryString, getReader, getRemoteAddr, getRemoteHost, getRemotePort, getRemoteUser, getRequestDispatcher, getRequestedSessionId, getRequestId, getRequestURI, getRequestURL, getScheme, getServerName, getServerPort, getServletConnection, getServletContext, getServletPath, getSession, getUserPrincipal, invalidate, isActive, isAsyncStarted, isAsyncSupported, isRequestedSessionIdFromCookie, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isSecure, isUserInRole, login, logout, removeAllParameters, removeAttribute, removeHeader, removeParameter, setAsyncContext, setAsyncStarted, setAsyncSupported, setAttribute, setAuthType, setCharacterEncoding, setContent, setContentType, setContextPath, setCookies, setDispatcherType, setHttpServletMapping, 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, upgrade从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 jakarta.servlet.http.HttpServletRequest
getTrailerFields, isTrailerFieldsReady, newPushBuilder
-
构造器详细资料
-
HtmlUnitMockHttpServletRequest
-
-
方法详细资料
-
getSession
public jakarta.servlet.http.HttpSession getSession(boolean create) - 指定者:
getSession在接口中jakarta.servlet.http.HttpServletRequest- 覆盖:
getSession在类中MockHttpServletRequest
-