org.ldaptive
Class LdapURL.Entry

java.lang.Object
  extended by org.ldaptive.LdapURL.Entry
Enclosing class:
LdapURL

public static class LdapURL.Entry
extends Object

Represents a single LDAP URL entry.


Constructor Summary
LdapURL.Entry(String h, int p)
          Creates a new entry.
 
Method Summary
 String getHostname()
          Returns the hostname.
 String getHostnameWithPort()
          Returns the hostname:port.
 int getPort()
          Returns the port.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LdapURL.Entry

public LdapURL.Entry(String h,
                     int p)
Creates a new entry.

Parameters:
h - hostname
p - port
Method Detail

getHostname

public String getHostname()
Returns the hostname.

Returns:
hostname

getHostnameWithPort

public String getHostnameWithPort()
Returns the hostname:port.

Returns:
hostname:port

getPort

public int getPort()
Returns the port.

Returns:
port

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2003-2015 Virginia Tech. All Rights Reserved.