|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.connectivity.framework.crawler.web.http.HttpStatus
public class HttpStatus
Set of status codes for retrieved URL.
| Field Summary | |
|---|---|
static int |
ACCESS_DENIED
Access denied - authorization required, but missing/incorrect. |
static int |
BLOCKED
Thread was blocked HTTP.max.delays times during fetching. |
static int |
EXCEPTION
Unspecified exception occurred. |
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 HttpStatus |
STATUS_BLOCKED
The Constant STATUS_BLOCKED. |
static HttpStatus |
STATUS_FAILED
The Constant STATUS_FAILED. |
static HttpStatus |
STATUS_GONE
The Constant STATUS_GONE. |
static HttpStatus |
STATUS_NOTFETCHING
The Constant STATUS_NOTFETCHING. |
static HttpStatus |
STATUS_NOTFOUND
The Constant STATUS_NOTFOUND. |
static HttpStatus |
STATUS_NOTMODIFIED
The Constant STATUS_NOTMODIFIED. |
static HttpStatus |
STATUS_REDIR_EXCEEDED
The Constant STATUS_REDIR_EXCEEDED. |
static HttpStatus |
STATUS_RETRY
The Constant STATUS_RETRY. |
static HttpStatus |
STATUS_ROBOTS_DENIED
The Constant STATUS_ROBOTS_DENIED. |
static HttpStatus |
STATUS_SUCCESS
The Constant STATUS_SUCCESS. |
static HttpStatus |
STATUS_WOULDBLOCK
The Constant STATUS_WOULDBLOCK. |
static int |
SUCCESS
Content was retrieved without errors. |
static int |
TEMP_MOVED
Resource has moved temporarily. |
static int |
WOULDBLOCK
Request was refused by protocol plug-ins, because it would block. |
| Constructor Summary | |
|---|---|
HttpStatus()
Empty constructor. |
|
HttpStatus(int code)
Creates new object with given status code and empty message. |
|
HttpStatus(int code,
java.lang.Object message)
Creates new object with given status code and object as a message. |
|
HttpStatus(int code,
java.lang.String message)
Creates new object with the given status code and message. |
|
HttpStatus(java.lang.Throwable throwable)
Creates new object with the EXCEPTION status. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
int |
getCode()
Returns status code. |
java.lang.String |
getMessage()
Returns status message. |
int |
hashCode()
|
boolean |
isPermanentFailure()
Checks if the HTTP error is permanent. |
boolean |
isSuccess()
Checks if the status code is equal to SUCCESS. |
boolean |
isTransientFailure()
Checks if the HTTP error is transient. |
void |
setCode(int code)
Assigns status code. |
void |
setMessage(java.lang.String message)
Assigns status message. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, 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 int WOULDBLOCK
public static final int BLOCKED
public static final HttpStatus STATUS_SUCCESS
public static final HttpStatus STATUS_FAILED
public static final HttpStatus STATUS_GONE
public static final HttpStatus STATUS_NOTFOUND
public static final HttpStatus STATUS_RETRY
public static final HttpStatus STATUS_ROBOTS_DENIED
public static final HttpStatus STATUS_REDIR_EXCEEDED
public static final HttpStatus STATUS_NOTFETCHING
public static final HttpStatus STATUS_NOTMODIFIED
public static final HttpStatus STATUS_WOULDBLOCK
public static final HttpStatus STATUS_BLOCKED
| Constructor Detail |
|---|
public HttpStatus()
public HttpStatus(int code,
java.lang.String message)
code - codemessage - Stringpublic HttpStatus(int code)
code - code
public HttpStatus(int code,
java.lang.Object message)
code - status codemessage - Objectpublic HttpStatus(java.lang.Throwable throwable)
throwable - Throwable| Method Detail |
|---|
public int getCode()
public void setCode(int code)
code - the codepublic boolean isSuccess()
public boolean isTransientFailure()
public boolean isPermanentFailure()
public java.lang.String getMessage()
public void setMessage(java.lang.String message)
message - Stringpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||