org.apache.nutch.protocol
Class ProtocolStatusUtils
java.lang.Object
org.apache.nutch.protocol.ProtocolStatusUtils
- All Implemented Interfaces:
- ProtocolStatusCodes
public class ProtocolStatusUtils
- extends Object
- implements ProtocolStatusCodes
Fields inherited from interface org.apache.nutch.protocol.ProtocolStatusCodes |
ACCESS_DENIED, BLOCKED, EXCEPTION, FAILED, GONE, MOVED, NOTFETCHING, NOTFOUND, NOTMODIFIED, PROTO_NOT_FOUND, REDIR_EXCEEDED, RETRY, ROBOTS_DENIED, SUCCESS, TEMP_MOVED, WOULDBLOCK |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STATUS_SUCCESS
public static final ProtocolStatus STATUS_SUCCESS
STATUS_FAILED
public static final ProtocolStatus STATUS_FAILED
STATUS_GONE
public static final ProtocolStatus STATUS_GONE
STATUS_NOTFOUND
public static final ProtocolStatus STATUS_NOTFOUND
STATUS_RETRY
public static final ProtocolStatus STATUS_RETRY
STATUS_ROBOTS_DENIED
public static final ProtocolStatus STATUS_ROBOTS_DENIED
STATUS_REDIR_EXCEEDED
public static final ProtocolStatus STATUS_REDIR_EXCEEDED
STATUS_NOTFETCHING
public static final ProtocolStatus STATUS_NOTFETCHING
STATUS_NOTMODIFIED
public static final ProtocolStatus STATUS_NOTMODIFIED
STATUS_WOULDBLOCK
public static final ProtocolStatus STATUS_WOULDBLOCK
STATUS_BLOCKED
public static final ProtocolStatus STATUS_BLOCKED
ProtocolStatusUtils
public ProtocolStatusUtils()
getName
public static String getName(int code)
makeStatus
public static ProtocolStatus makeStatus(int code)
makeStatus
public static ProtocolStatus makeStatus(int code,
String message)
makeStatus
public static ProtocolStatus makeStatus(int code,
URL url)
getMessage
public static String getMessage(ProtocolStatus pstatus)
toString
public static String toString(ProtocolStatus status)
Copyright © 2012 The Apache Software Foundation