1 /* 2 * ======================================================================== 3 * 4 * Copyright 2001-2004 The Apache Software Foundation. 5 * 6 * Licensed under the Apache License, Version 2.0 (the "License"); 7 * you may not use this file except in compliance with the License. 8 * You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, software 13 * distributed under the License is distributed on an "AS IS" BASIS, 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 * See the License for the specific language governing permissions and 16 * limitations under the License. 17 * 18 * ======================================================================== 19 */ 20 package org.apache.cactus.internal.server; 21 22 import javax.servlet.ServletContext; 23 import javax.servlet.http.HttpServletRequest; 24 import javax.servlet.http.HttpServletResponse; 25 26 import org.apache.cactus.spi.server.ImplicitObjects; 27 28 /** 29 * Interface for implicit objects that exist 30 * for all web requests (<code>HttpServletRequest</code>, 31 * <code>HttpServletResponse</code> and <code>ServletContext</code>). 32 * 33 * @version $Id: WebImplicitObjects.java,v 1.1 2004/05/22 11:34:45 vmassol Exp $ 34 */ 35 public interface WebImplicitObjects extends ImplicitObjects 36 { 37 /** 38 * @return the <code>ServletContext</code> implicit object 39 */ 40 ServletContext getServletContext(); 41 42 /** 43 * @param theContext the <code>ServletContext</code> implicit object 44 */ 45 void setServletContext(ServletContext theContext); 46 47 /** 48 * @return the <code>HttpServletResponse</code> implicit object 49 */ 50 HttpServletResponse getHttpServletResponse(); 51 52 /** 53 * @param theResponse the <code>HttpServletResponse</code> implicit object 54 */ 55 void setHttpServletResponse(HttpServletResponse theResponse); 56 57 /** 58 * @return the <code>HttpServletRequest</code> implicit object 59 */ 60 HttpServletRequest getHttpServletRequest(); 61 62 /** 63 * @param theRequest the <code>HttpServletRequest</code> implicit object 64 */ 65 void setHttpServletRequest(HttpServletRequest theRequest); 66 } 67