public class CdxRecord extends Object
| Constructor and Description |
|---|
CdxRecord() |
| Modifier and Type | Method and Description |
|---|---|
static long |
computeCollectiondate(String timestamp)
Provides the artifact collection date that corresponds to a given text
timestamp.
|
static long |
computeNumericTimestamp(long collectionDate)
Provides the numeric timestamp that corresponds to a given artifact
collection date.
|
static String |
computeTextTimestamp(long collectionDate)
Provides the text timestamp that corresponds to a given artifact collection
date.
|
boolean |
equals(Object o) |
String |
getArchiveName()
Provides the archive name.
|
String |
getDigest()
Provides the digest.
|
int |
getHttpStatus()
Provides the HTTP status code.
|
long |
getLength()
Provides the content length.
|
String |
getMimeType()
Provides the MIME type.
|
long |
getOffset()
Provides the content offset.
|
String |
getRedirectUrl()
Provides the redirect URL.
|
String |
getRobotFlags()
Provides the robot flags.
|
long |
getTimestamp()
Provides the timestamp.
|
String |
getUrl()
Provides the URL.
|
String |
getUrlSortKey()
Provides the URL sort key.
|
int |
hashCode() |
void |
setArchiveName(String archiveName)
Saves the archive name.
|
void |
setDigest(String digest)
Saves the digest.
|
void |
setHttpStatus(int httpStatus)
Saves the HTTP status code.
|
void |
setLength(long length)
Saves the content length.
|
void |
setMimeType(String mimeType)
Saves the MIME type.
|
void |
setOffset(long offset)
Saves the content offset.
|
void |
setRedirectUrl(String redirectUrl)
Saves the redirect URL.
|
void |
setRobotFlags(String robotFlags)
Saves the robot flags.
|
void |
setTimestamp(long timestamp)
Saves the timestamp.
|
void |
setUrl(String url)
Saves the URL.
|
void |
setUrlSortKey(String urlSortKey)
Saves the URL sort key.
|
String |
toIaText()
Provides the representation of this object in Internet Archive format.
|
String |
toJson()
Provides the representation of this object in JSON format.
|
String |
toString() |
void |
toXmlText(XMLStreamWriter writer)
Writes the representation of this object in OpenWayback XML format.
|
public String getUrlSortKey()
public void setUrlSortKey(String urlSortKey)
urlSortKey - A String with the URL sort key.public long getTimestamp()
public void setTimestamp(long timestamp)
timestamp - A long with the timestamp.public String getUrl()
public void setUrl(String url)
url - A String with the URL.public String getMimeType()
public void setMimeType(String mimeType)
mimeType - A String with the MIME type.public int getHttpStatus()
public void setHttpStatus(int httpStatus)
httpStatus - An int with the HTTP status code.public String getDigest()
public void setDigest(String digest)
digest - A String with the digest.public String getRedirectUrl()
public void setRedirectUrl(String redirectUrl)
redirectUrl - A String with the redirect URL.public String getRobotFlags()
public void setRobotFlags(String robotFlags)
robotFlags - A String with the robot flags.public long getLength()
public void setLength(long length)
length - A long with the content length.public long getOffset()
public void setOffset(long offset)
offset - A long with the content offset.public String getArchiveName()
public void setArchiveName(String archiveName)
archiveName - A long with the archive name.public String toIaText()
public void toXmlText(XMLStreamWriter writer) throws XMLStreamException
writer - An XMLStreamWriter where to output the XML representation of this
object.XMLStreamException - if there are problems writing the XML element.public String toJson()
public static long computeCollectiondate(String timestamp)
timestamp - A String with the timestamp.public static String computeTextTimestamp(long collectionDate)
collectionDate - A long with the artifact collection date.public static long computeNumericTimestamp(long collectionDate)
collectionDate - A long with the artifact collection date.Copyright © 2000–2019 LOCKSS Program. All rights reserved.