public class RedirectRequiredException extends ServiceException
| Constructor and Description |
|---|
RedirectRequiredException(HttpURLConnection httpConn) |
RedirectRequiredException(int sc,
String location)
Initialize the redirect required exception.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getRedirectLocation() |
addSibling, getCodeName, getDebugInfo, getDomainName, getExtendedHelp, getHttpErrorCodeOverride, getHttpHeader, getHttpHeaders, getInternalReason, getLocation, getLocationType, getMessage, getOAuthProxyResponse, getResponseBody, getResponseContentType, getSendReport, getSiblings, hasOAuthProxyResponse, initCause, matches, matchesAny, setCode, setDebugInfo, setDomain, setExtendedHelp, setHeaderLocation, setHttpErrorCodeOverride, setInternalReason, setLocation, setResponse, setResponseBody, setResponseContentType, setSendReport, setXpathLocation, toString, toXmlErrorMessage, toXmlErrorMessageaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic RedirectRequiredException(int sc,
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(HttpURLConnection httpConn) throws IOException
IOExceptionpublic String getRedirectLocation()
Copyright © 2012. All Rights Reserved.