001    /**
002     * Copyright (c) 2000-present 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 com.liferay.portal.model.Portlet;
018    
019    import java.util.Map;
020    
021    import javax.portlet.PortletResponse;
022    import javax.portlet.PortletURL;
023    import javax.portlet.ResourceURL;
024    
025    import javax.servlet.http.HttpServletResponse;
026    
027    /**
028     * @author Raymond Aug??
029     */
030    public interface LiferayPortletResponse extends PortletResponse {
031    
032            public void addDateHeader(String name, long date);
033    
034            public void addHeader(String name, String value);
035    
036            public void addIntHeader(String name, int value);
037    
038            public PortletURL createActionURL();
039    
040            public LiferayPortletURL createActionURL(String portletName);
041    
042            public LiferayPortletURL createLiferayPortletURL(
043                    long plid, String portletName, String lifecycle);
044    
045            public LiferayPortletURL createLiferayPortletURL(
046                    long plid, String portletName, String lifecycle,
047                    boolean includeLinkToLayoutUuid);
048    
049            public LiferayPortletURL createLiferayPortletURL(String lifecycle);
050    
051            public LiferayPortletURL createLiferayPortletURL(
052                    String portletName, String lifecycle);
053    
054            public PortletURL createRenderURL();
055    
056            public LiferayPortletURL createRenderURL(String portletName);
057    
058            public ResourceURL createResourceURL();
059    
060            public LiferayPortletURL createResourceURL(String portletName);
061    
062            public HttpServletResponse getHttpServletResponse();
063    
064            public Portlet getPortlet();
065    
066            public Map<String, String[]> getProperties();
067    
068            public void setDateHeader(String name, long date);
069    
070            public void setHeader(String name, String value);
071    
072            public void setIntHeader(String name, int value);
073    
074            public void transferMarkupHeadElements();
075    
076    }