|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.struts.action.Action | +--openfuture.bugbase.actions.BugBaseAction
Base action bean.
Created: Mon Jan 22 06:11:28 2001
Fields inherited from class org.apache.struts.action.Action |
DATA_SOURCE_KEY, defaultLocale, ERROR_KEY, EXCEPTION_KEY, FORM_BEANS_KEY, FORWARDS_KEY, LOCALE_KEY, MAPPING_KEY, MAPPINGS_KEY, MESSAGES_KEY, MULTIPART_KEY, servlet, SERVLET_KEY, TRANSACTION_TOKEN_KEY |
Fields inherited from interface openfuture.bugbase.model.JspConstants |
ATTACHMENT_DIR, ATTACHMENT_URL, BUG_REPORT, BUGBASE_SERVLET, LOCALES, LOGIN_MANAGER, MAILSERVER, MD_PROVIDER, NEXT_PAGE, PACKAGES, PROJECT, QUERY, QUERYSTRING, REPORTS, RESULT, SENDMAIL, SERVLET_CLIENT, SERVLETPATH, USER, USER_ID |
Constructor Summary | |
BugBaseAction()
|
Method Summary | |
protected boolean |
checkLogin(javax.servlet.http.HttpServletRequest request)
Check, if a user object is present in the session context. |
org.apache.struts.action.ActionForward |
findNextPage(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping)
Try to forward to the last page visited. |
BugBaseServletClient |
getClient(javax.servlet.http.HttpServletRequest request)
Get the value of client. |
LoginManager |
getLoginManager(javax.servlet.http.HttpServletRequest request)
Get the value of loginManager. |
MasterDataProvider |
getMasterDataProvider(javax.servlet.http.HttpServletRequest request)
Return the value of the masterdata provider. |
java.lang.String |
getProject(javax.servlet.http.HttpServletRequest request)
Convenience method for retrieving the stored project object from the session context. |
java.lang.String |
getQueryString(javax.servlet.http.HttpServletRequest request)
Convenience method for retrieving the stored query string from the session context. |
java.lang.String |
getServletPath(javax.servlet.http.HttpServletRequest request)
Convenience method for retrieving the stored servlet path of the request from the session context. |
User |
getUser(javax.servlet.http.HttpServletRequest request)
Convenience method for retrieving the stored user object from the session context. |
protected org.apache.struts.action.ActionErrors |
initialize(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Initialize the settings. |
static void |
saveOriginalRequest(javax.servlet.http.HttpServletRequest request)
Save the request URI and the
query string . |
void |
setProject(javax.servlet.http.HttpServletRequest request,
java.lang.String project)
Convenience method for setting the project object into the session context. |
void |
setUser(javax.servlet.http.HttpServletRequest request,
User user)
Convenience method for setting the user object into the session context. |
Methods inherited from class org.apache.struts.action.Action |
generateToken, getLocale, getResources, getServlet, isCancelled, isTokenValid, perform, perform, perform, perform, resetToken, saveErrors, saveToken, setLocale, setServlet, toHex |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BugBaseAction()
Method Detail |
protected org.apache.struts.action.ActionErrors initialize(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
mapping
- The ActionMapping used to select this instanceform
- an ActionForm
valuerequest
- The HTTP request we are processingresponse
- The HTTP response we are creatingActionForward
valuepublic BugBaseServletClient getClient(javax.servlet.http.HttpServletRequest request)
request
- the current HTTP requestpublic LoginManager getLoginManager(javax.servlet.http.HttpServletRequest request)
request
- the current HTTP requestpublic java.lang.String getServletPath(javax.servlet.http.HttpServletRequest request)
request
- the current HTTP requestpublic java.lang.String getQueryString(javax.servlet.http.HttpServletRequest request)
request
- the current HTTP requestpublic User getUser(javax.servlet.http.HttpServletRequest request)
request
- the current HTTP requestpublic void setUser(javax.servlet.http.HttpServletRequest request, User user)
request
- the current HTTP requestuser
- the current user, that has logged inpublic java.lang.String getProject(javax.servlet.http.HttpServletRequest request)
request
- the current HTTP requestpublic void setProject(javax.servlet.http.HttpServletRequest request, java.lang.String project)
request
- the current HTTP requestproject
- the currently selected projectpublic org.apache.struts.action.ActionForward findNextPage(javax.servlet.http.HttpServletRequest request, org.apache.struts.action.ActionMapping mapping)
getServletPath(HttpServletRequest)
, the forward
defined as default
is returned.request
- the current HTTP requestmapping
- the current action mappinggetServletPath(HttpServletRequest)
is null
.protected boolean checkLogin(javax.servlet.http.HttpServletRequest request)
user object
is present in the session context.request
- the current HTTP requestpublic MasterDataProvider getMasterDataProvider(javax.servlet.http.HttpServletRequest request)
request
- the current HTTP requestpublic static void saveOriginalRequest(javax.servlet.http.HttpServletRequest request)
request URI
and the
query string
. If the query string is
empty and the servlet path is equal to the already stored one,
the old query string is saved (this is for the case of redirections,
where the query string is removed.)request
- the current HTTP request
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |