-
- All Implemented Interfaces:
-
javax.servlet.ServletRequest,javax.servlet.http.HttpServletRequest,org.organicdesign.indented.IndentedStringable
public final class FakeHttpServletRequest implements HttpServletRequest, IndentedStringableThis mocks an HttpServletRequest - EXPERIMENTAL
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classFakeHttpServletRequest.Companion
-
Method Summary
-
Methods inherited from class javax.servlet.ServletRequest
equals, hashCode -
Methods inherited from class org.organicdesign.testUtils.http.FakeHttpServletRequest
getHttpServletMapping, getTrailerFields, isTrailerFieldsReady, newPushBuilder -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
indentedStr
String indentedStr(Integer indent)
-
getRequestURL
StringBuffer getRequestURL()
-
getPathInfo
String getPathInfo()
-
getRequestURI
String getRequestURI()
-
getServletPath
String getServletPath()
-
getRemoteAddr
String getRemoteAddr()
-
getCharacterEncoding
String getCharacterEncoding()
-
setCharacterEncoding
Unit setCharacterEncoding(String s)
-
getLocales
Enumeration<Locale> getLocales()
-
getRequestedSessionId
String getRequestedSessionId()
-
getInputStream
ServletInputStream getInputStream()
-
getContentLength
Integer getContentLength()
-
getContentLengthLong
Long getContentLengthLong()
-
getAttribute
Object getAttribute(String s)
-
getAttributeNames
Enumeration<String> getAttributeNames()
-
setAttribute
Unit setAttribute(String s, Object o)
-
removeAttribute
Unit removeAttribute(String s)
-
getParameterNames
Enumeration<String> getParameterNames()
-
getParameterValues
Array<String> getParameterValues(String s)
-
getParameter
String getParameter(String s)
-
getParameterMap
Map<String, Array<String>> getParameterMap()
-
getQueryString
String getQueryString()
-
getHeaders
Enumeration<String> getHeaders(String s)
-
getHeaderNames
Enumeration<String> getHeaderNames()
-
getIntHeader
Integer getIntHeader(String s)
-
getDateHeader
Long getDateHeader(String p0)
-
getContentType
String getContentType()
-
getCookies
Array<Cookie> getCookies()
-
getAuthType
String getAuthType()
-
getPathTranslated
String getPathTranslated()
-
getContextPath
String getContextPath()
-
getRemoteUser
String getRemoteUser()
-
isUserInRole
Boolean isUserInRole(String s)
-
getUserPrincipal
Principal getUserPrincipal()
-
getSession
HttpSession getSession(Boolean b)
-
getSession
HttpSession getSession()
-
changeSessionId
String changeSessionId()
-
isRequestedSessionIdValid
Boolean isRequestedSessionIdValid()
-
isRequestedSessionIdFromCookie
Boolean isRequestedSessionIdFromCookie()
-
isRequestedSessionIdFromURL
Boolean isRequestedSessionIdFromURL()
-
isRequestedSessionIdFromUrl
@Deprecated(message = "") Boolean isRequestedSessionIdFromUrl()
-
authenticate
Boolean authenticate(HttpServletResponse httpServletResponse)
-
getParts
Collection<Part> getParts()
-
getProtocol
String getProtocol()
-
getServerName
String getServerName()
-
getServerPort
Integer getServerPort()
-
getReader
BufferedReader getReader()
-
getRemoteHost
String getRemoteHost()
-
getRequestDispatcher
RequestDispatcher getRequestDispatcher(String s)
-
getRealPath
@Deprecated(message = "") String getRealPath(String s)
-
getRemotePort
Integer getRemotePort()
-
getLocalName
String getLocalName()
-
getLocalAddr
String getLocalAddr()
-
getLocalPort
Integer getLocalPort()
-
getServletContext
ServletContext getServletContext()
-
startAsync
AsyncContext startAsync()
-
startAsync
AsyncContext startAsync(ServletRequest servletRequest, ServletResponse servletResponse)
-
isAsyncStarted
Boolean isAsyncStarted()
-
isAsyncSupported
Boolean isAsyncSupported()
-
getAsyncContext
AsyncContext getAsyncContext()
-
getDispatcherType
DispatcherType getDispatcherType()
-
-
-
-