org.kuali.rice.kew.test.web
Class WorkflowServletRequest

java.lang.Object
  extended by org.springframework.mock.web.MockHttpServletRequest
      extended by org.kuali.rice.kew.test.web.WorkflowServletRequest
All Implemented Interfaces:
javax.servlet.http.HttpServletRequest, javax.servlet.ServletRequest

public class WorkflowServletRequest
extends org.springframework.mock.web.MockHttpServletRequest

Subclass of MockHttpServletRequest that initializes the request with a user session

Author:
Kuali Rice Team (rice.collab@kuali.org)

Field Summary
 
Fields inherited from class org.springframework.mock.web.MockHttpServletRequest
DEFAULT_PROTOCOL, DEFAULT_REMOTE_ADDR, DEFAULT_REMOTE_HOST, DEFAULT_SERVER_ADDR, DEFAULT_SERVER_NAME, DEFAULT_SERVER_PORT
 
Fields inherited from interface javax.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
 
Constructor Summary
WorkflowServletRequest()
           
WorkflowServletRequest(javax.servlet.ServletContext context)
           
WorkflowServletRequest(javax.servlet.ServletContext context, String method, String requestURI)
           
WorkflowServletRequest(String user)
           
WorkflowServletRequest(String method, String requestURI)
           
 
Method Summary
 String getBackdoorPrincipalId()
           
 String getUser()
           
 UserSession getUserSession()
           
 Principal getWorkflowUser()
           
 void setBackdoorId(String backdoorId)
           
 void setUser(String user)
           
 void setUserSession(UserSession userSession)
           
 void setWorkflowUser(Principal user)
           
 
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
 

Constructor Detail

WorkflowServletRequest

public WorkflowServletRequest()

WorkflowServletRequest

public WorkflowServletRequest(javax.servlet.ServletContext context,
                              String method,
                              String requestURI)

WorkflowServletRequest

public WorkflowServletRequest(javax.servlet.ServletContext context)

WorkflowServletRequest

public WorkflowServletRequest(String method,
                              String requestURI)

WorkflowServletRequest

public WorkflowServletRequest(String user)
Method Detail

setUser

public void setUser(String user)

getUser

public String getUser()

setBackdoorId

public void setBackdoorId(String backdoorId)

setWorkflowUser

public void setWorkflowUser(Principal user)

getWorkflowUser

public Principal getWorkflowUser()

getBackdoorPrincipalId

public String getBackdoorPrincipalId()

setUserSession

public void setUserSession(UserSession userSession)

getUserSession

public UserSession getUserSession()


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.