org.objectweb.jonas.webapp.jonasadmin
Class WhereAreYou

java.lang.Object
  extended byorg.objectweb.jonas.webapp.jonasadmin.WhereAreYou

public class WhereAreYou
extends java.lang.Object


Field Summary
static java.lang.String CONTEXT_MACRO
           
static int DEPLOYMENT_DATASOURCE
           
static int DEPLOYMENT_EAR
           
static int DEPLOYMENT_JAR
           
static int DEPLOYMENT_RAR
           
static java.lang.String DEPLOYMENT_STRING_DATASOURCE
           
static java.lang.String DEPLOYMENT_STRING_EAR
           
static java.lang.String DEPLOYMENT_STRING_JAR
           
static java.lang.String DEPLOYMENT_STRING_RAR
           
static java.lang.String DEPLOYMENT_STRING_WAR
           
static int DEPLOYMENT_WAR
           
static java.lang.String TAGS_IMAGES_ROOT_KEY
           
 
Constructor Summary
WhereAreYou()
           
 
Method Summary
 java.lang.String getCatalinaServiceName()
           
 int getCurrentJonasDeploymentType()
           
 java.lang.String getImagesRoot()
           
 java.lang.String getSelectedNameNode()
          Return the name of the selected node in the tree.
 org.apache.webapp.admin.TreeControlNode getSelectedTreeControlNode()
          Return the selected node in the tree.
 org.apache.webapp.admin.TreeControl getTreeControl()
           
 void initialize(ActionServlet p_Servlet, javax.servlet.http.HttpServletRequest p_Request)
          Initialize the properties in only reading.
 boolean isCatalinaEngine()
           
 boolean isCatalinaEngineLogger()
           
 boolean isCatalinaServer()
           
 boolean isCatalinaService()
           
 boolean isMyCatalinaConnector()
           
 boolean isMyCatalinaContext()
           
 boolean isMyJonasAdminServer()
           
 void refreshCatalina(javax.servlet.http.HttpServletRequest p_Request)
          Refresh the Catalina server properties.
 void refreshJonas(javax.servlet.http.HttpServletRequest p_Request)
          Refresh the JOnAS server properties.
 void refreshServers(javax.servlet.http.HttpServletRequest p_Request)
          Refresh all the servers properties.
protected  void resetCatalina()
          Reset the Catalina server properties.
protected  void resetJonas()
          Reset the JOnAS server properties.
 void setCurrentJonasDeploymentType(int currentJonasDeploymentType)
           
 void setTreeControl(org.apache.webapp.admin.TreeControl treeControl)
           
 java.lang.String toString()
          Return in a string the contents of the instance for each propertie.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TAGS_IMAGES_ROOT_KEY

public static final java.lang.String TAGS_IMAGES_ROOT_KEY
See Also:
Constant Field Values

CONTEXT_MACRO

public static final java.lang.String CONTEXT_MACRO
See Also:
Constant Field Values

DEPLOYMENT_EAR

public static final int DEPLOYMENT_EAR
See Also:
Constant Field Values

DEPLOYMENT_JAR

public static final int DEPLOYMENT_JAR
See Also:
Constant Field Values

DEPLOYMENT_WAR

public static final int DEPLOYMENT_WAR
See Also:
Constant Field Values

DEPLOYMENT_RAR

public static final int DEPLOYMENT_RAR
See Also:
Constant Field Values

DEPLOYMENT_DATASOURCE

public static final int DEPLOYMENT_DATASOURCE
See Also:
Constant Field Values

DEPLOYMENT_STRING_EAR

public static final java.lang.String DEPLOYMENT_STRING_EAR
See Also:
Constant Field Values

DEPLOYMENT_STRING_JAR

public static final java.lang.String DEPLOYMENT_STRING_JAR
See Also:
Constant Field Values

DEPLOYMENT_STRING_WAR

public static final java.lang.String DEPLOYMENT_STRING_WAR
See Also:
Constant Field Values

DEPLOYMENT_STRING_RAR

public static final java.lang.String DEPLOYMENT_STRING_RAR
See Also:
Constant Field Values

DEPLOYMENT_STRING_DATASOURCE

public static final java.lang.String DEPLOYMENT_STRING_DATASOURCE
See Also:
Constant Field Values
Constructor Detail

WhereAreYou

public WhereAreYou()
Method Detail

initialize

public void initialize(ActionServlet p_Servlet,
                       javax.servlet.http.HttpServletRequest p_Request)
Initialize the properties in only reading.

Parameters:
p_Servlet - The instance of servlet to access to the parameter of the servlet config
p_Request - The request to access to the HTTP informations

getSelectedNameNode

public java.lang.String getSelectedNameNode()
Return the name of the selected node in the tree.

Returns:
The name

getSelectedTreeControlNode

public org.apache.webapp.admin.TreeControlNode getSelectedTreeControlNode()
Return the selected node in the tree.

Returns:
The selected node

refreshServers

public void refreshServers(javax.servlet.http.HttpServletRequest p_Request)
Refresh all the servers properties.

Parameters:
p_Request - The request to access to the HTTP informations

refreshCatalina

public void refreshCatalina(javax.servlet.http.HttpServletRequest p_Request)
Refresh the Catalina server properties.

Parameters:
p_Request - The request to access to the HTTP informations

refreshJonas

public void refreshJonas(javax.servlet.http.HttpServletRequest p_Request)
Refresh the JOnAS server properties.

Parameters:
p_Request - The request to access to the HTTP informations

toString

public java.lang.String toString()
Return in a string the contents of the instance for each propertie. Debug utility.

Returns:
The string contents

resetCatalina

protected void resetCatalina()
Reset the Catalina server properties.


resetJonas

protected void resetJonas()
Reset the JOnAS server properties.


getImagesRoot

public java.lang.String getImagesRoot()

getTreeControl

public org.apache.webapp.admin.TreeControl getTreeControl()

setTreeControl

public void setTreeControl(org.apache.webapp.admin.TreeControl treeControl)

isCatalinaEngine

public boolean isCatalinaEngine()

isCatalinaEngineLogger

public boolean isCatalinaEngineLogger()

isCatalinaServer

public boolean isCatalinaServer()

isCatalinaService

public boolean isCatalinaService()

getCatalinaServiceName

public java.lang.String getCatalinaServiceName()

isMyCatalinaContext

public boolean isMyCatalinaContext()

isMyCatalinaConnector

public boolean isMyCatalinaConnector()

isMyJonasAdminServer

public boolean isMyJonasAdminServer()

getCurrentJonasDeploymentType

public int getCurrentJonasDeploymentType()

setCurrentJonasDeploymentType

public void setCurrentJonasDeploymentType(int currentJonasDeploymentType)