Package org.ldaptive.url
Class AbstractUrlFormatter
java.lang.Object
org.ldaptive.url.AbstractUrlFormatter
- All Implemented Interfaces:
UrlFormatter
- Direct Known Subclasses:
MinimalUrlFormatter
Base implementation for LDAP URL formatters.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a string representation of the supplied LDAP URL.protected abstract StringformatAttribute(String attrName) Formats the supplied attribute name.protected abstract StringformatBaseDn(String baseDn, Dn parsedBaseDn) Formats the supplied baseDN.protected abstract StringformatFilter(String filter, Filter parsedFilter) Formats the supplied filter string.protected abstract StringformatHostname(String hostname) Formats the supplied hostname.protected abstract StringformatScheme(String scheme) Formats the supplied scheme.
-
Constructor Details
-
AbstractUrlFormatter
public AbstractUrlFormatter()
-
-
Method Details
-
format
Description copied from interface:UrlFormatterReturns a string representation of the supplied LDAP URL.- Specified by:
formatin interfaceUrlFormatter- Parameters:
url- to format- Returns:
- formatted LDAP URL
-
formatScheme
Formats the supplied scheme.- Parameters:
scheme- to format- Returns:
- formatted scheme
-
formatHostname
Formats the supplied hostname.- Parameters:
hostname- to format- Returns:
- formatted hostname
-
formatBaseDn
Formats the supplied baseDN.- Parameters:
baseDn- to formatparsedBaseDn- to supplement formatting options- Returns:
- formatted baseDN
-
formatAttribute
Formats the supplied attribute name.- Parameters:
attrName- to format- Returns:
- formatted attribute name
-
formatFilter
Formats the supplied filter string.- Parameters:
filter- to formatparsedFilter- to supplement formatting options- Returns:
- formatted filter string
-