|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ideo.sweetdevria.mock.MockServletRequest
com.ideo.sweetdevria.mock.MockHttpServletRequest
public final class MockHttpServletRequest
Mock HttpServletRequest object used for "non web" context (exemple : the excel export in batch mode). This object implements only getter/setter methods for attributes.
| Field Summary |
|---|
| Fields inherited from class com.ideo.sweetdevria.mock.MockServletRequest |
|---|
LOCALE_KEY |
| Fields inherited from interface javax.servlet.http.HttpServletRequest |
|---|
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH |
| Constructor Summary | |
|---|---|
MockHttpServletRequest(MockHttpSession mockHttpSession)
Default constructor. |
|
| Method Summary | |
|---|---|
java.lang.String |
getAuthType()
Not implemented ! |
java.lang.String |
getContextPath()
Not implemented ! |
javax.servlet.http.Cookie[] |
getCookies()
Not implemented ! |
long |
getDateHeader(java.lang.String name)
Not implemented ! |
java.lang.String |
getHeader(java.lang.String name)
Not implemented ! |
java.util.Enumeration |
getHeaderNames()
Not implemented ! |
java.util.Enumeration |
getHeaders(java.lang.String name)
Not implemented ! |
int |
getIntHeader(java.lang.String name)
Not implemented ! |
java.lang.String |
getMethod()
Not implemented ! |
java.lang.String |
getPathInfo()
Not implemented ! |
java.lang.String |
getPathTranslated()
Not implemented ! |
java.lang.String |
getQueryString()
Not implemented ! |
java.lang.String |
getRemoteUser()
Not implemented ! |
java.lang.String |
getRequestedSessionId()
Not implemented ! |
java.lang.String |
getRequestURI()
Not implemented ! |
java.lang.StringBuffer |
getRequestURL()
Not implemented ! |
java.lang.String |
getServletPath()
Not implemented ! |
javax.servlet.http.HttpSession |
getSession()
Returns Mock Session. |
javax.servlet.http.HttpSession |
getSession(boolean create)
Returns Mock Session. |
java.security.Principal |
getUserPrincipal()
Not implemented ! |
boolean |
isRequestedSessionIdFromCookie()
Not implemented ! |
boolean |
isRequestedSessionIdFromUrl()
Not implemented ! |
boolean |
isRequestedSessionIdFromURL()
Not implemented ! |
boolean |
isRequestedSessionIdValid()
Not implemented ! |
boolean |
isUserInRole(java.lang.String role)
Not implemented ! |
| Methods inherited from class com.ideo.sweetdevria.mock.MockServletRequest |
|---|
getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding, setLocale, setSession |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.servlet.ServletRequest |
|---|
getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding |
| Constructor Detail |
|---|
public MockHttpServletRequest(MockHttpSession mockHttpSession)
mockHttpSession - Mock Http Session.| Method Detail |
|---|
public javax.servlet.http.HttpSession getSession(boolean create)
getSession in interface javax.servlet.http.HttpServletRequestcreate - not used.
public javax.servlet.http.HttpSession getSession()
getSession in interface javax.servlet.http.HttpServletRequestgetSession in class MockServletRequestpublic java.lang.String getAuthType()
getAuthType in interface javax.servlet.http.HttpServletRequestpublic java.lang.String getContextPath()
getContextPath in interface javax.servlet.http.HttpServletRequestpublic javax.servlet.http.Cookie[] getCookies()
getCookies in interface javax.servlet.http.HttpServletRequestpublic long getDateHeader(java.lang.String name)
getDateHeader in interface javax.servlet.http.HttpServletRequestpublic java.lang.String getHeader(java.lang.String name)
getHeader in interface javax.servlet.http.HttpServletRequestpublic java.util.Enumeration getHeaderNames()
getHeaderNames in interface javax.servlet.http.HttpServletRequestpublic java.util.Enumeration getHeaders(java.lang.String name)
getHeaders in interface javax.servlet.http.HttpServletRequestpublic int getIntHeader(java.lang.String name)
getIntHeader in interface javax.servlet.http.HttpServletRequestpublic java.lang.String getMethod()
getMethod in interface javax.servlet.http.HttpServletRequestpublic java.lang.String getPathInfo()
getPathInfo in interface javax.servlet.http.HttpServletRequestpublic java.lang.String getPathTranslated()
getPathTranslated in interface javax.servlet.http.HttpServletRequestpublic java.lang.String getQueryString()
getQueryString in interface javax.servlet.http.HttpServletRequestpublic java.lang.String getRemoteUser()
getRemoteUser in interface javax.servlet.http.HttpServletRequestpublic java.lang.String getRequestURI()
getRequestURI in interface javax.servlet.http.HttpServletRequestpublic java.lang.StringBuffer getRequestURL()
getRequestURL in interface javax.servlet.http.HttpServletRequestpublic java.lang.String getRequestedSessionId()
getRequestedSessionId in interface javax.servlet.http.HttpServletRequestpublic java.lang.String getServletPath()
getServletPath in interface javax.servlet.http.HttpServletRequestpublic java.security.Principal getUserPrincipal()
getUserPrincipal 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 boolean isRequestedSessionIdValid()
isRequestedSessionIdValid in interface javax.servlet.http.HttpServletRequestpublic boolean isUserInRole(java.lang.String role)
isUserInRole in interface javax.servlet.http.HttpServletRequest
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||