org.codehaus.groovy.grails.plugins.testing
Class GrailsMockHttpServletRequest
java.lang.Object
org.springframework.mock.web.MockHttpServletRequest
org.codehaus.groovy.grails.plugins.testing.GrailsMockHttpServletRequest
- All Implemented Interfaces:
- groovy.lang.GroovyObject, HttpServletRequest, ServletRequest
public class GrailsMockHttpServletRequest
- extends MockHttpServletRequest
- implements groovy.lang.GroovyObject
Methods inherited from class org.springframework.mock.web.MockHttpServletRequest |
addHeader, addParameter, addParameter, addParameters, addPreferredLocale, addUserRole, checkActive, clearAttributes, close, getAttribute, getAttributeNames, getAuthType, getCharacterEncoding, getContentLength, getContentType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getInputStream, getIntHeader, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getMethod, getParameter, getParameterMap, getParameterNames, getParameterValues, getPathInfo, getPathTranslated, getProtocol, getQueryString, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRemoteUser, getRequestDispatcher, getRequestedSessionId, getRequestURI, getRequestURL, getScheme, getServerName, getServerPort, getServletContext, getServletPath, getSession, getSession, getUserPrincipal, invalidate, isActive, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isSecure, isUserInRole, removeAllParameters, removeAttribute, removeParameter, setAttribute, setAuthType, setCharacterEncoding, setContent, setContentType, setContextPath, setCookies, setLocalAddr, setLocalName, setLocalPort, setMethod, setParameter, setParameter, setParameters, setPathInfo, setProtocol, setQueryString, setRemoteAddr, setRemoteHost, setRemotePort, setRemoteUser, setRequestedSessionId, setRequestedSessionIdFromCookie, setRequestedSessionIdFromURL, setRequestedSessionIdValid, setRequestURI, setScheme, setSecure, setServerName, setServerPort, setServletPath, setSession, setUserPrincipal |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GrailsMockHttpServletRequest
public GrailsMockHttpServletRequest()
getMetaClass
public groovy.lang.MetaClass getMetaClass()
- Specified by:
getMetaClass
in interface groovy.lang.GroovyObject
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc)
- Specified by:
setMetaClass
in interface groovy.lang.GroovyObject
invokeMethod
public Object invokeMethod(String method,
Object arguments)
- Specified by:
invokeMethod
in interface groovy.lang.GroovyObject
getProperty
public Object getProperty(String property)
- Specified by:
getProperty
in interface groovy.lang.GroovyObject
setProperty
public void setProperty(String property,
Object value)
- Specified by:
setProperty
in interface groovy.lang.GroovyObject
getInvalidToken
public boolean getInvalidToken()
isInvalidToken
public boolean isInvalidToken()
setInvalidToken
public void setInvalidToken(boolean value)
getForwardURI
public String getForwardURI()
setForwardURI
public void setForwardURI(String uri)
isXhr
public boolean isXhr()
makeAjaxRequest
public void makeAjaxRequest()
getAt
public Object getAt(String key)
putAt
public void putAt(String key,
Object val)
isGet
public boolean isGet()
isPost
public boolean isPost()
getXML
public Object getXML()
getJSON
public Object getJSON()
find
public Object find(groovy.lang.Closure c)
findAll
public Object findAll(groovy.lang.Closure c)
each
public Object each(groovy.lang.Closure c)
$getStaticMetaClass
protected groovy.lang.MetaClass $getStaticMetaClass()