From portal-commits at lists.jboss.org Thu Feb 7 19:01:30 2008 Content-Type: multipart/mixed; boundary="===============5260248188252915763==" MIME-Version: 1.0 From: portal-commits at lists.jboss.org To: portal-commits at lists.jboss.org Subject: [portal-commits] JBoss Portal SVN: r9846 - in modules/portlet/trunk/test/src/main/java/org/jboss/portal/portlet/test/jsp/response: portlet and 1 other directory. Date: Thu, 07 Feb 2008 19:01:29 -0500 Message-ID: --===============5260248188252915763== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: julien(a)jboss.com Date: 2008-02-07 19:01:29 -0500 (Thu, 07 Feb 2008) New Revision: 9846 Removed: modules/portlet/trunk/test/src/main/java/org/jboss/portal/portlet/test/j= sp/response/BufferingResponse.java modules/portlet/trunk/test/src/main/java/org/jboss/portal/portlet/test/j= sp/response/portlet/StartPortletChunk.java Log: remove class that should have been removed Deleted: modules/portlet/trunk/test/src/main/java/org/jboss/portal/portlet/= test/jsp/response/BufferingResponse.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- modules/portlet/trunk/test/src/main/java/org/jboss/portal/portlet/test/= jsp/response/BufferingResponse.java 2008-02-08 00:00:01 UTC (rev 9845) +++ modules/portlet/trunk/test/src/main/java/org/jboss/portal/portlet/test/= jsp/response/BufferingResponse.java 2008-02-08 00:01:29 UTC (rev 9846) @@ -1,145 +0,0 @@ -/*************************************************************************= ***** - * JBoss, a division of Red Hat = * - * Copyright 2008, Red Hat Middleware, LLC, and individual = * - * contributors as indicated by the @authors tag. See the = * - * copyright.txt in the distribution for a full listing of = * - * individual contributors. = * - * = * - * This is free software; you can redistribute it and/or modify it = * - * under the terms of the GNU Lesser General Public License as = * - * published by the Free Software Foundation; either version 2.1 of = * - * the License, or (at your option) any later version. = * - * = * - * This software is distributed in the hope that it will be useful, = * - * but WITHOUT ANY WARRANTY; without even the implied warranty of = * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU = * - * Lesser General Public License for more details. = * - * = * - * You should have received a copy of the GNU Lesser General Public = * - * License along with this software; if not, write to the Free = * - * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA = * - * 02110-1301 USA, or see the FSF site: http://www.fsf.org. = * - *************************************************************************= *****/ -package org.jboss.portal.portlet.test.jsp.response; - -import org.jboss.portal.portlet.test.jsp.PagePortletControllerContext; -import org.jboss.portal.portlet.controller.state.PageNavigationalState; -import org.jboss.portal.portlet.controller.state.WindowNavigationalState; -import org.jboss.portal.WindowState; - -import javax.servlet.http.HttpServletResponse; -import javax.servlet.http.HttpServletResponseWrapper; - -/** - * @author Julien Viet - * @version $Revision: 630 $ - */ -public class BufferingResponse extends HttpServletResponseWrapper -{ - - /** . */ -// private final ResponseBuffer buffer =3D new ResponseBuffer(); - - /** . */ - private final PagePortletControllerContext portletControllerContext; - - /** . */ - private final PageNavigationalState pageState; - - /** . */ - private int count =3D 0; - - public BufferingResponse( - HttpServletResponse response, - PagePortletControllerContext portletControllerContext, - PageNavigationalState pageState) - { - super(response); - - // - this.portletControllerContext =3D portletControllerContext; - this.pageState =3D pageState; - } - - /** - * The page state for the rendering. - * - * @return the page state - */ - public PageNavigationalState getPageState() - { - return pageState; - } - - public String getMaximizedWindowId() - { - if (pageState !=3D null) - { - for (String windowId : pageState.getWindowIds()) - { - WindowNavigationalState windowNS =3D pageState.getWindowNaviga= tionalState(windowId); - if (WindowState.MAXIMIZED.equals(windowNS.getWindowState())) - { - return windowId; - } - } - } - - // - return null; - } - - public boolean isRenderable(String windowId) - { - if (windowId =3D=3D null) - { - throw new IllegalArgumentException(); - } - - // - if (pageState =3D=3D null) - { - return false; - } - - // - String maximizedWindowId =3D getMaximizedWindowId(); - if (maximizedWindowId !=3D null) - { - return maximizedWindowId.equals(windowId); - } - - // - return true; - } - - public PagePortletControllerContext getPortletControllerContext() - { - return portletControllerContext; - } - -// public ResponseBuffer getBuffer() -// { -// return buffer; -// } -// -// public ServletOutputStream getOutputStream() throws IOException -// { -// return buffer.getOutputStream(); -// } -// -// public PrintWriter getWriter() throws IOException -// { -// return buffer.getWriter(); -// } -// -// public void close() -// { -// buffer.close(); -// } - - public String nextId() - { - return "" + count++; - } -} Deleted: modules/portlet/trunk/test/src/main/java/org/jboss/portal/portlet/= test/jsp/response/portlet/StartPortletChunk.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- modules/portlet/trunk/test/src/main/java/org/jboss/portal/portlet/test/= jsp/response/portlet/StartPortletChunk.java 2008-02-08 00:00:01 UTC (rev 98= 45) +++ modules/portlet/trunk/test/src/main/java/org/jboss/portal/portlet/test/= jsp/response/portlet/StartPortletChunk.java 2008-02-08 00:01:29 UTC (rev 98= 46) @@ -1,111 +0,0 @@ -/*************************************************************************= ***** - * JBoss, a division of Red Hat = * - * Copyright 2008, Red Hat Middleware, LLC, and individual = * - * contributors as indicated by the @authors tag. See the = * - * copyright.txt in the distribution for a full listing of = * - * individual contributors. = * - * = * - * This is free software; you can redistribute it and/or modify it = * - * under the terms of the GNU Lesser General Public License as = * - * published by the Free Software Foundation; either version 2.1 of = * - * the License, or (at your option) any later version. = * - * = * - * This software is distributed in the hope that it will be useful, = * - * but WITHOUT ANY WARRANTY; without even the implied warranty of = * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU = * - * Lesser General Public License for more details. = * - * = * - * You should have received a copy of the GNU Lesser General Public = * - * License along with this software; if not, write to the Free = * - * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA = * - * 02110-1301 USA, or see the FSF site: http://www.fsf.org. = * - *************************************************************************= *****/ -package org.jboss.portal.portlet.test.jsp.response.portlet; - -import org.jboss.portal.Mode; -import org.jboss.portal.WindowState; -import org.jboss.portal.portlet.invocation.response.PortletInvocationRespo= nse; - -import java.util.Set; - -/** - * @author Julien Viet - * @version $Revision: 630 $ - */ -public class StartPortletChunk -{ - - /** . */ - private final String portletName; - - /** . */ - private final String applicationName; - - /** . */ - private final String windowId; - - /** . */ - private final PortletInvocationResponse response; - - /** . */ - private final Mode initialMode; - - /** . */ - private final Set supportedModes; - - /** . */ - private final Set supportedWindowStates; - - public StartPortletChunk( - String portletName, - String applicationName, - String windowId, - PortletInvocationResponse response, - Mode initialMode, - Set supportedModes, - Set supportedWindowStates) - { - this.portletName =3D portletName; - this.applicationName =3D applicationName; - this.windowId =3D windowId; - this.response =3D response; - this.initialMode =3D initialMode; - this.supportedModes =3D supportedModes; - this.supportedWindowStates =3D supportedWindowStates; - } - - public String getPortletName() - { - return portletName; - } - - public String getApplicationName() - { - return applicationName; - } - - public String getWindowId() - { - return windowId; - } - - public PortletInvocationResponse getResponse() - { - return response; - } - - public Mode getInitialMode() - { - return initialMode; - } - - public Set getSupportedModes() - { - return supportedModes; - } - - public Set getSupportedWindowStates() - { - return supportedWindowStates; - } -} --===============5260248188252915763==--