KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > lutris > appserver > server > httpPresentation > ServerPageRedirectException


1
2 /*
3  * Enhydra Java Application Server Project
4  *
5  * The contents of this file are subject to the Enhydra Public License
6  * Version 1.1 (the "License"); you may not use this file except in
7  * compliance with the License. You may obtain a copy of the License on
8  * the Enhydra web site ( http://www.enhydra.org/ ).
9  *
10  * Software distributed under the License is distributed on an "AS IS"
11  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
12  * the License for the specific terms governing rights and limitations
13  * under the License.
14  *
15  * The Initial Developer of the Enhydra Application Server is Lutris
16  * Technologies, Inc. The Enhydra Application Server and portions created
17  * by Lutris Technologies, Inc. are Copyright Lutris Technologies, Inc.
18  * All Rights Reserved.
19  *
20  * Contributor(s):
21  *
22  * $Id: ServerPageRedirectException.java,v 1.1 2005/07/13 11:09:06 slobodan Exp $
23  */

24
25
26
27
28
29 package com.lutris.appserver.server.httpPresentation;
30
31 /**
32  * Exception used to signal a page redirection internal to server.
33  *
34  */

35 public class ServerPageRedirectException extends PageRedirectException {
36     /**
37      * Constructor a server redirection exception.
38      *
39      * @param url The url where the request should be redirected.
40      * It may have arguments encoded and/or they may be added with
41      * <CODE>addArgument</CODE>.
42      * @see PageRedirectException#addArgument
43      */

44     public ServerPageRedirectException(String JavaDoc url) {
45         super(url);
46     }
47
48         /**
49      * Constructor a server redirection exception.
50      *
51      * @param url The url where the request should be redirected.
52      * It may have arguments encoded and/or they may be added with
53      * <CODE>addArgument</CODE>.
54      * @param encoding character encoding to use
55      * @see PageRedirectException#addArgument
56      */

57     public ServerPageRedirectException(String JavaDoc url, String JavaDoc encoding) {
58         super(url, encoding);
59     }
60 }
61
Popular Tags