View Javadoc

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.apache.portals.bridges.common;
17  
18  import javax.portlet.GenericPortlet;
19  import javax.portlet.PortletRequest;
20  import javax.portlet.PortletResponse;
21  import javax.servlet.ServletContext;
22  import javax.servlet.http.HttpServletRequest;
23  import javax.servlet.http.HttpServletResponse;
24  
25  /***
26   * ServletContextProvider
27   * 
28   * @author <a href="mailto:ate@douma.nu">Ate Douma</a>
29   * @version $Id: ServletContextProvider.java 187206 2004-08-04 23:05:28 +0200 (Wed, 04 Aug 2004) ate $
30   */
31  public interface ServletContextProvider 
32  {
33      ServletContext getServletContext(GenericPortlet portlet);
34  
35      HttpServletRequest getHttpServletRequest(GenericPortlet portlet, PortletRequest request);
36  
37      HttpServletResponse getHttpServletResponse(GenericPortlet portlet, PortletResponse response);
38  }