站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 system API Documentation 英文版文档

ServerConfigUtil (JBoss System API) - JBoss 4.0.1 sp1 system API Documentation 英文版文档


org.jboss.system.server
Class ServerConfigUtil

java.lang.Object
  extended byorg.jboss.system.server.ServerConfigUtil

public class ServerConfigUtil
extends Object

Utilities for accessing server configuration

Version:
$Revision: 1.2 $
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 getSpecificBindAddress()
          Retrieve the default bind address, but only if it is specific
 
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


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