com.xmlserv.main
Class RedirectException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--javax.servlet.ServletException
                    |
                    +--com.xmlserv.main.RedirectException
All Implemented Interfaces:
java.io.Serializable

public class RedirectException
extends javax.servlet.ServletException

This subclass of ServletException can be used to force XMLServ to send a redirect to another URL. The target is relative to the base path if it does not start with '/'.

Version:
$Id: RedirectException.java,v 1.4 2002/04/16 12:33:04 muecke Exp $
Author:
Wolfram Saringer
See Also:
Serialized Form

Constructor Summary
RedirectException(java.lang.String target)
          Create a new Exception object.
 
Method Summary
 java.lang.String getTarget()
          This target is interpreted relative to the base path if it does not start with '/'.
 
Methods inherited from class javax.servlet.ServletException
getRootCause
 
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

RedirectException

public RedirectException(java.lang.String target)
Create a new Exception object.
Parameters:
target - The target URL.
Method Detail

getTarget

public java.lang.String getTarget()
This target is interpreted relative to the base path if it does not start with '/'.
Returns:
The target URL.