|
||||||||||
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.ow2.jonas.webapp.jonasadmin.JonasBaseAction org.ow2.jonas.webapp.jonasadmin.deploy.BaseDeployAction org.ow2.jonas.webapp.jonasadmin.resourceadapter.ApplyCreateResourceAdapterAction
public class ApplyCreateResourceAdapterAction
The action used when a Resource Adapter is created. This uses a Velocity template to build up the XML and creates a RAR file.
Field Summary |
---|
Fields inherited from class org.ow2.jonas.webapp.jonasadmin.JonasBaseAction |
---|
DEPTH_DOMAIN, DEPTH_SERVER, GLOBAL_ERROR_FORWARD, m_Errors, m_Resources, m_Session, m_WhereAreYou |
Fields inherited from class org.apache.struts.action.Action |
---|
defaultLocale, servlet |
Constructor Summary | |
---|---|
ApplyCreateResourceAdapterAction()
|
Method Summary | |
---|---|
protected String |
createEmptyJonasRa()
Creates an empty jonas-ra.xml content header. |
protected void |
createJonasRa(CreateResourceAdapterForm oForm,
org.apache.velocity.app.VelocityEngine ve,
String domainName,
String serverName)
Create a ra.xml file (from a Velocity template) and adds it to a RAR file. |
protected void |
createRa(CreateResourceAdapterForm oForm,
org.apache.velocity.app.VelocityEngine ve,
String domainName,
String serverName)
Create a ra.xml file (from a Velocity template) and adds it to a RAR file. |
org.apache.struts.action.ActionForward |
executeAction(org.apache.struts.action.ActionMapping p_Mapping,
org.apache.struts.action.ActionForm p_Form,
HttpServletRequest p_Request,
HttpServletResponse p_Response)
The action to use when the Struts action is executed. |
Methods inherited from class org.ow2.jonas.webapp.jonasadmin.deploy.BaseDeployAction |
---|
deploy, deployDataSource, deployMailFactory, deployModule, getCurrentJonasDeployment, getDomainDeploymentMethodName, getDomainUploadDeployMethodName, getForwardEdit, getListDeployableFiles, getListDeployedFiles, isConfigurable, isDeployment, isDomain, isModule, refreshJoramTree, refreshMBeansTree, refreshServiceTree, refreshTree, refreshWebServiceTree, removeFile, removeModule, runGC, setCurrentJonasDeployment, undeploy, undeployDataSource, undeployMailFactory, undeployModule |
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 ApplyCreateResourceAdapterAction()
Method Detail |
---|
public org.apache.struts.action.ActionForward executeAction(org.apache.struts.action.ActionMapping p_Mapping, org.apache.struts.action.ActionForm p_Form, HttpServletRequest p_Request, HttpServletResponse p_Response) throws IOException, ServletException
executeAction
in class JonasBaseAction
p_Mapping
- The ActionMapping for the action.p_Form
- The form used in this action.p_Request
- HTTP Request for the action.p_Response
- The HTTP Response.
IOException
- if the there is a problem with the
template files, creation of the RARs.
ServletException
- if the there is a servlet error.protected String createEmptyJonasRa()
protected void createRa(CreateResourceAdapterForm oForm, org.apache.velocity.app.VelocityEngine ve, String domainName, String serverName) throws Exception
oForm
- The struts form used in this Struts action.ve
- The Velocity engine that contains the appropriate template.
Exception
- If the invokation of creating the RAR or adding a file to the RAR fails.protected void createJonasRa(CreateResourceAdapterForm oForm, org.apache.velocity.app.VelocityEngine ve, String domainName, String serverName) throws Exception
oForm
- The struts form used in this Struts action.ve
- The Velocity engine that contains the appropriate template.
Exception
- If the invokation of creating the RAR or adding a file to the RAR fails.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |