01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: package org.apache.pluto.spi.optional;
18:
19: import javax.servlet.http.HttpServletRequest;
20: import javax.servlet.http.HttpServletResponse;
21:
22: import org.apache.pluto.PortletContainer;
23: import org.apache.pluto.internal.InternalActionRequest;
24: import org.apache.pluto.internal.InternalActionResponse;
25: import org.apache.pluto.internal.InternalPortletWindow;
26: import org.apache.pluto.internal.InternalRenderRequest;
27: import org.apache.pluto.internal.InternalRenderResponse;
28:
29: /**
30: * Factory Service for creating Portlet request and responses.
31: *
32: * @since 1.1.0
33: */
34: public interface PortletEnvironmentService {
35:
36: public InternalActionRequest createActionRequest(
37: PortletContainer container,
38: HttpServletRequest servletRequest,
39: HttpServletResponse servletResponse,
40: InternalPortletWindow internalPortletWindow);
41:
42: public InternalActionResponse createActionResponse(
43: PortletContainer container,
44: HttpServletRequest servletRequest,
45: HttpServletResponse servletResponse,
46: InternalPortletWindow internalPortletWindow);
47:
48: public InternalRenderRequest createRenderRequest(
49: PortletContainer container,
50: HttpServletRequest servletRequest,
51: HttpServletResponse servletResponse,
52: InternalPortletWindow internalPortletWindow);
53:
54: public InternalRenderResponse createRenderResponse(
55: PortletContainer container,
56: HttpServletRequest servletRequest,
57: HttpServletResponse servletResponse,
58: InternalPortletWindow internalPortletWindow);
59:
60: }
|