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.internal;
18:
19: import java.util.Map;
20:
21: import javax.portlet.PortletMode;
22: import javax.portlet.WindowState;
23: import javax.portlet.ActionResponse;
24:
25: /**
26: * The internal action response interface extends the internal portlet response
27: * interface and provides some action-specific methods.
28: */
29: public interface InternalActionResponse extends
30: InternalPortletResponse, ActionResponse {
31:
32: /**
33: * Retrieves the render parameters associated with this response.
34: * @return map of all render parameters associated with this request.
35: */
36: public Map getRenderParameters();
37:
38: /**
39: * Retrieve the portlet mode.
40: * @return the changed portlet mode.
41: */
42: public PortletMode getChangedPortletMode();
43:
44: /**
45: * Retrieve the window state.
46: * @return the changed window state.
47: */
48: public WindowState getChangedWindowState();
49:
50: /**
51: * Retreive the location for which the action should
52: * be redirected.
53: * @return the redirect location.
54: */
55: public String getRedirectLocation();
56:
57: public String encodeRedirectURL(String url);
58:
59: }
|