001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
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 createActionURL(String portletName);
039    
040            public LiferayPortletURL createLiferayPortletURL(
041                    long plid, String portletName, String lifecycle);
042    
043            public LiferayPortletURL createLiferayPortletURL(
044                    long plid, String portletName, String lifecycle,
045                    boolean includeLinkToLayoutUuid);
046    
047            public LiferayPortletURL createLiferayPortletURL(String lifecycle);
048    
049            public LiferayPortletURL createLiferayPortletURL(
050                    String portletName, String lifecycle);
051    
052            public PortletURL createRenderURL();
053    
054            public LiferayPortletURL createRenderURL(String portletName);
055    
056            public ResourceURL createResourceURL();
057    
058            public LiferayPortletURL createResourceURL(String portletName);
059    
060            public HttpServletResponse getHttpServletResponse();
061    
062            public Map<String, String[]> getProperties();
063    
064            public void setDateHeader(String name, long date);
065    
066            public void setHeader(String name, String value);
067    
068            public void setIntHeader(String name, int value);
069    
070            public void transferMarkupHeadElements();
071    
072    }