org.apache.wiki.api.exceptions
Class RedirectException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.wiki.api.exceptions.WikiException
              extended by org.apache.wiki.api.exceptions.FilterException
                  extended by org.apache.wiki.api.exceptions.RedirectException
All Implemented Interfaces:
Serializable

public class RedirectException
extends FilterException

This exception may be thrown if a filter wants to reject something and redirect the user elsewhere.

Since:
2.1.112
See Also:
Serialized Form

Constructor Summary
RedirectException(String msg, String redirect)
          Constructs a new RedirectException.
 
Method Summary
 String getRedirect()
          Get the URI for redirection.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RedirectException

public RedirectException(String msg,
                         String redirect)
Constructs a new RedirectException.

Parameters:
msg - The message for the exception
redirect - The redirect URI.
Method Detail

getRedirect

public String getRedirect()
Get the URI for redirection.

Returns:
The URI given in the constructor.


Copyright © {inceptionYear}-2014 The Apache Software Foundation. All rights reserved.