Regain 2.1.0-STABLE API

net.sf.regain.crawler
Class RedirectException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by net.sf.regain.RegainException
              extended by net.sf.regain.crawler.RedirectException
All Implemented Interfaces:
Serializable

public class RedirectException
extends RegainException

Used for handling HTTP redirects.

Author:
Gerhard Olsson
See Also:
CrawlerToolkit.getHttpStream(java.net.URL), Serialized Form

Field Summary
private  String mRedirectUrl
          Extra info, for instance redirectUrl
 
Constructor Summary
RedirectException(String message, String url)
          Creates a new instance of RedirectException.
 
Method Summary
 String getRedirectUrl()
          Gets the redirectUrl of this exception.
 
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

mRedirectUrl

private String mRedirectUrl
Extra info, for instance redirectUrl

Constructor Detail

RedirectException

public RedirectException(String message,
                         String url)
Creates a new instance of RedirectException.

Parameters:
message - The error message.
url - The URL the redirect points to.
Method Detail

getRedirectUrl

public String getRedirectUrl()
Gets the redirectUrl of this exception. (May be null)

Returns:
The extra info of this exception.

Regain 2.1.0-STABLE API

Regain 2.1.0-STABLE, Copyright (C) 2004-2010 Til Schneider, www.murfman.de, Thomas Tesche, www.clustersystems.info