|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.google.gdata.util.ServiceException
com.google.gdata.util.RedirectRequiredException
public class RedirectRequiredException
Exception thrown when a redirect is required to satisfy a request.
Constructor Summary | |
---|---|
RedirectRequiredException(java.net.HttpURLConnection httpConn)
|
|
RedirectRequiredException(int sc,
java.lang.String location)
Initialize the redirect required exception. |
Method Summary | |
---|---|
java.lang.String |
getRedirectLocation()
|
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RedirectRequiredException(int sc, java.lang.String location)
sc
- the status code of the redirect - one of
HttpURLConnection.HTTP_MOVED_PERM
or
HttpURLConnection.HTTP_MOVED_TEMP
.location
- the redirect locationpublic RedirectRequiredException(java.net.HttpURLConnection httpConn) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public java.lang.String getRedirectLocation()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |