public interface HostnameNormalizer
JndiHelper.normalizeHostname(Hashtable env)
for details.Modifier and Type | Field and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
static final boolean ESCAPE_DOTS_TRUE
static final boolean ESCAPE_DOTS_FALSE
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.