2011/08/05 - Jakarta Cactus has been retired.

For more information, please explore the Attic.

View Javadoc

1   /* 
2    * ========================================================================
3    * 
4    * Licensed to the Apache Software Foundation (ASF) under one or more
5    * contributor license agreements.  See the NOTICE file distributed with
6    * this work for additional information regarding copyright ownership.
7    * The ASF licenses this file to You under the Apache License, Version 2.0
8    * (the "License"); you may not use this file except in compliance with
9    * the License.  You may obtain a copy of the License at
10   * 
11   *   http://www.apache.org/licenses/LICENSE-2.0
12   * 
13   * Unless required by applicable law or agreed to in writing, software
14   * distributed under the License is distributed on an "AS IS" BASIS,
15   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   * See the License for the specific language governing permissions and
17   * limitations under the License.
18   * 
19   * ========================================================================
20   */
21  package org.apache.cactus.internal.server;
22  
23  import javax.servlet.FilterChain;
24  import javax.servlet.FilterConfig;
25  
26  /**
27   * Holder class that contains the instances of the implicit objects that will
28   * be accessible in the test classes (ie subclasses of
29   * <code>FilterTestCase</code>).
30   *
31   * @version $Id: FilterImplicitObjects.java 238991 2004-05-22 11:34:50Z vmassol $
32   */
33  public class FilterImplicitObjects extends AbstractWebImplicitObjects
34  {
35      /**
36       * The Filter configuration object.
37       */
38      protected FilterConfig config;
39  
40      /**
41       * The Filter chain object.
42       */
43      protected FilterChain filterChain;
44  
45      /**
46       * @return the <code>FilterConfig</code> implicit object
47       */
48      public FilterConfig getFilterConfig()
49      {
50          return this.config;
51      }
52  
53      /**
54       * @param theConfig the <code>FilterConfig</code> implicit object
55       */
56      public void setFilterConfig(FilterConfig theConfig)
57      {
58          this.config = theConfig;
59      }
60  
61      /**
62       * @return the <code>FilterChain</code> implicit object
63       */
64      public FilterChain getFilterChain()
65      {
66          return this.filterChain;
67      }
68  
69      /**
70       * @param theFilterChain the <code>FilterChain</code> implicit object
71       */
72      public void setFilterChain(FilterChain theFilterChain)
73      {
74          this.filterChain = theFilterChain;
75      }
76  }