com.oaklandsw.http
Class HttpRetryException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.io.IOException
              extended bycom.oaklandsw.http.HttpException
                  extended bycom.oaklandsw.http.HttpRetryException
All Implemented Interfaces:
java.io.Serializable

public class HttpRetryException
extends HttpException

Used when an HTTP request requires a retry, but cannot be retried automatically because streaming mode (HttpURLConnection.set[...]StreamingMode()) was enabled.

This is functionally identical to java.net.HttpRetryException introduced in 1.5.

See Also:
Serialized Form

Constructor Summary
HttpRetryException(java.lang.String message, int code)
           
HttpRetryException(java.lang.String message, int code, java.lang.String location)
           
 
Method Summary
 java.lang.String getLocation()
           
 java.lang.String getReason()
           
 boolean isRetryDueToFailure()
           
 int responseCode()
           
 void setRetryDueToFailure(boolean rdtf)
           
 java.lang.String toString()
           
 
Methods inherited from class com.oaklandsw.http.HttpException
getCause, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HttpRetryException

public HttpRetryException(java.lang.String message,
                          int code)

HttpRetryException

public HttpRetryException(java.lang.String message,
                          int code,
                          java.lang.String location)
Method Detail

isRetryDueToFailure

public boolean isRetryDueToFailure()

setRetryDueToFailure

public void setRetryDueToFailure(boolean rdtf)

responseCode

public int responseCode()

getLocation

public java.lang.String getLocation()

getReason

public java.lang.String getReason()

toString

public java.lang.String toString()


Copyright © 2002-2007 Oakland Software Incorporated. All Rights Reserved.