Package org.ldaptive.url
Class MinimalUrlFormatter
- java.lang.Object
-
- org.ldaptive.url.AbstractUrlFormatter
-
- org.ldaptive.url.MinimalUrlFormatter
-
- All Implemented Interfaces:
UrlFormatter
public class MinimalUrlFormatter extends AbstractUrlFormatter
Formats an LDAP URL using the exact properties contained in the LDAP URL.
-
-
Constructor Summary
Constructors Constructor Description MinimalUrlFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringformatAttribute(String attrName)Formats the supplied attribute name.protected StringformatBaseDn(String baseDn, Dn parsedBaseDn)Formats the supplied baseDN.protected StringformatFilter(String filter, Filter parsedFilter)Formats the supplied filter string.protected StringformatHostname(String hostname)Formats the supplied hostname.protected StringformatScheme(String scheme)Formats the supplied scheme.-
Methods inherited from class org.ldaptive.url.AbstractUrlFormatter
format
-
-
-
-
Method Detail
-
formatScheme
protected String formatScheme(String scheme)
Description copied from class:AbstractUrlFormatterFormats the supplied scheme.- Specified by:
formatSchemein classAbstractUrlFormatter- Parameters:
scheme- to format- Returns:
- formatted scheme
-
formatHostname
protected String formatHostname(String hostname)
Description copied from class:AbstractUrlFormatterFormats the supplied hostname.- Specified by:
formatHostnamein classAbstractUrlFormatter- Parameters:
hostname- to format- Returns:
- formatted hostname
-
formatBaseDn
protected String formatBaseDn(String baseDn, Dn parsedBaseDn)
Description copied from class:AbstractUrlFormatterFormats the supplied baseDN.- Specified by:
formatBaseDnin classAbstractUrlFormatter- Parameters:
baseDn- to formatparsedBaseDn- to supplement formatting options- Returns:
- formatted baseDN
-
formatAttribute
protected String formatAttribute(String attrName)
Description copied from class:AbstractUrlFormatterFormats the supplied attribute name.- Specified by:
formatAttributein classAbstractUrlFormatter- Parameters:
attrName- to format- Returns:
- formatted attribute name
-
formatFilter
protected String formatFilter(String filter, Filter parsedFilter)
Description copied from class:AbstractUrlFormatterFormats the supplied filter string.- Specified by:
formatFilterin classAbstractUrlFormatter- Parameters:
filter- to formatparsedFilter- to supplement formatting options- Returns:
- formatted filter string
-
-