001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.kernel.portlet;
016    
017    import java.util.Map;
018    
019    import javax.portlet.PortletResponse;
020    import javax.portlet.PortletURL;
021    import javax.portlet.ResourceURL;
022    
023    import javax.servlet.http.HttpServletResponse;
024    
025    /**
026     * @author Raymond Augé
027     */
028    public interface LiferayPortletResponse extends PortletResponse {
029    
030            public void addDateHeader(String name, long date);
031    
032            public void addHeader(String name, String value);
033    
034            public void addIntHeader(String name, int value);
035    
036            public PortletURL createActionURL();
037    
038            public LiferayPortletURL createLiferayPortletURL(String lifecycle);
039    
040            public LiferayPortletURL createLiferayPortletURL(
041                    String portletName, String lifecycle);
042    
043            public LiferayPortletURL createLiferayPortletURL(
044                    long plid, String portletName, String lifecycle);
045    
046            public LiferayPortletURL createActionURL(String portletName);
047    
048            public PortletURL createRenderURL();
049    
050            public LiferayPortletURL createRenderURL(String portletName);
051    
052            public ResourceURL createResourceURL();
053    
054            public LiferayPortletURL createResourceURL(String portletName);
055    
056            public HttpServletResponse getHttpServletResponse();
057    
058            public Map<String, String[]> getProperties();
059    
060            public void setDateHeader(String name, long date);
061    
062            public void setHeader(String name, String value);
063    
064            public void setIntHeader(String name, int value);
065    
066            public void transferMarkupHeadElements();
067    
068    }