|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.struts.action.Action org.objectweb.jonas.webapp.jonasadmin.JonasBaseAction org.objectweb.jonas.webapp.jonasadmin.xml.ApplyArchiveConfigAction
public class ApplyArchiveConfigAction
Action to process the input when either the advanced or the form view of the archive configuration feature is submitted. If the user selected the 'Apply' button the action validates and saves the updated deployment descriptor. If the user selected the 'Switch to Form/Advanced" the input is validated updated in the form and the user is forwarded to the other view.
Field Summary |
---|
Fields inherited from class org.objectweb.jonas.webapp.jonasadmin.JonasBaseAction |
---|
DEPTH_DOMAIN, DEPTH_SERVER, m_Errors, m_Resources, m_Session, m_WhereAreYou |
Fields inherited from class org.apache.struts.action.Action |
---|
defaultLocale, servlet |
Constructor Summary | |
---|---|
ApplyArchiveConfigAction()
|
Method Summary | |
---|---|
org.apache.struts.action.ActionForward |
executeAction(org.apache.struts.action.ActionMapping p_Mapping,
org.apache.struts.action.ActionForm p_Form,
javax.servlet.http.HttpServletRequest p_Request,
javax.servlet.http.HttpServletResponse p_Response)
Executes the struts action. |
protected java.lang.String |
getCurrentPageForward(ArchiveConfigForm form)
Get the ActionForward name for the current page. |
protected java.lang.String |
getSwitchForward(ArchiveConfigForm form)
Get the ActionForward name to switch views from the current page. |
protected org.apache.struts.action.ActionForward |
reportError(java.lang.String sForward,
ArchiveConfigForm oForm,
java.lang.String errorMessage,
org.apache.struts.action.ActionMapping p_Mapping,
javax.servlet.http.HttpServletRequest p_Request)
Report an error and forward to the given JSP page. |
protected java.lang.String |
serializeDocument(org.w3c.dom.Document doc)
Serialize a DOM tree into plaint text. |
protected void |
validateDocument(org.w3c.dom.Document doc,
java.lang.String serverName)
Validate the document using appropriate schemas. |
Methods inherited from class org.apache.struts.action.Action |
---|
addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, 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 |
Constructor Detail |
---|
public ApplyArchiveConfigAction()
Method Detail |
---|
public org.apache.struts.action.ActionForward executeAction(org.apache.struts.action.ActionMapping p_Mapping, org.apache.struts.action.ActionForm p_Form, javax.servlet.http.HttpServletRequest p_Request, javax.servlet.http.HttpServletResponse p_Response) throws java.io.IOException, javax.servlet.ServletException
executeAction
in class JonasBaseAction
p_Mapping
- the struts action mapping.p_Form
- the struts action form.p_Request
- the HttpServletRequest.p_Response
- the HttpServletResponse.
java.io.IOException
javax.servlet.ServletException
protected java.lang.String getCurrentPageForward(ArchiveConfigForm form)
form
- Struts form
protected java.lang.String getSwitchForward(ArchiveConfigForm form)
form
- Struts form
protected org.apache.struts.action.ActionForward reportError(java.lang.String sForward, ArchiveConfigForm oForm, java.lang.String errorMessage, org.apache.struts.action.ActionMapping p_Mapping, javax.servlet.http.HttpServletRequest p_Request)
sForward
- what JSP page to forward tooForm
- the form beanerrorMessage
- the message from the exceptionp_Mapping
- p_Request
-
protected java.lang.String serializeDocument(org.w3c.dom.Document doc)
doc
- Document tree to convert
protected void validateDocument(org.w3c.dom.Document doc, java.lang.String serverName) throws java.lang.Exception
doc
- the document that needs to be validated
java.lang.Exception
- an exception if the document is not valid
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |