HttpRetryException


HttpRetryException java.net

Java 5.0 serializable checked

An exception of this type is thrown when an HTTP request needs to be retried (due to a server redirect or authentication request, for example) but the protocol handler cannot automatically retry it because the HttpURLConnection has been placed in streaming mode. (See the setFixedLengthStreamingMode( ) and setChunkedStreamingMode( ) methods of HttpURLConnection .) The methods of the exception provide details about how the request should be retried.

Figure 12-4. java.net.HttpRetryException

 public class  HttpRetryException  extends java.io.IOException {  // Public Constructors  public  HttpRetryException  (String  detail  , int  code  );        public  HttpRetryException  (String  detail  , int  code  , String  location  );  // Public Instance Methods  public String  getLocation  ( );        public String  getReason  ( );        public int  responseCode  ( );   } 



Java In A Nutshell
Java In A Nutshell, 5th Edition
ISBN: 0596007736
EAN: 2147483647
Year: 2004
Pages: 1220

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net