@NotThreadSafe @IsOffline public class OfflineHttpServletRequest extends MockHttpServletRequest
MockHttpServletRequest that throws
UnsupportedOperationException exceptions for server or path related
queries. So it is "offline" only :)DEFAULT_INVOKE_HTTP_LISTENER, DEFAULT_METHOD, DEFAULT_PROTOCOL, DEFAULT_REMOTE_ADDR, DEFAULT_REMOTE_HOST, DEFAULT_SCHEME, DEFAULT_SERVER_ADDR, DEFAULT_SERVER_NAME, DEFAULT_SERVER_PORT| Constructor and Description |
|---|
OfflineHttpServletRequest() |
OfflineHttpServletRequest(javax.servlet.ServletContext aSC,
boolean bInvokeHttpListeners) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAuthType() |
int |
getContentLength() |
String |
getContentType() |
String |
getMethod() |
String |
getPathInfo() |
String |
getPathTranslated() |
String |
getProtocol() |
String |
getQueryString() |
String |
getRemoteAddr() |
String |
getRemoteHost() |
int |
getRemotePort() |
String |
getRemoteUser() |
String |
getScheme() |
String |
getServerName() |
int |
getServerPort() |
String |
getServletPath() |
addHeader, addParameter, addParameter, addParameters, addPreferredLocale, addUserRole, authenticate, changeSessionId, checkActive, clearAttributes, close, getAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getCharacterEncodingObj, getCharacterEncodingObjOrDefault, getContentLengthLong, getContextPath, getCookies, getDateHeader, getDispatcherType, getHeader, getHeaderNames, getHeaders, getInputStream, getIntHeader, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getMethodEnum, getParameter, getParameterMap, getParameterNames, getParameterValues, getPart, getParts, getReader, getRealPath, getRequestDispatcher, getRequestedSessionId, getRequestURI, getRequestURL, getServletContext, getSession, getSession, getSessionID, getUserPrincipal, invalidate, isActive, isAsyncStarted, isAsyncSupported, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isSecure, isUserInRole, login, logout, removeAllParameters, removeAttribute, removeHeader, removeParameter, setAllPaths, setAttribute, setAuthType, setCharacterEncoding, setCharacterEncoding, setContent, setContentType, setContentType, setContextPath, setCookies, setLocalAddr, setLocalName, setLocalPort, setMethod, setParameter, setParameter, setParameters, setPathInfo, setProtocol, setQueryString, setRemoteAddr, setRemoteHost, setRemotePort, setRemoteUser, setRequestedSessionIdFromCookie, setRequestedSessionIdFromURL, setRequestedSessionIdValid, setRequestURI, setScheme, setSecure, setServerName, setServerPort, setServletPath, setSession, setSessionID, setUserPrincipal, startAsync, startAsync, upgradepublic OfflineHttpServletRequest()
public OfflineHttpServletRequest(@Nullable javax.servlet.ServletContext aSC, boolean bInvokeHttpListeners)
public String getScheme()
getScheme in interface javax.servlet.ServletRequestgetScheme in class MockHttpServletRequestpublic String getServerName()
getServerName in interface javax.servlet.ServletRequestgetServerName in class MockHttpServletRequestpublic String getProtocol()
getProtocol in interface javax.servlet.ServletRequestgetProtocol in class MockHttpServletRequestpublic int getServerPort()
getServerPort in interface javax.servlet.ServletRequestgetServerPort in class MockHttpServletRequestpublic String getMethod()
getMethod in interface javax.servlet.http.HttpServletRequestgetMethod in class MockHttpServletRequestpublic String getPathInfo()
getPathInfo in interface javax.servlet.http.HttpServletRequestgetPathInfo in class MockHttpServletRequestpublic String getPathTranslated()
getPathTranslated in interface javax.servlet.http.HttpServletRequestgetPathTranslated in class MockHttpServletRequestpublic String getQueryString()
getQueryString in interface javax.servlet.http.HttpServletRequestgetQueryString in class MockHttpServletRequestpublic String getRemoteHost()
getRemoteHost in interface javax.servlet.ServletRequestgetRemoteHost in class MockHttpServletRequestpublic String getRemoteAddr()
getRemoteAddr in interface javax.servlet.ServletRequestgetRemoteAddr in class MockHttpServletRequestpublic String getAuthType()
getAuthType in interface javax.servlet.http.HttpServletRequestgetAuthType in class MockHttpServletRequestpublic int getRemotePort()
getRemotePort in interface javax.servlet.ServletRequestgetRemotePort in class MockHttpServletRequestpublic String getRemoteUser()
getRemoteUser in interface javax.servlet.http.HttpServletRequestgetRemoteUser in class MockHttpServletRequestpublic String getContentType()
getContentType in interface javax.servlet.ServletRequestgetContentType in class MockHttpServletRequestpublic int getContentLength()
getContentLength in interface javax.servlet.ServletRequestgetContentLength in class MockHttpServletRequestpublic String getServletPath()
getServletPath in interface javax.servlet.http.HttpServletRequestgetServletPath in class MockHttpServletRequestCopyright © 2016–2019 Philip Helger. All rights reserved.