Package org.ldaptive.url
Class AbstractUrlFormatter
- java.lang.Object
- 
- org.ldaptive.url.AbstractUrlFormatter
 
- 
- All Implemented Interfaces:
- UrlFormatter
 - Direct Known Subclasses:
- MinimalUrlFormatter
 
 public abstract class AbstractUrlFormatter extends Object implements UrlFormatter Base implementation for LDAP URL formatters.
- 
- 
Constructor SummaryConstructors Constructor Description AbstractUrlFormatter()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Stringformat(Url url)Returns 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.
 
- 
- 
- 
Method Detail- 
formatpublic String format(Url url) Description copied from interface:UrlFormatterReturns a string representation of the supplied LDAP URL.- Specified by:
- formatin interface- UrlFormatter
- Parameters:
- url- to format
- Returns:
- formatted LDAP URL
 
 - 
formatSchemeprotected abstract String formatScheme(String scheme) Formats the supplied scheme.- Parameters:
- scheme- to format
- Returns:
- formatted scheme
 
 - 
formatHostnameprotected abstract String formatHostname(String hostname) Formats the supplied hostname.- Parameters:
- hostname- to format
- Returns:
- formatted hostname
 
 - 
formatBaseDnprotected abstract String formatBaseDn(String baseDn, Dn parsedBaseDn) Formats the supplied baseDN.- Parameters:
- baseDn- to format
- parsedBaseDn- to supplement formatting options
- Returns:
- formatted baseDN
 
 - 
formatAttributeprotected abstract String formatAttribute(String attrName) Formats the supplied attribute name.- Parameters:
- attrName- to format
- Returns:
- formatted attribute name
 
 
- 
 
-