1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
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  }