Package org.javlo.test.servlet
Class TestRequest
- java.lang.Object
- 
- org.javlo.test.servlet.TestRequest
 
- 
- All Implemented Interfaces:
- javax.servlet.http.HttpServletRequest,- javax.servlet.ServletRequest
 
 public class TestRequest extends Object implements javax.servlet.http.HttpServletRequest 
- 
- 
Constructor SummaryConstructors Constructor Description TestRequest(javax.servlet.http.HttpSession inSession, String inURL)
 - 
Method Summary
 
- 
- 
- 
Constructor Detail- 
TestRequestpublic TestRequest(javax.servlet.http.HttpSession inSession, String inURL) throws MalformedURLException- Throws:
- MalformedURLException
 
 
- 
 - 
Method Detail- 
getAttributepublic Object getAttribute(String key) - Specified by:
- getAttributein interface- javax.servlet.ServletRequest
 
 - 
getAttributeNamespublic Enumeration getAttributeNames() - Specified by:
- getAttributeNamesin interface- javax.servlet.ServletRequest
 
 - 
getCharacterEncodingpublic String getCharacterEncoding() - Specified by:
- getCharacterEncodingin interface- javax.servlet.ServletRequest
 
 - 
getContentLengthpublic int getContentLength() - Specified by:
- getContentLengthin interface- javax.servlet.ServletRequest
 
 - 
getContentTypepublic String getContentType() - Specified by:
- getContentTypein interface- javax.servlet.ServletRequest
 
 - 
getInputStreampublic javax.servlet.ServletInputStream getInputStream() throws IOException- Specified by:
- getInputStreamin interface- javax.servlet.ServletRequest
- Throws:
- IOException
 
 - 
getLocalAddrpublic String getLocalAddr() - Specified by:
- getLocalAddrin interface- javax.servlet.ServletRequest
 
 - 
getLocalNamepublic String getLocalName() - Specified by:
- getLocalNamein interface- javax.servlet.ServletRequest
 
 - 
getLocalPortpublic int getLocalPort() - Specified by:
- getLocalPortin interface- javax.servlet.ServletRequest
 
 - 
getLocalepublic Locale getLocale() - Specified by:
- getLocalein interface- javax.servlet.ServletRequest
 
 - 
getLocalespublic Enumeration getLocales() - Specified by:
- getLocalesin interface- javax.servlet.ServletRequest
 
 - 
getParameterpublic String getParameter(String key) - Specified by:
- getParameterin interface- javax.servlet.ServletRequest
 
 - 
getParameterMappublic Map getParameterMap() - Specified by:
- getParameterMapin interface- javax.servlet.ServletRequest
 
 - 
getParameterNamespublic Enumeration getParameterNames() - Specified by:
- getParameterNamesin interface- javax.servlet.ServletRequest
 
 - 
getParameterValuespublic String[] getParameterValues(String arg0) - Specified by:
- getParameterValuesin interface- javax.servlet.ServletRequest
 
 - 
getProtocolpublic String getProtocol() - Specified by:
- getProtocolin interface- javax.servlet.ServletRequest
 
 - 
getReaderpublic BufferedReader getReader() throws IOException - Specified by:
- getReaderin interface- javax.servlet.ServletRequest
- Throws:
- IOException
 
 - 
getRealPathpublic String getRealPath(String arg0) - Specified by:
- getRealPathin interface- javax.servlet.ServletRequest
 
 - 
getRemoteAddrpublic String getRemoteAddr() - Specified by:
- getRemoteAddrin interface- javax.servlet.ServletRequest
 
 - 
getRemoteHostpublic String getRemoteHost() - Specified by:
- getRemoteHostin interface- javax.servlet.ServletRequest
 
 - 
getRemotePortpublic int getRemotePort() - Specified by:
- getRemotePortin interface- javax.servlet.ServletRequest
 
 - 
getRequestDispatcherpublic javax.servlet.RequestDispatcher getRequestDispatcher(String arg0) - Specified by:
- getRequestDispatcherin interface- javax.servlet.ServletRequest
 
 - 
getSchemepublic String getScheme() - Specified by:
- getSchemein interface- javax.servlet.ServletRequest
 
 - 
getServerNamepublic String getServerName() - Specified by:
- getServerNamein interface- javax.servlet.ServletRequest
 
 - 
getServerPortpublic int getServerPort() - Specified by:
- getServerPortin interface- javax.servlet.ServletRequest
 
 - 
isSecurepublic boolean isSecure() - Specified by:
- isSecurein interface- javax.servlet.ServletRequest
 
 - 
removeAttributepublic void removeAttribute(String key) - Specified by:
- removeAttributein interface- javax.servlet.ServletRequest
 
 - 
setAttributepublic void setAttribute(String key, Object value) - Specified by:
- setAttributein interface- javax.servlet.ServletRequest
 
 - 
setCharacterEncodingpublic void setCharacterEncoding(String arg0) throws UnsupportedEncodingException - Specified by:
- setCharacterEncodingin interface- javax.servlet.ServletRequest
- Throws:
- UnsupportedEncodingException
 
 - 
getAuthTypepublic String getAuthType() - Specified by:
- getAuthTypein interface- javax.servlet.http.HttpServletRequest
 
 - 
getContextPathpublic String getContextPath() - Specified by:
- getContextPathin interface- javax.servlet.http.HttpServletRequest
 
 - 
getCookiespublic javax.servlet.http.Cookie[] getCookies() - Specified by:
- getCookiesin interface- javax.servlet.http.HttpServletRequest
 
 - 
getDateHeaderpublic long getDateHeader(String arg0) - Specified by:
- getDateHeaderin interface- javax.servlet.http.HttpServletRequest
 
 - 
getHeaderpublic String getHeader(String arg0) - Specified by:
- getHeaderin interface- javax.servlet.http.HttpServletRequest
 
 - 
getHeaderNamespublic Enumeration getHeaderNames() - Specified by:
- getHeaderNamesin interface- javax.servlet.http.HttpServletRequest
 
 - 
getHeaderspublic Enumeration getHeaders(String arg0) - Specified by:
- getHeadersin interface- javax.servlet.http.HttpServletRequest
 
 - 
getIntHeaderpublic int getIntHeader(String arg0) - Specified by:
- getIntHeaderin interface- javax.servlet.http.HttpServletRequest
 
 - 
getMethodpublic String getMethod() - Specified by:
- getMethodin interface- javax.servlet.http.HttpServletRequest
 
 - 
getPathInfopublic String getPathInfo() - Specified by:
- getPathInfoin interface- javax.servlet.http.HttpServletRequest
 
 - 
getPathTranslatedpublic String getPathTranslated() - Specified by:
- getPathTranslatedin interface- javax.servlet.http.HttpServletRequest
 
 - 
getQueryStringpublic String getQueryString() - Specified by:
- getQueryStringin interface- javax.servlet.http.HttpServletRequest
 
 - 
getRemoteUserpublic String getRemoteUser() - Specified by:
- getRemoteUserin interface- javax.servlet.http.HttpServletRequest
 
 - 
getRequestURIpublic String getRequestURI() - Specified by:
- getRequestURIin interface- javax.servlet.http.HttpServletRequest
 
 - 
getRequestURLpublic StringBuffer getRequestURL() - Specified by:
- getRequestURLin interface- javax.servlet.http.HttpServletRequest
 
 - 
getRequestedSessionIdpublic String getRequestedSessionId() - Specified by:
- getRequestedSessionIdin interface- javax.servlet.http.HttpServletRequest
 
 - 
getServletPathpublic String getServletPath() - Specified by:
- getServletPathin interface- javax.servlet.http.HttpServletRequest
 
 - 
getSessionpublic javax.servlet.http.HttpSession getSession() - Specified by:
- getSessionin interface- javax.servlet.http.HttpServletRequest
 
 - 
getSessionpublic javax.servlet.http.HttpSession getSession(boolean arg0) - Specified by:
- getSessionin interface- javax.servlet.http.HttpServletRequest
 
 - 
getUserPrincipalpublic Principal getUserPrincipal() - Specified by:
- getUserPrincipalin interface- javax.servlet.http.HttpServletRequest
 
 - 
isRequestedSessionIdFromCookiepublic boolean isRequestedSessionIdFromCookie() - Specified by:
- isRequestedSessionIdFromCookiein interface- javax.servlet.http.HttpServletRequest
 
 - 
isRequestedSessionIdFromURLpublic boolean isRequestedSessionIdFromURL() - Specified by:
- isRequestedSessionIdFromURLin interface- javax.servlet.http.HttpServletRequest
 
 - 
isRequestedSessionIdFromUrlpublic boolean isRequestedSessionIdFromUrl() - Specified by:
- isRequestedSessionIdFromUrlin interface- javax.servlet.http.HttpServletRequest
 
 - 
isRequestedSessionIdValidpublic boolean isRequestedSessionIdValid() - Specified by:
- isRequestedSessionIdValidin interface- javax.servlet.http.HttpServletRequest
 
 - 
isUserInRolepublic boolean isUserInRole(String arg0) - Specified by:
- isUserInRolein interface- javax.servlet.http.HttpServletRequest
 
 - 
setContextPathpublic void setContextPath(String contextPath) 
 - 
getContentLengthLongpublic long getContentLengthLong() - Specified by:
- getContentLengthLongin interface- javax.servlet.ServletRequest
 
 - 
getServletContextpublic javax.servlet.ServletContext getServletContext() - Specified by:
- getServletContextin interface- javax.servlet.ServletRequest
 
 - 
startAsyncpublic javax.servlet.AsyncContext startAsync() throws IllegalStateException- Specified by:
- startAsyncin interface- javax.servlet.ServletRequest
- Throws:
- IllegalStateException
 
 - 
startAsyncpublic javax.servlet.AsyncContext startAsync(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse) throws IllegalStateException- Specified by:
- startAsyncin interface- javax.servlet.ServletRequest
- Throws:
- IllegalStateException
 
 - 
isAsyncStartedpublic boolean isAsyncStarted() - Specified by:
- isAsyncStartedin interface- javax.servlet.ServletRequest
 
 - 
isAsyncSupportedpublic boolean isAsyncSupported() - Specified by:
- isAsyncSupportedin interface- javax.servlet.ServletRequest
 
 - 
getAsyncContextpublic javax.servlet.AsyncContext getAsyncContext() - Specified by:
- getAsyncContextin interface- javax.servlet.ServletRequest
 
 - 
getDispatcherTypepublic javax.servlet.DispatcherType getDispatcherType() - Specified by:
- getDispatcherTypein interface- javax.servlet.ServletRequest
 
 - 
changeSessionIdpublic String changeSessionId() - Specified by:
- changeSessionIdin interface- javax.servlet.http.HttpServletRequest
 
 - 
authenticatepublic boolean authenticate(javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException- Specified by:
- authenticatein interface- javax.servlet.http.HttpServletRequest
- Throws:
- IOException
- javax.servlet.ServletException
 
 - 
loginpublic void login(String username, String password) throws javax.servlet.ServletException - Specified by:
- loginin interface- javax.servlet.http.HttpServletRequest
- Throws:
- javax.servlet.ServletException
 
 - 
logoutpublic void logout() throws javax.servlet.ServletException- Specified by:
- logoutin interface- javax.servlet.http.HttpServletRequest
- Throws:
- javax.servlet.ServletException
 
 - 
getPartspublic Collection<javax.servlet.http.Part> getParts() throws IOException, javax.servlet.ServletException - Specified by:
- getPartsin interface- javax.servlet.http.HttpServletRequest
- Throws:
- IOException
- javax.servlet.ServletException
 
 - 
getPartpublic javax.servlet.http.Part getPart(String name) throws IOException, javax.servlet.ServletException - Specified by:
- getPartin interface- javax.servlet.http.HttpServletRequest
- Throws:
- IOException
- javax.servlet.ServletException
 
 - 
upgradepublic <T extends javax.servlet.http.HttpUpgradeHandler> T upgrade(Class<T> handlerClass) throws IOException, javax.servlet.ServletException - Specified by:
- upgradein interface- javax.servlet.http.HttpServletRequest
- Throws:
- IOException
- javax.servlet.ServletException
 
 
- 
 
-