net.sf.regain.crawler
Class RedirectException
java.lang.Object
java.lang.Throwable
java.lang.Exception
net.sf.regain.RegainException
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
mRedirectUrl
private String mRedirectUrl
- Extra info, for instance redirectUrl
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.
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, Copyright (C) 2004-2010 Til Schneider, www.murfman.de, Thomas Tesche, www.clustersystems.info