Enhydra 3.1 API

com.lutris.appserver.server.httpPresentation
Class PageRedirectException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Error
              |
              +--com.lutris.appserver.server.httpPresentation.PageRedirectException
Direct Known Subclasses:
ClientPageRedirectException, ServerPageRedirectException

public abstract class PageRedirectException
extends java.lang.Error

Base class of page redirection classes. It is a subclass of Error rather than exception, as we only want the presentation manager to catch it.

See Also:
Serialized Form

Constructor Summary
protected PageRedirectException(java.lang.String url)
          Constructor a redirect, saving the URL..
 
Method Summary
 void addArgument(java.lang.String name, java.lang.String value)
          Add an argument to the URL.
 java.lang.String getUrl()
          Get the redirection URL associated with this redirect.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PageRedirectException

protected PageRedirectException(java.lang.String url)
Constructor a redirect, saving the URL..
Parameters:
url - The url where the request should be redirected. It may have arguments encoded and/or they may be added with addArgument.
See Also:
addArgument(java.lang.String, java.lang.String)
Method Detail

addArgument

public void addArgument(java.lang.String name,
                        java.lang.String value)
Add an argument to the URL.
Parameters:
name - Argument name.
value - Argument value.

getUrl

public java.lang.String getUrl()
Get the redirection URL associated with this redirect.
Returns:
The URL string.

Enhydra 3.1 API