public class CrawleableUri extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
private static String |
CHARSET_NAME |
private Map<String,Object> |
data |
private static Charset |
ENCODING_CHARSET |
private InetAddress |
ipAddress |
private static org.slf4j.Logger |
LOGGER |
private static long |
serialVersionUID |
private long |
timestampNextCrawl |
private UriType |
type
Deprecated.
|
private URI |
uri |
private static int |
URI_START_INDEX |
| Constructor and Description |
|---|
CrawleableUri(URI uri) |
CrawleableUri(URI uri,
InetAddress ipAddress) |
CrawleableUri(URI uri,
InetAddress ipAddress,
UriType type)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addData(String key,
Object data) |
boolean |
equals(Object obj) |
static CrawleableUri |
fromByteArray(byte[] bytes)
Deprecated.
Use the JSON deserialization instead.
|
static CrawleableUri |
fromByteBuffer(ByteBuffer buffer)
Deprecated.
Use the JSON deserialization instead.
|
Map<String,Object> |
getData() |
Object |
getData(String key) |
InetAddress |
getIpAddress() |
long |
getTimestampNextCrawl() |
UriType |
getType()
Deprecated.
|
URI |
getUri() |
int |
hashCode() |
void |
setData(Map<String,Object> data) |
void |
setIpAddress(InetAddress ipAddress) |
void |
setTimestampNextCrawl(long timestampNextCrawl) |
void |
setType(UriType type)
Deprecated.
|
byte[] |
toByteArray()
Deprecated.
Use the JSON serialization instead.
|
ByteBuffer |
toByteBuffer()
Deprecated.
Use the JSON serialization instead.
|
String |
toString() |
private static final long serialVersionUID
private static final org.slf4j.Logger LOGGER
private static final String CHARSET_NAME
private static final Charset ENCODING_CHARSET
private static final int URI_START_INDEX
private final URI uri
private InetAddress ipAddress
@Deprecated private UriType type
private long timestampNextCrawl
public CrawleableUri(URI uri)
public CrawleableUri(URI uri, InetAddress ipAddress)
@Deprecated public CrawleableUri(URI uri, InetAddress ipAddress, UriType type)
@Deprecated public static CrawleableUri fromByteArray(byte[] bytes)
bytes - public static CrawleableUri fromByteBuffer(ByteBuffer buffer)
buffer - public InetAddress getIpAddress()
public void setIpAddress(InetAddress ipAddress)
@Deprecated public UriType getType()
@Deprecated public void setType(UriType type)
public URI getUri()
@Deprecated public ByteBuffer toByteBuffer()
@Deprecated public byte[] toByteArray()
public long getTimestampNextCrawl()
public void setTimestampNextCrawl(long timestampNextCrawl)
Copyright © 2017–2019. All rights reserved.