ccc.web.rendering
Class RedirectRequiredException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by ccc.web.rendering.RedirectRequiredException
All Implemented Interfaces:
java.io.Serializable

public class RedirectRequiredException
extends java.lang.RuntimeException

An exception indicating that a redirect is required.

Author:
Civic Computing Ltd.
See Also:
Serialized Form

Constructor Summary
RedirectRequiredException(java.lang.String target)
          Constructor.
RedirectRequiredException(java.lang.String target, boolean isPermanent)
          Constructor.
 
Method Summary
 java.lang.String getTarget()
          Accessor for the Resource which is the target of the redirect.
 boolean isPermanent()
          Accessor.
 
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

RedirectRequiredException

public RedirectRequiredException(java.lang.String target)
Constructor.

Parameters:
target - The target path for the redirect.

RedirectRequiredException

public RedirectRequiredException(java.lang.String target,
                                 boolean isPermanent)
Constructor.

Parameters:
target - The target path for the redirect.
isPermanent - Is the redirect permanent.
Method Detail

getTarget

public java.lang.String getTarget()
Accessor for the Resource which is the target of the redirect.

Returns:
The redirect's target, a Resource.

isPermanent

public final boolean isPermanent()
Accessor.

Returns:
Returns true if the redirect is permanent, false otherwise.


Copyright © 2010. All Rights Reserved.