Package org.ldaptive.url
Class DefaultUrlParser
- java.lang.Object
-
- org.ldaptive.url.DefaultUrlParser
-
-
Constructor Summary
Constructors Constructor Description DefaultUrlParser()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Urlparse(String url)Parses 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.
-
-
-
Method Detail
-
parse
public Url parse(String url)
Description copied from interface:UrlParserParses the supplied URL into aUrl.
-
parseHostAndPort
private static Object[] parseHostAndPort(String hostAndPort)
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
private static String[] parseAttributes(String attrs)
Parses the supplied comma delimited attributes.- Parameters:
attrs- to parse- Returns:
- array of attributes
-
parseScope
private static SearchScope parseScope(String scope)
Parses the supplied scope in string form.- Parameters:
scope- to parse- Returns:
- search scope
-
-