com.ibm.portal.resolver.exceptions
Class RedirectResolutionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.ibm.portal.resolver.exceptions.ResolutionException
com.ibm.portal.resolver.exceptions.RedirectResolutionException
- All Implemented Interfaces:
- Localized, LocalizedStatus, Constants, java.io.Serializable
-
public abstract class RedirectResolutionException
- extends ResolutionException
Exception that indicates to the caller of the resolution process that it
should redirect to the URL produced in writeRedirectURL(Writer) to
complete the resolution process.
- Since:
- 7.0
- See Also:
- Serialized Form
- Note:
This interface is designed to be implemented by clients. |
Method Summary
|
int |
getStatus()
Return as a hint to the client the recommended HTTP status code. |
abstract java.io.Writer |
writeRedirectURL(java.io.Writer out)
Writes the redirect URL onto the target writer |
Methods inherited from class java.lang.Throwable
|
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RedirectResolutionException
protected RedirectResolutionException()
- Default exception without a cause
RedirectResolutionException
protected RedirectResolutionException(java.lang.Throwable th)
- Exception that contains a root cause
- Parameters:
- th - root cause of the exception
getStatus
public int getStatus()
- Description copied from class: ResolutionException
- Returns as a hint to the client the recommended HTTP status code.
Subclasses of this exception are advised to override this method to
provide for more refined error codes.
- Specified by:
- getStatus in interface LocalizedStatus
- Overrides:
- getStatus in class ResolutionException
- Returns:
- HTTP status code
writeRedirectURL
public abstract java.io.Writer writeRedirectURL(java.io.Writer out)
throws java.io.IOException,
StateException
- Writes the redirect URL onto the target writer
- Returns:
- the original exception
- Throws:
- java.io.IOException
- StateException