|
Regain 2.1.0-STABLE API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
net.sf.regain.RegainException
net.sf.regain.crawler.HttpStreamException
public class HttpStreamException
Eine spezielle Exception, die nur von
CrawlerToolkit.getHttpStream(java.net.URL)
genutzt wird. Sie stellt
auch den HTTP Antwortcode bereit, woraus sich z.B. erkennen läßt, ob die
Exception auf Grund eines Dead-Links geworfen wurde.
Field Summary | |
---|---|
private int |
mHttpReturnCode
Der HTTP Antwortcode. |
Constructor Summary | |
---|---|
private |
HttpStreamException(String message,
Throwable cause,
int httpReturnCode)
Erzeugt eine neue HttpStreamException-Instanz. |
Method Summary | |
---|---|
static HttpStreamException |
createInstance(String message,
Throwable cause,
URLConnection conn)
Erzeugt eine neue HttpStreamException-Instanz. |
int |
getHttpReturnCode()
Gibt den HTTP-Return-Code zurück. |
boolean |
isHttpReturnCodeFromDeadLink()
Gibt zurück, ob der HTTP-Code con einem dead link stammt. |
Methods inherited from class net.sf.regain.RegainException |
---|
getCause, printStackTrace, printStackTrace |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private int mHttpReturnCode
Constructor Detail |
---|
private HttpStreamException(String message, Throwable cause, int httpReturnCode)
message
- Die Fehlermeldung.cause
- Der Fehler, der diese Ausnahme ausgel�st hat. Ist
null
wenn dies der urspr�ngliche Fehler ist.httpReturnCode
- Der HTTP-Return-CodeMethod Detail |
---|
public static HttpStreamException createInstance(String message, Throwable cause, URLConnection conn)
message
- Die Fehlermeldung.cause
- Der Fehler, der diese Ausnahme ausgel�st hat. Ist
null
wenn dies der urspr�ngliche Fehler ist.conn
- Die HTTP-Connection, bei der der Fehler auftrat.
public int getHttpReturnCode()
public boolean isHttpReturnCodeFromDeadLink()
|
Regain 2.1.0-STABLE API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |