public static class LdapURL.Entry
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String[] |
DEFAULT_ATTRIBUTES
Default return attributes, value is none.
|
protected static java.lang.String |
DEFAULT_BASE_DN
Default base DN, value is "".
|
protected static SearchFilter |
DEFAULT_FILTER
Default search filter value is '(objectClass=*)'.
|
protected static int |
DEFAULT_LDAP_PORT
Default LDAP port, value is 389.
|
protected static int |
DEFAULT_LDAPS_PORT
Default LDAPS port, value is 636.
|
protected static SearchScope |
DEFAULT_SCOPE
Default scope, value is
SearchScope.OBJECT. |
private java.lang.String[] |
urlAttributes
Attributes of the ldap url.
|
private java.lang.String |
urlBaseDn
Base DN of the ldap url.
|
private SearchFilter |
urlFilter
Search filter of the ldap url.
|
private java.lang.String |
urlHostname
Hostname of the ldap url.
|
private int |
urlPort
Port of the ldap url.
|
private java.lang.String |
urlScheme
Scheme of the ldap url.
|
private SearchScope |
urlScope
Search scope of the ldap url.
|
| Constructor and Description |
|---|
Entry(java.lang.String scheme,
java.lang.String hostname,
int port,
java.lang.String baseDn,
java.lang.String[] attributes,
SearchScope scope,
SearchFilter filter)
Creates a new entry.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String[] |
getAttributes()
Returns the attributes.
|
java.lang.String |
getBaseDn()
Returns the base DN.
|
SearchFilter |
getFilter()
Returns the filter.
|
java.lang.String |
getHostname()
Returns the entryHostname.
|
java.lang.String |
getHostnameWithPort()
Returns the hostname:port.
|
java.lang.String |
getHostnameWithSchemeAndPort()
Returns the scheme://hostname:port.
|
int |
getPort()
Returns the entryPort.
|
java.lang.String |
getScheme()
Returns the entryScheme.
|
SearchScope |
getScope()
Returns the scope.
|
java.lang.String |
getUrl()
Returns the formatted URL as scheme://hostname:port/baseDn?attrs?scope?filter.
|
boolean |
isDefaultAttributes()
Returns whether attributes were supplied in this entry.
|
boolean |
isDefaultBaseDn()
Returns whether a base DN was supplied in this entry.
|
boolean |
isDefaultFilter()
Returns whether a filter was supplied in this entry.
|
boolean |
isDefaultPort()
Returns whether a port was supplied in this entry.
|
boolean |
isDefaultScope()
Returns whether a scope was supplied in this entry.
|
java.lang.String |
toString() |
protected static final int DEFAULT_LDAP_PORT
protected static final int DEFAULT_LDAPS_PORT
protected static final java.lang.String DEFAULT_BASE_DN
protected static final SearchFilter DEFAULT_FILTER
protected static final SearchScope DEFAULT_SCOPE
SearchScope.OBJECT.protected static final java.lang.String[] DEFAULT_ATTRIBUTES
private final java.lang.String urlScheme
private final java.lang.String urlHostname
private final int urlPort
private final java.lang.String urlBaseDn
private final java.lang.String[] urlAttributes
private final SearchScope urlScope
private final SearchFilter urlFilter
public Entry(java.lang.String scheme,
java.lang.String hostname,
int port,
java.lang.String baseDn,
java.lang.String[] attributes,
SearchScope scope,
SearchFilter filter)
scheme - entrySchemehostname - entryHostnameport - entryPortbaseDn - base DNattributes - attributesscope - search scopefilter - search filterpublic java.lang.String getScheme()
public java.lang.String getHostname()
public int getPort()
public boolean isDefaultPort()
public java.lang.String getBaseDn()
public boolean isDefaultBaseDn()
public java.lang.String[] getAttributes()
public boolean isDefaultAttributes()
public SearchScope getScope()
public boolean isDefaultScope()
public SearchFilter getFilter()
public boolean isDefaultFilter()
public java.lang.String getUrl()
public java.lang.String getHostnameWithPort()
public java.lang.String getHostnameWithSchemeAndPort()
public java.lang.String toString()
toString in class java.lang.Object