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.util.bridges.wai;
016    
017    import com.liferay.portal.kernel.portlet.LiferayPortlet;
018    
019    import java.io.IOException;
020    
021    import javax.portlet.PortletContext;
022    import javax.portlet.PortletException;
023    import javax.portlet.PortletRequestDispatcher;
024    import javax.portlet.RenderRequest;
025    import javax.portlet.RenderResponse;
026    
027    /**
028     * @author Jorge Ferrer
029     * @author Connor McKay
030     */
031    public class WAIPortlet extends LiferayPortlet {
032    
033            public void render(
034                            RenderRequest renderRequest, RenderResponse renderResponse)
035                    throws IOException, PortletException {
036    
037                    PortletContext portletContext = getPortletContext();
038    
039                    PortletRequestDispatcher portletRequestDispatcher =
040                            portletContext.getRequestDispatcher(_JSP_IFRAME);
041    
042                    portletRequestDispatcher.include(renderRequest, renderResponse);
043            }
044    
045            private static final String _JSP_DIR = "/WEB-INF/jsp/liferay/wai";
046    
047            private static final String _JSP_IFRAME = _JSP_DIR + "/iframe.jsp";
048    
049    }