| Modifier and Type | Field and Description | 
|---|---|
protected static String[] | 
DEFAULT_ATTRIBUTES
Default return attributes, value is none. 
 | 
protected static 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 String[] | 
urlAttributes
Attributes of the ldap url. 
 | 
private String | 
urlBaseDn
Base DN of the ldap url. 
 | 
private SearchFilter | 
urlFilter
Search filter of the ldap url. 
 | 
private String | 
urlHostname
Hostname of the ldap url. 
 | 
private int | 
urlPort
Port of the ldap url. 
 | 
private String | 
urlScheme
Scheme of the ldap url. 
 | 
private SearchScope | 
urlScope
Search scope of the ldap url. 
 | 
| Constructor and Description | 
|---|
Entry(String scheme,
     String hostname,
     int port,
     String baseDn,
     String[] attributes,
     SearchScope scope,
     SearchFilter filter)
Creates a new entry. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
String[] | 
getAttributes()
Returns the attributes. 
 | 
String | 
getBaseDn()
Returns the base DN. 
 | 
SearchFilter | 
getFilter()
Returns the filter. 
 | 
String | 
getHostname()
Returns the entryHostname. 
 | 
String | 
getHostnameWithPort()
Returns the hostname:port. 
 | 
String | 
getHostnameWithSchemeAndPort()
Returns the scheme://hostname:port. 
 | 
int | 
getPort()
Returns the entryPort. 
 | 
String | 
getScheme()
Returns the entryScheme. 
 | 
SearchScope | 
getScope()
Returns the scope. 
 | 
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. 
 | 
String | 
toString()  | 
protected static final int DEFAULT_LDAP_PORT
protected static final int DEFAULT_LDAPS_PORT
protected static final String DEFAULT_BASE_DN
protected static final SearchFilter DEFAULT_FILTER
protected static final SearchScope DEFAULT_SCOPE
SearchScope.OBJECT.protected static final String[] DEFAULT_ATTRIBUTES
private final String urlScheme
private final String urlHostname
private final int urlPort
private final String urlBaseDn
private final String[] urlAttributes
private final SearchScope urlScope
private final SearchFilter urlFilter
public Entry(String scheme, String hostname, int port, String baseDn, String[] attributes, SearchScope scope, SearchFilter filter)
scheme - entrySchemehostname - entryHostnameport - entryPortbaseDn - base DNattributes - attributesscope - search scopefilter - search filterpublic String getScheme()
public String getHostname()
public int getPort()
public boolean isDefaultPort()
public String getBaseDn()
public boolean isDefaultBaseDn()
public String[] getAttributes()
public boolean isDefaultAttributes()
public SearchScope getScope()
public boolean isDefaultScope()
public SearchFilter getFilter()
public boolean isDefaultFilter()
public String getUrl()
public String getHostnameWithPort()
public String getHostnameWithSchemeAndPort()
Copyright © 2003-2019 Virginia Tech. All Rights Reserved.