public final class WhoisServer extends ListObject<WhoisServer>
| Modifier and Type | Field and Description | 
|---|---|
| static int | DEFAULT_PORTThe whois default port. | 
| Constructor and Description | 
|---|
| WhoisServer() | 
| Modifier and Type | Method and Description | 
|---|---|
| Pattern | getAvailablePattern()Returns the pattern for checking the server response for an available
 domain. | 
| List<Pattern> | getErrorPatterns()Returns the pattern for checking the server response for an error
 response. | 
| String | getHost()Returns the whois server. | 
| String | getQueryFormat()Returns the optional query format in a C printf style. | 
| void | setAvailablePattern(Pattern availablePattern)Sets the pattern for checking the server response for an available
 domain. | 
| void | setErrorPatterns(List<Pattern> errorPatterns)Sets the error pattern for checking the server response for an error
 response. | 
| void | setHost(String host)Sets the whois server. | 
| void | setQueryFormat(String queryFormat)Sets the optional query format. | 
| String | toString() | 
public static final int DEFAULT_PORT
public String getHost()
public void setHost(String host)
host - the server, not nullpublic void setQueryFormat(@Nullable String queryFormat)
queryFormat - query format in C's printf style, or null@Nullable public String getQueryFormat()
null the whois server accepts the unformatted
 domain.public Pattern getAvailablePattern()
public void setAvailablePattern(Pattern availablePattern)
availablePattern - the available pattern, maybe nullpublic List<Pattern> getErrorPatterns()
public void setErrorPatterns(List<Pattern> errorPatterns)
errorPatterns - the error patterns, maybe emptyCopyright © 2016. All rights reserved.