|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.nutch.io.VersionedWritable
org.apache.nutch.protocol.ProtocolStatus
Field Summary | |
static int |
ACCESS_DENIED
Access denied - authorization required, but missing/incorrect. |
static int |
EXCEPTION
Unspecified exception occured. |
static int |
FAILED
Content was not retrieved. |
static int |
GONE
Resource is gone. |
static int |
MOVED
Resource has moved permanently. |
static int |
NOTFETCHING
Not fetching. |
static int |
NOTFOUND
Resource was not found. |
static int |
NOTMODIFIED
Unchanged since the last fetch. |
static int |
PROTO_NOT_FOUND
This protocol was not found. |
static int |
REDIR_EXCEEDED
Too many redirects. |
static int |
RETRY
Temporary failure. |
static int |
ROBOTS_DENIED
Access denied by robots.txt rules. |
static ProtocolStatus |
STATUS_FAILED
|
static ProtocolStatus |
STATUS_GONE
|
static ProtocolStatus |
STATUS_NOTFETCHING
|
static ProtocolStatus |
STATUS_NOTFOUND
|
static ProtocolStatus |
STATUS_NOTMODIFIED
|
static ProtocolStatus |
STATUS_REDIR_EXCEEDED
|
static ProtocolStatus |
STATUS_RETRY
|
static ProtocolStatus |
STATUS_ROBOTS_DENIED
|
static ProtocolStatus |
STATUS_SUCCESS
|
static int |
SUCCESS
Content was retrieved without errors. |
static int |
TEMP_MOVED
Resource has moved temporarily. |
Constructor Summary | |
ProtocolStatus()
|
|
ProtocolStatus(int code)
|
|
ProtocolStatus(int code,
long lastModified)
|
|
ProtocolStatus(int code,
Object message)
|
|
ProtocolStatus(int code,
Object message,
long lastModified)
|
|
ProtocolStatus(int code,
String[] args)
|
|
ProtocolStatus(int code,
String[] args,
long lastModified)
|
|
ProtocolStatus(Throwable t)
|
Method Summary | |
boolean |
equals(Object o)
|
String[] |
getArgs()
|
int |
getCode()
|
long |
getLastModified()
|
String |
getMessage()
|
byte |
getVersion()
Return the version number of the current implementation. |
boolean |
isPermanentFailure()
|
boolean |
isSuccess()
|
boolean |
isTransientFailure()
|
static ProtocolStatus |
read(DataInput in)
|
void |
readFields(DataInput in)
Reads the fields of this object from in . |
void |
setArgs(String[] args)
|
void |
setCode(int code)
|
void |
setLastModified(long lastModified)
|
void |
setMessage(String msg)
|
String |
toString()
|
void |
write(DataOutput out)
Writes the fields of this object to out . |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int SUCCESS
public static final int FAILED
public static final int PROTO_NOT_FOUND
public static final int GONE
public static final int MOVED
public static final int TEMP_MOVED
public static final int NOTFOUND
public static final int RETRY
public static final int EXCEPTION
public static final int ACCESS_DENIED
public static final int ROBOTS_DENIED
public static final int REDIR_EXCEEDED
public static final int NOTFETCHING
public static final int NOTMODIFIED
public static final ProtocolStatus STATUS_SUCCESS
public static final ProtocolStatus STATUS_FAILED
public static final ProtocolStatus STATUS_GONE
public static final ProtocolStatus STATUS_NOTFOUND
public static final ProtocolStatus STATUS_RETRY
public static final ProtocolStatus STATUS_ROBOTS_DENIED
public static final ProtocolStatus STATUS_REDIR_EXCEEDED
public static final ProtocolStatus STATUS_NOTFETCHING
public static final ProtocolStatus STATUS_NOTMODIFIED
Constructor Detail |
public ProtocolStatus()
public ProtocolStatus(int code, String[] args)
public ProtocolStatus(int code, String[] args, long lastModified)
public ProtocolStatus(int code)
public ProtocolStatus(int code, long lastModified)
public ProtocolStatus(int code, Object message)
public ProtocolStatus(int code, Object message, long lastModified)
public ProtocolStatus(Throwable t)
Method Detail |
public byte getVersion()
VersionedWritable
getVersion
in class VersionedWritable
public static ProtocolStatus read(DataInput in) throws IOException
IOException
public void readFields(DataInput in) throws IOException
Writable
in
. For efficiency,
implementations should attempt to re-use storage in the existing object
where possible.
readFields
in interface Writable
readFields
in class VersionedWritable
IOException
public void write(DataOutput out) throws IOException
Writable
out
.
write
in interface Writable
write
in class VersionedWritable
IOException
public void setArgs(String[] args)
public String[] getArgs()
public int getCode()
public void setCode(int code)
public boolean isSuccess()
public boolean isTransientFailure()
public boolean isPermanentFailure()
public String getMessage()
public void setMessage(String msg)
public long getLastModified()
public void setLastModified(long lastModified)
public boolean equals(Object o)
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |