FileDocCategorySizeDatePackage
PEAccXmlTokens.javaAPI DocGlassfish v2 API3271Fri May 04 22:24:32 BST 2007com.sun.enterprise.admin.servermgmt.pe

PEAccXmlTokens

public final class PEAccXmlTokens extends Object

Fields Summary
public static final String
SERVER_ROOT
public static final String
SERVER_NAME
public static final String
ORB_LISTENER1_PORT
Constructors Summary
Methods Summary
public static com.sun.enterprise.admin.util.TokenValueSetgetTokenValueSet(com.sun.enterprise.admin.servermgmt.DomainConfig domainConfig)

 

        
           
        final PEFileLayout layout = new PEFileLayout(domainConfig);

        final TokenValueSet tokens = new TokenValueSet();

        final String installDir = layout.getInstallRootDir().getAbsolutePath();
        TokenValue tv = new TokenValue(SERVER_ROOT, 
                            FileUtils.makeForwardSlashes(installDir));
        tokens.add(tv);

        tv = new TokenValue(SERVER_NAME, 
                (String)domainConfig.get(DomainConfig.K_HOST_NAME));
        tokens.add(tv);

        final Integer orbPort = 
            (Integer)domainConfig.get(DomainConfig.K_ORB_LISTENER_PORT);
        tv = new TokenValue(ORB_LISTENER1_PORT, orbPort.toString());
        tokens.add(tv);

        return ( tokens );