01: /*
02: * Enhydra Java Application Server Project
03: *
04: * The contents of this file are subject to the Enhydra Public License
05: * Version 1.1 (the "License"); you may not use this file except in
06: * compliance with the License. You may obtain a copy of the License on
07: * the Enhydra web site ( http://www.enhydra.org/ ).
08: *
09: * Software distributed under the License is distributed on an "AS IS"
10: * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
11: * the License for the specific terms governing rights and limitations
12: * under the License.
13: *
14: * The Initial Developer of the Enhydra Application Server is Lutris
15: * Technologies, Inc. The Enhydra Application Server and portions created
16: * by Lutris Technologies, Inc. are Copyright Lutris Technologies, Inc.
17: * All Rights Reserved.
18: *
19: * Contributor(s):
20: *
21: * $Id: ClientPageRedirectException.java,v 1.2 2006-06-15 13:40:47 sinisa Exp $
22: */
23:
24: package com.lutris.appserver.server.httpPresentation;
25:
26: /**
27: * Exception used to signal a page redirection via the client.
28: */
29: public class ClientPageRedirectException extends PageRedirectException {
30: /**
31: * Constructor a client redirection exception.
32: *
33: * @param url The url where the request should be redirected.
34: * It may have arguments encoded and/or they may be added with
35: * <CODE>addArgument</CODE>.
36: * @see PageRedirectException#addArgument
37: */
38: public ClientPageRedirectException(String url) {
39: super (url);
40: }
41:
42: /**
43: * Constructor a client redirection exception.
44: *
45: * @param url The url where the request should be redirected.
46: * It may have arguments encoded and/or they may be added with
47: * <CODE>addArgument</CODE>.
48: * @param encoding character encoding to use.
49: * @see PageRedirectException#addArgument
50: */
51: public ClientPageRedirectException(String url, String encoding) {
52: super(url, encoding);
53: }
54: }
|