public class RedirectRequiredException extends ServiceException
Constructor and Description |
---|
RedirectRequiredException(java.net.HttpURLConnection httpConn) |
RedirectRequiredException(int sc,
java.lang.String location)
Initialize the redirect required exception.
|
Modifier and Type | Method and Description |
---|---|
java.lang.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, toXmlErrorMessage
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