KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > servletunit > FilterConfigSimulator


1 // StrutsTestCase - a JUnit extension for testing Struts actions
2
// within the context of the ActionServlet.
3
// Copyright (C) 2002 Deryl Seale
4
//
5
// This library is free software; you can redistribute it and/or
6
// modify it under the terms of the Apache Software License as
7
// published by the Apache Software Foundation; either version 1.1
8
// of the License, or (at your option) any later version.
9
//
10
// This library is distributed in the hope that it will be useful,
11
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
// Apache Software Foundation Licens for more details.
14
//
15
// You may view the full text here: http://www.apache.org/LICENSE.txt
16

17 package servletunit;
18
19 import javax.servlet.FilterConfig JavaDoc;
20 import javax.servlet.ServletContext JavaDoc;
21 import java.util.Enumeration JavaDoc;
22
23 // StrutsTestCase - a JUnit extension for testing Struts actions
24
// within the context of the ActionServlet.
25
// Copyright (C) 2002 Deryl Seale
26
//
27
// This library is free software; you can redistribute it and/or
28
// modify it under the terms of the Apache Software License as
29
// published by the Apache Software Foundation; either version 1.1
30
// of the License, or (at your option) any later version.
31
//
32
// This library is distributed in the hope that it will be useful,
33
// but WITHOUT ANY WARRANTY; without even the implied warranty of
34
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35
// Apache Software Foundation Licens for more details.
36
//
37
// You may view the full text here: http://www.apache.org/LICENSE.txt
38

39 public class FilterConfigSimulator implements FilterConfig JavaDoc {
40
41     private ServletContext JavaDoc context = null;
42
43
44     /**
45      * Constructor for the FilterConfigSimulator object
46      *
47      * @param context The ServletContext to be returned by getServletContext
48      */

49     public FilterConfigSimulator(ServletContext JavaDoc context) {
50         this.context = context;
51     }
52
53
54     /**
55      * Gets the filterName attribute of the FilterConfigSimulator object
56      *
57      * currently not supported
58      *
59      * @return The filterName value
60      */

61     public String JavaDoc getFilterName() {
62
63         throw new java.lang.UnsupportedOperationException JavaDoc("Method getFilterName() not yet implemented.");
64     }
65
66
67     /**
68      * Gets the initParameter attribute of the FilterConfigSimulator object
69      *
70      * currently not supported
71      *
72      * @param parm1 Description of the Parameter
73      * @return The initParameter value
74      */

75     public String JavaDoc getInitParameter(String JavaDoc parm1) {
76
77         throw new java.lang.UnsupportedOperationException JavaDoc("Method getInitParameter() not yet implemented.");
78     }
79
80
81     /**
82      * Gets the initParameterNames attribute of the FilterConfigSimulator
83      * object
84      *
85      * currently not supported
86      *
87      * @return The initParameterNames value
88      */

89     public Enumeration JavaDoc getInitParameterNames() {
90
91         throw new java.lang.UnsupportedOperationException JavaDoc("Method getInitParameterNames() not yet implemented.");
92     }
93
94
95     /**
96      * Gets the servletContext attribute of the FilterConfigSimulator object
97      *
98      * @return The servletContext value
99      */

100     public ServletContext JavaDoc getServletContext() {
101         return context;
102     }
103 }
104
Popular Tags