org.apache.commons.httpclient
Class InvalidRedirectLocationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by org.apache.commons.httpclient.HttpException
                  extended by org.apache.commons.httpclient.ProtocolException
                      extended by org.apache.commons.httpclient.RedirectException
                          extended by org.apache.commons.httpclient.InvalidRedirectLocationException
All Implemented Interfaces:
Serializable

public class InvalidRedirectLocationException
extends RedirectException

Signals violation of HTTP specification caused by an invalid redirect location

Since:
3.1
Author:
Oleg Kalnichevski
See Also:
Serialized Form

Constructor Summary
InvalidRedirectLocationException(String message, String location)
          Creates a new InvalidRedirectLocationException with the specified detail message.
InvalidRedirectLocationException(String message, String location, Throwable cause)
          Creates a new RedirectException with the specified detail message and cause.
 
Method Summary
 String getLocation()
           
 
Methods inherited from class org.apache.commons.httpclient.HttpException
getCause, getReason, getReasonCode, printStackTrace, printStackTrace, printStackTrace, setReason, setReasonCode
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InvalidRedirectLocationException

public InvalidRedirectLocationException(String message,
                                        String location)
Creates a new InvalidRedirectLocationException with the specified detail message.

Parameters:
message - the exception detail message
location - redirect location

InvalidRedirectLocationException

public InvalidRedirectLocationException(String message,
                                        String location,
                                        Throwable cause)
Creates a new RedirectException with the specified detail message and cause.

Parameters:
message - the exception detail message
location - redirect location
cause - the Throwable that caused this exception, or null if the cause is unavailable, unknown, or not a Throwable
Method Detail

getLocation

public String getLocation()


Copyright © 2001-2008 Apache Software Foundation. All Rights Reserved.