Constructor and Description |
---|
AliasInfo(String domain,
String aliasOf,
Date lastChange)
Constructor for the AliasInfo class.
|
Modifier and Type | Method and Description |
---|---|
String |
getAliasOf() |
String |
getDomain() |
Date |
getExpirationDate()
The date when this alias will expire (or has expired).
|
Date |
getLastChange() |
boolean |
isExpired()
Is this alias expired? This method depends upon the Constant:
dk.netarkivet.harvester.webinterface.Constants.ALIAS_TIMEOUT_IN_MILLISECONDS Note that this constant is now read
from settings.
|
String |
toString() |
public AliasInfo(String domain, String aliasOf, Date lastChange) throws ArgumentNotValid
domain
- a given domainaliasOf
- the given domain is an alias of this domainlastChange
- the alias was (re-)registered on this date.ArgumentNotValid
- in the following cases: 1. domain is null or empty 2. aliasOf is null or empty 3.
lastChange is null 4. domain equals aliasOfpublic String getAliasOf()
public Date getLastChange()
public boolean isExpired()
public Date getExpirationDate()
public String toString()
toString
in class Object
Object.toString()
Copyright © 2005–2015 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.