FileDocCategorySizeDatePackage
ServerXPathHelper.javaAPI DocGlassfish v2 API15944Sat Dec 24 18:48:28 GMT 2005com.sun.enterprise.config.serverbeans

ServerXPathHelper

public final class ServerXPathHelper extends Object
A helper class to store valid xpaths for ias7.0 SE. Helper methods are provided to generate valid xpaths that are needed by configContext.

Fields Summary
public static final String
DEFAULT_CONFIG_MODEL_NAME
public static final String
REGEX_DEFAULT_CONFIG_MODEL_NAME
public static final String
DEFAULT_HOST_MODEL_NAME
public static final String
REGEX_ONE_PLUS
public static final String
XPATH_SEPARATOR
public static final String
XPATH_DOMAIN
public static final String
REGEX_XPATH_DOMAIN
public static final String
XPATH_CONFIG
public static final String
REGEX_XPATH_CONFIG
public static final String
XPATH_APPLICATIONS
public static final String
XPATH_J2EE_APPLICATION
public static final String
XPATH_EJB_MODULE
public static final String
XPATH_WEB_MODULE
public static final String
XPATH_CONNECTOR_MODULE
public static final String
XPATH_APPCLIENT_MODULE
public static final String
XPATH_LIFECYCLE_MODULE
public static final String
XPATH_LOG_SERVICE
public static final String
XPATH_SECURITY_SERVICE
public static final String
XPATH_SECURITY_AUTH_REALM
public static final String
XPATH_RESOURCES
public static final String
XPATH_JDBC_RESOURCE
public static final String
XPATH_JNDI_RESOURCE
public static final String
XPATH_CUSTOM_RESOURCE
public static final String
XPATH_JDBC_CONNECTION_POOL
public static final String
XPATH_PM_FACTORY_RESOURCE
public static final String
XPATH_MAIL_RESOURCE
public static final String
XPATH_ADMIN_OBJECT_RESOURCE
public static final String
XPATH_CONNECTOR_RESOURCE
public static final String
XPATH_CONNECTOR_CONNECTION_POOL
public static final String
XPATH_RESOURCE_ADAPTER_CONFIG
public static final String
XPATH_HTTP_SERVICE
public static final String
XPATH_HTTP_LISTENER
public static final String
XPATH_TRANSACTION_SERVICE
public static final String
XPATH_JMS_SERVICE
public static final String
XPATH_IIOP_SERVICE
public static final String
XPATH_ORB
public static final String
XPATH_IIOP_LISTENER
public static final String
XPATH_MDB_CONTAINER
public static final String
XPATH_WEB_CONTAINER
public static final String
XPATH_EJB_CONTAINER
public static final String
XPATH_JAVACONFIG
public static final String
XPATH_PROFILER
Constructors Summary
Methods Summary
public static java.lang.StringgetAbsoluteIdXpathExpression(java.lang.String childTagName, java.lang.String nameId, java.lang.String valueId)

param
childTagName
param
nameId
param
valueId

                                    
        return ConfigXPathHelper.getAbsoluteIdXpathExpression(
                            childTagName, 
                            nameId, 
                            valueId);
    
public static java.lang.StringgetAppClientModuleIdXpathExpression(java.lang.String moduleId)

        return getAbsoluteIdXpathExpression(XPATH_APPCLIENT_MODULE, 
                                            ServerTags.NAME, 
                                            moduleId);
    
public static java.lang.StringgetAppIdXpathExpression(java.lang.String appId)

return

        return XPATH_J2EE_APPLICATION +"[@" + ServerTags.NAME + "='" + appId + "']";
    
public static java.lang.StringgetConfigIdXpath(java.lang.String configId)

        return XPATH_DOMAIN + XPATH_SEPARATOR + 
               ServerTags.CONFIGS + XPATH_SEPARATOR + 
               ServerTags.CONFIG +
               "[@" + ServerTags.NAME + "='" + configId + "']";
    
public static java.lang.StringgetConnectorModuleIdXpathExpression(java.lang.String moduleId)

        /** IASRI 4666602
        return getAbsoluteIdXpathExpression(XPATH_CONNECTOR_MODULE, 
                                            ServerTags.NAME, 
                                            moduleId);
         **/
        // START OF IASRI 4666602
        return XPATH_CONNECTOR_MODULE + "[@" + ServerTags.NAME + "='" + moduleId + "']";
        // END OF IASRI 4666602
    
public static java.lang.StringgetCustomResourceIdXpath(java.lang.String jndiId)

        return getAbsoluteIdXpathExpression(XPATH_CUSTOM_RESOURCE, ServerTags.JNDI_NAME, jndiId);
    
public static java.lang.StringgetEJBContainerXpath()

        return XPATH_EJB_CONTAINER;
    
public static java.lang.StringgetEjbModuleIdXpathExpression(java.lang.String moduleId)

        return getAbsoluteIdXpathExpression(XPATH_EJB_MODULE, 
                                            ServerTags.NAME, 
                                            moduleId);
    
public static java.lang.StringgetHTTPListenerIdXpath(java.lang.String id)

        return getAbsoluteIdXpathExpression(XPATH_HTTP_LISTENER, ServerTags.ID, id);
    
public static java.lang.StringgetHTTPServiceXpath()

        return XPATH_HTTP_SERVICE;
    
public static java.lang.StringgetIIOPListenerIdXpath(java.lang.String id)

        return getAbsoluteIdXpathExpression(XPATH_IIOP_LISTENER, ServerTags.ID, id);
    
public static java.lang.StringgetIIOPServiceXpath()

        return XPATH_IIOP_SERVICE;
    
public static java.lang.StringgetJDBCConnectionPoolIdXpath(java.lang.String poolId)

        return getAbsoluteIdXpathExpression(XPATH_JDBC_CONNECTION_POOL, ServerTags.NAME, poolId);
    
public static java.lang.StringgetJDBCResourceIdXpath(java.lang.String jndiId)

        return getAbsoluteIdXpathExpression(XPATH_JDBC_RESOURCE, ServerTags.JNDI_NAME, jndiId);
    
public static java.lang.StringgetJNDIResourceIdXpath(java.lang.String jndiId)

        return getAbsoluteIdXpathExpression(XPATH_JNDI_RESOURCE, ServerTags.JNDI_NAME, jndiId);
    
public static java.lang.StringgetJavaConfigXpath()

        return XPATH_JAVACONFIG;
    
public static java.lang.StringgetJmsServiceXpath()

        return XPATH_JMS_SERVICE;
    
public static java.lang.StringgetLastNodeName(java.lang.String xPath)

        return ConfigXPathHelper.getLastNodeName(xPath);
    
public static java.lang.StringgetLifecycleModuleIdXpath(java.lang.String moduleId)

        return getAbsoluteIdXpathExpression(XPATH_LIFECYCLE_MODULE, 
                                            ServerTags.NAME, 
                                            moduleId);
    
public static java.lang.StringgetLogServiceXpath()

        return XPATH_LOG_SERVICE;
    
public static java.lang.StringgetMDBContainerXpath()

        return XPATH_MDB_CONTAINER;
    
public static java.lang.StringgetMailResourceIdXpath(java.lang.String jndiId)

        return getAbsoluteIdXpathExpression(XPATH_MAIL_RESOURCE, ServerTags.JNDI_NAME, jndiId);
    
public static java.lang.StringgetOrbXpath()

        return XPATH_ORB;
    
public static java.lang.StringgetPMFactoryResourceIdXpath(java.lang.String jndiId)

        return getAbsoluteIdXpathExpression(XPATH_PM_FACTORY_RESOURCE, ServerTags.JNDI_NAME, jndiId);
    
public static java.lang.StringgetParentXPath(java.lang.String xPath)

        return ConfigXPathHelper.getParentXPath(xPath);
    
public static java.lang.StringgetProfilerXpath()

        return XPATH_PROFILER;
    
public static java.lang.StringgetSecurityAuthRealmIdXpath(java.lang.String name)

        return getAbsoluteIdXpathExpression(XPATH_SECURITY_AUTH_REALM, ServerTags.NAME, name);
    
public static java.lang.StringgetSecurityServiceXpath()

        return XPATH_SECURITY_SERVICE;
    
public static java.lang.StringgetServerIdXpath(java.lang.String serverId)


	//private static final Logger _logger = LogDomains.getLogger(LogDomains.CONFIG_LOGGER);


         
        return XPATH_DOMAIN + XPATH_SEPARATOR + 
               ServerTags.SERVERS + XPATH_SEPARATOR + 
               ServerTags.SERVER +
               "[@" + ServerTags.NAME + "='" + serverId + "']";
    
public static java.lang.StringgetTransactionServiceXpath()

        return XPATH_TRANSACTION_SERVICE;
    
public static java.lang.StringgetVirtualServerIdXpath(java.lang.String classId, java.lang.String id)

        return getAbsoluteIdXpathExpression(
                            XPATH_HTTP_SERVICE + XPATH_SEPARATOR + ServerTags.VIRTUAL_SERVER,
                            ServerTags.ID, id);
    
public static java.lang.StringgetWEBContainerXpath()

        return XPATH_WEB_CONTAINER;
    
public static java.lang.StringgetWebModuleIdXpathExpression(java.lang.String moduleId)

        return getAbsoluteIdXpathExpression(XPATH_WEB_MODULE, 
                                            ServerTags.NAME, 
                                            moduleId);