org.jboss.system.server
Class ServerConfigUtil

java.lang.Object
  extended by org.jboss.system.server.ServerConfigUtil

public class ServerConfigUtil
extends Object

Utilities for accessing server configuration. Note that this class cannot have dependencies on anything but bootstrap and jdk classes. Anything more than this needs to be defined in the ServerConfig interface and provided in the associated implementation.

Version:
$Revision: 1.2.6.5 $
Author:
Adrian Brock

Constructor Summary
ServerConfigUtil()
           
 
Method Summary
static InetAddress fixRemoteAddress(InetAddress address)
          Fix the remote inet address.
static String fixRemoteAddress(String address)
          Fix the remote address.
static String getDefaultBindAddress()
          Retrieve the default bind address for the server
static String getDefaultPartitionName()
          Get the default partition name
static String getSpecificBindAddress()
          Retrieve the default bind address, but only if it is specific
static boolean isLoadNative()
          Whether to load native directories
static String shortUrlFromServerHome(String longUrl)
          Utility to get a shortened url relative to the server home if possible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerConfigUtil

public ServerConfigUtil()
Method Detail

getDefaultBindAddress

public static String getDefaultBindAddress()
Retrieve the default bind address for the server

Returns:
the default bind adress

getSpecificBindAddress

public static String getSpecificBindAddress()
Retrieve the default bind address, but only if it is specific

Returns:
the specific bind address

fixRemoteAddress

public static InetAddress fixRemoteAddress(InetAddress address)
Fix the remote inet address. If we pass the address to the client we don't want to tell it to connect to 0.0.0.0, use our host name instead

Parameters:
address - the passed address
Returns:
the fixed address

fixRemoteAddress

public static String fixRemoteAddress(String address)
Fix the remote address. If we pass the address to the client we don't want to tell it to connect to 0.0.0.0, use our host name instead

Parameters:
address - the passed address
Returns:
the fixed address

getDefaultPartitionName

public static String getDefaultPartitionName()
Get the default partition name

Returns:
the default partition name

isLoadNative

public static boolean isLoadNative()
Whether to load native directories

Returns:
true when loading native directories

shortUrlFromServerHome

public static String shortUrlFromServerHome(String longUrl)
Utility to get a shortened url relative to the server home if possible

Parameters:
longUrl -
Returns:
the short url


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.