Class DummyHttpServletRequest
-
- All Implemented Interfaces:
-
jakarta.servlet.ServletRequest,jakarta.servlet.http.HttpServletRequest
public class DummyHttpServletRequest implements HttpServletRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classDummyHttpServletRequest.FakeHttpServletMapping
-
Field Summary
-
Constructor Summary
Constructors Constructor Description DummyHttpServletRequest()
-
Method Summary
-
Methods inherited from class jakarta.servlet.http.HttpServletRequest
getAuthType, getContextPath, getCookies, getHttpServletMapping, getMethod, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestURI, getRequestURL, getRequestedSessionId, getServletPath, getTrailerFields, getUserPrincipal, isTrailerFieldsReady, newPushBuilder -
Methods inherited from class jakarta.servlet.ServletRequest
getAsyncContext, getCharacterEncoding, getContentLength, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocalName, getLocalPort, getLocale, getParameterMap, getProtocol, getProtocolRequestId, getReader, getRemoteAddr, getRemoteHost, getRemotePort, getRequestId, getScheme, getServerName, getServerPort, getServletConnection, getServletContext, setCharacterEncoding -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getAuthType
String getAuthType()
-
setAuthType
void setAuthType(String authType)
-
getCookies
Array<Cookie> getCookies()
-
setCookies
void setCookies(Array<Cookie> cookies)
-
getPathInfo
String getPathInfo()
-
setPathInfo
void setPathInfo(String pathInfo)
-
getPathTranslated
String getPathTranslated()
-
setPathTranslated
void setPathTranslated(String pathTranslated)
-
getContextPath
String getContextPath()
-
setContextPath
void setContextPath(String contextPath)
-
getQueryString
String getQueryString()
-
setQueryString
void setQueryString(String queryString)
-
getRemoteUser
String getRemoteUser()
-
setRemoteUser
void setRemoteUser(String remoteUser)
-
getUserPrincipal
Principal getUserPrincipal()
-
setUserPrincipal
void setUserPrincipal(Principal userPrincipal)
-
getRequestedSessionId
String getRequestedSessionId()
-
setRequestedSessionId
void setRequestedSessionId(String requestedSessionId)
-
getRequestURI
String getRequestURI()
-
setRequestURI
void setRequestURI(String requestURI)
-
getRequestURL
StringBuffer getRequestURL()
-
setRequestURL
void setRequestURL(StringBuffer requestURL)
-
getServletPath
String getServletPath()
-
setServletPath
void setServletPath(String servletPath)
-
getSession
HttpSession getSession()
-
setSession
void setSession(HttpSession session)
-
getCharacterEncoding
String getCharacterEncoding()
-
setCharacterEncoding
void setCharacterEncoding(String characterEncoding)
-
getContentLength
int getContentLength()
-
setContentLength
void setContentLength(int contentLength)
-
getContentType
String getContentType()
-
setContentType
void setContentType(String contentType)
-
getInputStream
ServletInputStream getInputStream()
-
setInputStream
void setInputStream(ServletInputStream inputStream)
-
getProtocol
String getProtocol()
-
setProtocol
void setProtocol(String protocol)
-
getServerName
String getServerName()
-
setServerName
void setServerName(String serverName)
-
getServerPort
int getServerPort()
-
setServerPort
void setServerPort(int serverPort)
-
getReader
BufferedReader getReader()
-
setReader
void setReader(BufferedReader reader)
-
getRemoteAddr
String getRemoteAddr()
-
setRemoteAddr
void setRemoteAddr(String remoteAddr)
-
getRemoteHost
String getRemoteHost()
-
setRemoteHost
void setRemoteHost(String remoteHost)
-
getRequestDispatcher
RequestDispatcher getRequestDispatcher()
-
setRequestDispatcher
void setRequestDispatcher(RequestDispatcher requestDispatcher)
-
getRemotePort
int getRemotePort()
-
setRemotePort
void setRemotePort(int remotePort)
-
getLocalName
String getLocalName()
-
setLocalName
void setLocalName(String localName)
-
getLocalAddr
String getLocalAddr()
-
setLocalAddr
void setLocalAddr(String localAddr)
-
getLocalPort
int getLocalPort()
-
setLocalPort
void setLocalPort(int localPort)
-
getServletContext
ServletContext getServletContext()
-
setServletContext
void setServletContext(ServletContext servletContext)
-
getAsyncContext
AsyncContext getAsyncContext()
-
setAsyncContext
void setAsyncContext(AsyncContext asyncContext)
-
getDispatcherType
DispatcherType getDispatcherType()
-
setDispatcherType
void setDispatcherType(DispatcherType dispatcherType)
-
getRequestId
String getRequestId()
-
setRequestId
void setRequestId(String requestId)
-
getProtocolRequestId
String getProtocolRequestId()
-
setProtocolRequestId
void setProtocolRequestId(String protocolRequestId)
-
getServletConnection
ServletConnection getServletConnection()
-
setServletConnection
void setServletConnection(ServletConnection servletConnection)
-
getHttpServletMapping
DummyHttpServletRequest.FakeHttpServletMapping getHttpServletMapping()
-
setHttpServletMapping
void setHttpServletMapping(DummyHttpServletRequest.FakeHttpServletMapping httpServletMapping)
-
getAttributes
Map<String, Object> getAttributes()
-
getHeaders
MultiValueMap<String, String> getHeaders()
-
getParameterMap
Map<String, Array<String>> getParameterMap()
-
getDateHeader
long getDateHeader(String name)
-
getHeaders
Enumeration<String> getHeaders(String name)
-
getHeaderNames
Enumeration<String> getHeaderNames()
-
getIntHeader
int getIntHeader(String name)
-
isUserInRole
boolean isUserInRole(String role)
-
getSession
HttpSession getSession(boolean create)
-
changeSessionId
String changeSessionId()
-
authenticate
boolean authenticate(HttpServletResponse response)
-
logout
void logout()
-
getParts
Collection<Part> getParts()
-
getAttribute
Object getAttribute(String name)
-
getAttributeNames
Enumeration<String> getAttributeNames()
-
getContentLengthLong
long getContentLengthLong()
-
getParameter
String getParameter(String name)
-
getParameterNames
Enumeration<String> getParameterNames()
-
getParameterValues
Array<String> getParameterValues(String name)
-
setAttribute
void setAttribute(String name, Object o)
-
removeAttribute
void removeAttribute(String name)
-
getLocales
Enumeration<Locale> getLocales()
-
getRequestDispatcher
RequestDispatcher getRequestDispatcher(String path)
-
startAsync
AsyncContext startAsync()
-
startAsync
AsyncContext startAsync(ServletRequest servletRequest, ServletResponse servletResponse)
-
isRequestedSessionIdValid
boolean isRequestedSessionIdValid()
-
isRequestedSessionIdFromCookie
boolean isRequestedSessionIdFromCookie()
-
isRequestedSessionIdFromURL
boolean isRequestedSessionIdFromURL()
-
isSecure
boolean isSecure()
-
isAsyncStarted
boolean isAsyncStarted()
-
isAsyncSupported
boolean isAsyncSupported()
-
setRequestedSessionIdValid
void setRequestedSessionIdValid(boolean requestedSessionIdValid)
-
setRequestedSessionIdFromCookie
void setRequestedSessionIdFromCookie(boolean requestedSessionIdFromCookie)
-
setRequestedSessionIdFromURL
void setRequestedSessionIdFromURL(boolean requestedSessionIdFromURL)
-
setSecure
void setSecure(boolean secure)
-
setAsyncStarted
void setAsyncStarted(boolean asyncStarted)
-
setAsyncSupported
void setAsyncSupported(boolean asyncSupported)
-
-
-
-