EAF 7.6 API

com.lutris.appserver.server.httpPresentation
Class PageRedirectException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Error
          extended by com.lutris.appserver.server.httpPresentation.PageRedirectException
All Implemented Interfaces:
java.io.Serializable
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

Field Summary
protected  java.lang.String encoding
          Character encoding that will be used.
 
Constructor Summary
protected PageRedirectException(java.lang.String url)
          Constructor a redirect, saving the URL.
protected PageRedirectException(java.lang.String url, java.lang.String encoding)
          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 getEncoding()
          Get encoding for this redirect.
 java.lang.String getUrl()
          Get the redirection URL associated with this redirect.
 
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
 

Field Detail

encoding

protected java.lang.String encoding
Character encoding that will be used.

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)

PageRedirectException

protected PageRedirectException(java.lang.String url,
                                java.lang.String encoding)
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.
encoding - encoding to use in this redirect
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.

getEncoding

public java.lang.String getEncoding()
Get encoding for this redirect.

Returns:
encoding

EAF 7.6 API