Package org.ldaptive.url
Class DefaultUrlParser
java.lang.Object
org.ldaptive.url.DefaultUrlParser
- All Implemented Interfaces:
UrlParser
Parses an LDAP URL string.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionParses the supplied URL into aUrl.private static String[]parseAttributes(String attrs) Parses the supplied comma delimited attributes.private static Object[]parseHostAndPort(String hostAndPort) Parses the supplied string containing a colon delimited hostname and port.private static SearchScopeparseScope(String scope) Parses the supplied scope in string form.
-
Constructor Details
-
DefaultUrlParser
public DefaultUrlParser()
-
-
Method Details
-
parse
Description copied from interface:UrlParserParses the supplied URL into aUrl. -
parseHostAndPort
Parses the supplied string containing a colon delimited hostname and port.- Parameters:
hostAndPort- to parse- Returns:
- array containing a string hostname in the first index and an integer port in the second index
-
parseAttributes
Parses the supplied comma delimited attributes.- Parameters:
attrs- to parse- Returns:
- array of attributes
-
parseScope
Parses the supplied scope in string form.- Parameters:
scope- to parse- Returns:
- search scope
-