KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > pipelines > valves > ValveContext


1 /*
2  * Copyright 2000-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.jahia.pipelines.valves;
17
18 import org.jahia.pipelines.*;
19
20 /**
21  * @author <a HREF="mailto:david@bluesunrise.com">David Sean Taylor</a>
22  * @version $Id: ValveContext.java 10570 2005-09-13 09:35:40Z pvollenweider $
23  */

24 public interface ValveContext {
25
26     /**
27      * <p>Cause the <code>invoke()</code> method of the next Valve
28      * that is part of the Pipeline currently being processed (if any)
29      * to be executed, passing on the specified request and response
30      * objects plus this <code>ValveContext</code> instance.
31      * Exceptions thrown by a subsequently executed Valve will be
32      * passed on to our caller.</p>
33      *
34      * <p>If there are no more Valves to be executed, execution of
35      * this method will result in a no op.</p>
36      *
37      * @param context The run-time information, including the servlet
38      * request and response we are processing.
39      *
40      * @exception PipelineException Thrown by a subsequent Valve.
41      */

42     public void invokeNext(Object JavaDoc context)
43         throws PipelineException;
44 }
45
Popular Tags