public class

RedirectRequiredException

extends ServiceException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ com.google.gdata.util.ServiceException
         ↳ com.google.gdata.util.RedirectRequiredException

Class Overview

Exception thrown when a redirect is required to satisfy a request.

Summary

Constants
String LOCATION Name of HTTP header containing redirect target location.
[Expand]
Inherited Constants
From class java.lang.Exception
From class java.lang.Throwable
[Expand]
Inherited Fields
From class com.google.gdata.util.ServiceException
From class java.lang.Throwable
Public Constructors
RedirectRequiredException(int sc, String location)
Initialize the redirect required exception.
RedirectRequiredException(HttpURLConnection httpConn)
Public Methods
String getRedirectLocation()
[Expand]
Inherited Methods
From class com.google.gdata.util.ServiceException
From class java.lang.Throwable
From class java.lang.Object

Constants

private static final String LOCATION

Name of HTTP header containing redirect target location.

Constant Value: "Location"

Public Constructors

public RedirectRequiredException (int sc, String location)

Initialize the redirect required exception.

Parameters
sc The status code of the redirect - one of HTTP_MOVED_PERM or HTTP_MOVED_TEMP.
location The redirect location

public RedirectRequiredException (HttpURLConnection httpConn)

Parameters
httpConn
Throws
IOException

Public Methods

public String getRedirectLocation ()