@NotThreadSafe public final class WhoisServerBuilder extends Object
| Constructor and Description |
|---|
WhoisServerBuilder(de.malkusch.whoisServerList.api.v1.model.Source source)
Sets the source for this factory.
|
| Modifier and Type | Method and Description |
|---|---|
T |
build()
Builds a new list object.
|
protected void |
complete(de.malkusch.whoisServerList.api.v1.model.WhoisServer server)
Completes a created object.
|
protected Class<de.malkusch.whoisServerList.api.v1.model.WhoisServer> |
getObjectType()
Returns the class for the created objects.
|
void |
setHost(String host)
Sets the host name for builded objects.
|
public WhoisServerBuilder(de.malkusch.whoisServerList.api.v1.model.Source source)
source - the sourceprotected void complete(de.malkusch.whoisServerList.api.v1.model.WhoisServer server)
server - the list object, not nullpublic void setHost(String host)
host - the host name, not nullprotected Class<de.malkusch.whoisServerList.api.v1.model.WhoisServer> getObjectType()
public final T build()
throws WhoisServerListException,
InterruptedException
WhoisServerListException - If building the object failedInterruptedException - If the thread was interruptedCopyright © 2014. All Rights Reserved.