|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.struts.action.Action
org.apache.struts.actions.BaseAction
org.apache.struts.actions.DispatchAction
org.apache.struts.actions.MappingDispatchAction
org.apache.struts.apps.mailreader.actions.BaseAction
org.apache.struts.apps.mailreader.actions.SubscriptionAction
public final class SubscriptionAction
Provide an Edit method for retrieving an existing subscription, and a Save method for updating or inserting a subscription.
Field Summary | |
---|---|
static java.lang.String |
AUTO_CONNECT
Name of autoConnect field ["autoConnect"]. |
static java.lang.String |
HOST
Name of host field ["host"]. |
static java.lang.String |
TYPE
Name of type field ["type"]. |
Fields inherited from class org.apache.struts.apps.mailreader.actions.BaseAction |
---|
log, PASSWORD, TASK, USERNAME |
Fields inherited from class org.apache.struts.actions.DispatchAction |
---|
clazz, methods, types |
Fields inherited from class org.apache.struts.actions.BaseAction |
---|
messages |
Fields inherited from class org.apache.struts.action.Action |
---|
servlet |
Constructor Summary | |
---|---|
SubscriptionAction()
|
Method Summary | |
---|---|
ActionForward |
Delete(ActionMapping mapping,
ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Prepare for a Delete operation by populating the form and seting the action to Delete. |
ActionForward |
Edit(ActionMapping mapping,
ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Retrieve the Subscription object to edit or null if the Subscription does not exist. |
ActionForward |
Save(ActionMapping mapping,
ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Insert or update a Subscription object to the persistent store. |
Methods inherited from class org.apache.struts.apps.mailreader.actions.BaseAction |
---|
doCancel, doFindFailure, doFindLogon, doFindSuccess, doGet, doGetSubscription, doGetSubscription, doGetUser, doGetUser, doGetUserDatabase, doInputForward, doLogProcess, doSaveToken, doSaveUser, doSet |
Methods inherited from class org.apache.struts.actions.MappingDispatchAction |
---|
execute, getMethodName, getParameter, unspecified |
Methods inherited from class org.apache.struts.actions.DispatchAction |
---|
cancelled, dispatchMethod, getMethod |
Methods inherited from class org.apache.struts.action.Action |
---|
addErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String AUTO_CONNECT
Name of autoConnect field ["autoConnect"].
public static final java.lang.String HOST
Name of host field ["host"].
public static final java.lang.String TYPE
Name of type field ["type"].
Constructor Detail |
---|
public SubscriptionAction()
Method Detail |
---|
public ActionForward Delete(ActionMapping mapping, ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
Prepare for a Delete operation by populating the form and seting the action to Delete.
mapping
- Our ActionMappingform
- Our ActionFormrequest
- Our HttpServletRequestresponse
- Our HttpServletResponse
java.lang.Exception
- on any errorpublic ActionForward Edit(ActionMapping mapping, ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
Retrieve the Subscription object to edit or null if the Subscription does not exist.
The Subscription object is bound to the User, and so if the User is not logged in, control is forwarded to the Logon result.
mapping
- Our ActionMappingform
- Our ActionFormrequest
- Our HttpServletRequestresponse
- Our HttpServletResponse
java.lang.Exception
- on any errorpublic ActionForward Save(ActionMapping mapping, ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
Insert or update a Subscription object to the persistent store.
mapping
- Our ActionMappingform
- Our ActionFormrequest
- Our HttpServletRequestresponse
- Our HttpServletResponse
java.lang.Exception
- on any error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |