|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HostnameNormalizer
Normalize hostname for consistent usage within the WebSphere NameSpace. WebSphere provides a default
implementation of this interface which should be satisfactory for most environments.
For an environment requiring an alternate normalization routine it is possible to configure your
own implementation. See JndiHelper.normalizeHostname(Hashtable env)
for details.
JndiHelper.normalizeHostname(Hashtable env)
Field Summary | |
---|---|
static boolean |
ESCAPE_DOTS_FALSE
Constant to be used for the EscapeDots parameter of the normalizeHostname methods indicating that no special processing is needed for dots. |
static boolean |
ESCAPE_DOTS_TRUE
Constant to be used for the EscapeDots parameter of the normalizeHostname methods indicating that dots need to be escaped. |
Method Summary | |
---|---|
java.lang.String |
normalizeHostname(boolean escapeDots)
Apply a normalization algorithm to the local hostname. |
java.lang.String |
normalizeHostname(boolean escapeDots,
java.net.InetAddress ipAddress)
Apply a normalization algorithm to the hostname of the host represented by the ipAddress parameter. |
java.lang.String |
normalizeHostname(boolean escapeDots,
java.lang.String hostname)
Apply a normalization algorithm to the hostname parameter. |
Field Detail |
---|
static final boolean ESCAPE_DOTS_TRUE
static final boolean ESCAPE_DOTS_FALSE
Method Detail |
---|
java.lang.String normalizeHostname(boolean escapeDots) throws javax.naming.NamingException
escapeDots
- boolean indicating whether dots (".") in the hostname should be prepended with the escape character ("\").
Escaping dots is necessary for names that follow INS syntax rules.
javax.naming.NamingException
- the explanation of exception should indicate the cause.java.lang.String normalizeHostname(boolean escapeDots, java.lang.String hostname) throws javax.naming.NamingException
escapeDots
- boolean indicating whether dots (".") in the hostname should be prepended with the escape character ("\").
Escaping dots is necessary for names that follow INS syntax rules.
hostname
- String containing the hostname to be normalized.
javax.naming.NamingException
- the explanation of exception should indicate the cause.java.lang.String normalizeHostname(boolean escapeDots, java.net.InetAddress ipAddress) throws javax.naming.NamingException
escapeDots
- boolean indicating whether dots (".") in the hostname should be prepended with the escape character ("\").
Escaping dots is necessary for names that follow INS syntax rules.
ipAddress
- java.net.InetAddress representing the hostname to be normalized.
javax.naming.NamingException
- the explanation of exception should indicate the cause.
|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |