1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portal.kernel.portlet;
16  
17  import java.util.Map;
18  
19  import javax.portlet.PortletResponse;
20  import javax.portlet.PortletURL;
21  import javax.portlet.ResourceURL;
22  
23  import javax.servlet.http.HttpServletResponse;
24  
25  /**
26   * <a href="LiferayPortletResponse.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Raymond Augé
29   */
30  public interface LiferayPortletResponse extends PortletResponse {
31  
32      public void addDateHeader(String name, long date);
33  
34      public void addHeader(String name, String value);
35  
36      public void addIntHeader(String name, int value);
37  
38      public PortletURL createActionURL();
39  
40      public LiferayPortletURL createLiferayPortletURL(String lifecycle);
41  
42      public LiferayPortletURL createLiferayPortletURL(
43          String portletName, String lifecycle);
44  
45      public LiferayPortletURL createLiferayPortletURL(
46          long plid, String portletName, String lifecycle);
47  
48      public LiferayPortletURL createActionURL(String portletName);
49  
50      public PortletURL createRenderURL();
51  
52      public LiferayPortletURL createRenderURL(String portletName);
53  
54      public ResourceURL createResourceURL();
55  
56      public LiferayPortletURL createResourceURL(String portletName);
57  
58      public HttpServletResponse getHttpServletResponse();
59  
60      public Map<String, String[]> getProperties();
61  
62      public void setDateHeader(String name, long date);
63  
64      public void setHeader(String name, String value);
65  
66      public void setIntHeader(String name, int value);
67  
68      public void transferMarkupHeadElements();
69  
70  }