KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > facelets > mock > MockRequestDispatcher


1 /**
2  * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
3  * Licensed under the Common Development and Distribution License,
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  * http://www.sun.com/cddl/
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
12  * implied. See the License for the specific language governing
13  * permissions and limitations under the License.
14  */

15
16 package com.sun.facelets.mock;
17
18 import java.io.IOException JavaDoc;
19 import java.net.URL JavaDoc;
20
21 import javax.servlet.RequestDispatcher JavaDoc;
22 import javax.servlet.ServletException JavaDoc;
23 import javax.servlet.ServletRequest JavaDoc;
24 import javax.servlet.ServletResponse JavaDoc;
25
26 /**
27  *
28  * @author Jacob Hookom
29  * @version $Id: MockRequestDispatcher.java,v 1.1 2005/07/18 08:25:42 jhook Exp $
30  */

31 public class MockRequestDispatcher implements RequestDispatcher JavaDoc {
32
33     protected final URL JavaDoc url;
34     
35     public MockRequestDispatcher(URL JavaDoc url) {
36         this.url = url;
37     }
38
39     public void forward(ServletRequest JavaDoc request, ServletResponse JavaDoc response)
40             throws ServletException JavaDoc, IOException JavaDoc {
41         // TODO Auto-generated method stub
42

43     }
44
45     public void include(ServletRequest JavaDoc request, ServletResponse JavaDoc response)
46             throws ServletException JavaDoc, IOException JavaDoc {
47         // TODO Auto-generated method stub
48

49     }
50
51 }
52
Popular Tags