public static final class ServletFakeArtifactSet.FakeServletHttpRequest extends Object implements javax.servlet.http.HttpServletRequest
| Constructor and Description |
|---|
FakeServletHttpRequest(String requestURL,
String servletPath) |
public String getAuthType()
getAuthType in interface javax.servlet.http.HttpServletRequestpublic javax.servlet.http.Cookie[] getCookies()
getCookies in interface javax.servlet.http.HttpServletRequestpublic long getDateHeader(String string)
getDateHeader in interface javax.servlet.http.HttpServletRequestpublic String getHeader(String string)
getHeader in interface javax.servlet.http.HttpServletRequestpublic Enumeration<String> getHeaders(String string)
public Enumeration<String> getHeaderNames()
getHeaderNames in interface javax.servlet.http.HttpServletRequestpublic int getIntHeader(String string)
getIntHeader in interface javax.servlet.http.HttpServletRequestpublic String getMethod()
getMethod in interface javax.servlet.http.HttpServletRequestpublic String getPathInfo()
getPathInfo in interface javax.servlet.http.HttpServletRequestpublic String getPathTranslated()
getPathTranslated in interface javax.servlet.http.HttpServletRequestpublic String getContextPath()
public String getQueryString()
getQueryString in interface javax.servlet.http.HttpServletRequestpublic String getRemoteUser()
getRemoteUser in interface javax.servlet.http.HttpServletRequestpublic boolean isUserInRole(String string)
public Principal getUserPrincipal()
public String getRequestedSessionId()
getRequestedSessionId in interface javax.servlet.http.HttpServletRequestpublic String getRequestURI()
getRequestURI in interface javax.servlet.http.HttpServletRequestpublic StringBuffer getRequestURL()
public String getServletPath()
getServletPath in interface javax.servlet.http.HttpServletRequestpublic javax.servlet.http.HttpSession getSession(boolean b)
getSession in interface javax.servlet.http.HttpServletRequestpublic javax.servlet.http.HttpSession getSession()
getSession in interface javax.servlet.http.HttpServletRequestpublic String changeSessionId()
public boolean isRequestedSessionIdValid()
isRequestedSessionIdValid in interface javax.servlet.http.HttpServletRequestpublic boolean isRequestedSessionIdFromCookie()
isRequestedSessionIdFromCookie in interface javax.servlet.http.HttpServletRequestpublic boolean isRequestedSessionIdFromURL()
isRequestedSessionIdFromURL in interface javax.servlet.http.HttpServletRequestpublic boolean isRequestedSessionIdFromUrl()
isRequestedSessionIdFromUrl in interface javax.servlet.http.HttpServletRequestpublic Object getAttribute(String string)
getAttribute in interface javax.servlet.ServletRequestpublic Enumeration getAttributeNames()
getAttributeNames in interface javax.servlet.ServletRequestpublic String getCharacterEncoding()
getCharacterEncoding in interface javax.servlet.ServletRequestpublic void setCharacterEncoding(String string) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic int getContentLength()
getContentLength in interface javax.servlet.ServletRequestpublic long getContentLengthLong()
public String getContentType()
getContentType in interface javax.servlet.ServletRequestpublic javax.servlet.ServletInputStream getInputStream()
throws IOException
getInputStream in interface javax.servlet.ServletRequestIOExceptionpublic String getParameter(String string)
getParameter in interface javax.servlet.ServletRequestpublic Enumeration getParameterNames()
getParameterNames in interface javax.servlet.ServletRequestpublic String[] getParameterValues(String string)
getParameterValues in interface javax.servlet.ServletRequestpublic Map getParameterMap()
public String getProtocol()
getProtocol in interface javax.servlet.ServletRequestpublic String getScheme()
getScheme in interface javax.servlet.ServletRequestpublic String getServerName()
getServerName in interface javax.servlet.ServletRequestpublic int getServerPort()
getServerPort in interface javax.servlet.ServletRequestpublic BufferedReader getReader() throws IOException
getReader in interface javax.servlet.ServletRequestIOExceptionpublic String getRemoteAddr()
getRemoteAddr in interface javax.servlet.ServletRequestpublic String getRemoteHost()
getRemoteHost in interface javax.servlet.ServletRequestpublic void setAttribute(String string, Object object)
setAttribute in interface javax.servlet.ServletRequestpublic void removeAttribute(String string)
public Locale getLocale()
public Enumeration getLocales()
public boolean isSecure()
public javax.servlet.RequestDispatcher getRequestDispatcher(String string)
public String getRealPath(String string)
getRealPath in interface javax.servlet.ServletRequestpublic int getRemotePort()
public String getLocalName()
public String getLocalAddr()
public int getLocalPort()
public javax.servlet.http.Part getPart(String s)
public Collection<javax.servlet.http.Part> getParts()
public void logout()
public <T extends javax.servlet.http.HttpUpgradeHandler> T upgrade(Class<T> handlerClass)
public boolean authenticate(javax.servlet.http.HttpServletResponse response)
public javax.servlet.DispatcherType getDispatcherType()
public long getAsyncTimeout()
public void setAsyncTimeout(long timeout)
public void addAsyncListener(javax.servlet.AsyncListener listener)
public void addAsyncListener(javax.servlet.AsyncListener listener,
javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response)
public javax.servlet.AsyncContext getAsyncContext()
public boolean isAsyncSupported()
public boolean isAsyncStarted()
public javax.servlet.AsyncContext startAsync()
public javax.servlet.AsyncContext startAsync(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response)
public javax.servlet.ServletContext getServletContext()
Copyright © 2017. All rights reserved.