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 String
formatAttribute(String attrName)
Formats the supplied attribute name.protected String
formatBaseDn(String baseDn, Dn parsedBaseDn)
Formats the supplied baseDN.protected String
formatFilter(String filter, Filter parsedFilter)
Formats the supplied filter string.protected String
formatHostname(String hostname)
Formats the supplied hostname.protected String
formatScheme(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:AbstractUrlFormatter
Formats the supplied scheme.- Specified by:
formatScheme
in classAbstractUrlFormatter
- Parameters:
scheme
- to format- Returns:
- formatted scheme
-
formatHostname
protected String formatHostname(String hostname)
Description copied from class:AbstractUrlFormatter
Formats the supplied hostname.- Specified by:
formatHostname
in classAbstractUrlFormatter
- Parameters:
hostname
- to format- Returns:
- formatted hostname
-
formatBaseDn
protected String formatBaseDn(String baseDn, Dn parsedBaseDn)
Description copied from class:AbstractUrlFormatter
Formats the supplied baseDN.- Specified by:
formatBaseDn
in classAbstractUrlFormatter
- Parameters:
baseDn
- to formatparsedBaseDn
- to supplement formatting options- Returns:
- formatted baseDN
-
formatAttribute
protected String formatAttribute(String attrName)
Description copied from class:AbstractUrlFormatter
Formats the supplied attribute name.- Specified by:
formatAttribute
in classAbstractUrlFormatter
- Parameters:
attrName
- to format- Returns:
- formatted attribute name
-
formatFilter
protected String formatFilter(String filter, Filter parsedFilter)
Description copied from class:AbstractUrlFormatter
Formats the supplied filter string.- Specified by:
formatFilter
in classAbstractUrlFormatter
- Parameters:
filter
- to formatparsedFilter
- to supplement formatting options- Returns:
- formatted filter string
-
-