[jboss-svn-commits] JBoss Portal SVN: r5182 - in trunk/server: . src/main/org/jboss/portal/server/servlet src/main/org/jboss/portal/test/server src/resources/test
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Tue Sep 12 13:34:58 EDT 2006
Author: julien at jboss.com
Date: 2006-09-12 13:34:50 -0400 (Tue, 12 Sep 2006)
New Revision: 5182
Removed:
trunk/server/src/main/org/jboss/portal/server/servlet/ProxyRequest.java
trunk/server/src/main/org/jboss/portal/server/servlet/ProxyResponse.java
trunk/server/src/main/org/jboss/portal/test/server/session/
trunk/server/src/resources/test/test-session-sar/
Modified:
trunk/server/build.xml
Log:
Removing proxy request and proxy response as they are not needed anymore.
Modified: trunk/server/build.xml
===================================================================
--- trunk/server/build.xml 2006-09-12 17:05:13 UTC (rev 5181)
+++ trunk/server/build.xml 2006-09-12 17:34:50 UTC (rev 5182)
@@ -282,7 +282,6 @@
<!-- Server side tests -->
<test todir="${test.reports}" name="org.jboss.portal.test.server.parameters.ParametersTestSuite"/>
<test todir="${test.reports}" name="org.jboss.portal.test.server.servlet.ServletTestSuite"/>
- <test todir="${test.reports}" name="org.jboss.portal.test.server.session.SessionTestSuite"/>
<test todir="${test.reports}" name="org.jboss.portal.test.server.charset.CharsetTestSuite"/>
</x-test>
<x-classpath>
Deleted: trunk/server/src/main/org/jboss/portal/server/servlet/ProxyRequest.java
===================================================================
--- trunk/server/src/main/org/jboss/portal/server/servlet/ProxyRequest.java 2006-09-12 17:05:13 UTC (rev 5181)
+++ trunk/server/src/main/org/jboss/portal/server/servlet/ProxyRequest.java 2006-09-12 17:34:50 UTC (rev 5182)
@@ -1,166 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., 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.server.servlet;
-
-import org.jboss.portal.server.servlet.AbstractDelegatingRequest;
-
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpSession;
-import javax.servlet.http.HttpSessionContext;
-import javax.servlet.ServletContext;
-import java.util.Enumeration;
-
-/**
- * @author <a href="mailto:julien at jboss.org">Julien Viet</a>
- * @version $Revision$
- */
-public class ProxyRequest extends AbstractDelegatingRequest
-{
-
- private HttpServletRequest delegate;
- private String sessionId;
- private HttpSession proxySession;
-
- public ProxyRequest(HttpServletRequest delegate, String sessionId)
- {
- this.delegate = delegate;
- this.sessionId = sessionId;
- this.proxySession = new ProxySession();
- }
-
- protected HttpServletRequest getDelegate()
- {
- return delegate;
- }
-
- public HttpSession getSession(boolean create)
- {
- HttpSession session = delegate.getSession(create);
- if (session == null)
- {
- return null;
- }
- else
- {
- return proxySession;
- }
- }
-
- public HttpSession getSession()
- {
- delegate.getSession();
- return proxySession;
- }
-
- public class ProxySession implements HttpSession
- {
-
- public ProxySession()
- {
- }
-
- public long getCreationTime()
- {
- return ProxyRequest.this.getSession().getCreationTime();
- }
-
- public String getId()
- {
- return sessionId;
- }
-
- public long getLastAccessedTime()
- {
- return ProxyRequest.this.getSession().getLastAccessedTime();
- }
-
- public ServletContext getServletContext()
- {
- return ProxyRequest.this.getSession().getServletContext();
- }
-
- public void setMaxInactiveInterval(int i)
- {
- ProxyRequest.this.getSession().setMaxInactiveInterval(i);
- }
-
- public int getMaxInactiveInterval()
- {
- return ProxyRequest.this.getSession().getMaxInactiveInterval();
- }
-
- public HttpSessionContext getSessionContext()
- {
- return ProxyRequest.this.getSession().getSessionContext();
- }
-
- public Object getAttribute(String name)
- {
- return ProxyRequest.this.getSession().getAttribute(name);
- }
-
- public Object getValue(String name)
- {
- return ProxyRequest.this.getSession().getValue(name);
- }
-
- public Enumeration getAttributeNames()
- {
- return ProxyRequest.this.getSession().getAttributeNames();
- }
-
- public String[] getValueNames()
- {
- return ProxyRequest.this.getSession().getValueNames();
- }
-
- public void setAttribute(String name, Object object)
- {
- ProxyRequest.this.getSession().setAttribute(name, object);
- }
-
- public void putValue(String name, Object object)
- {
- ProxyRequest.this.getSession().putValue(name, object);
- }
-
- public void removeAttribute(String name)
- {
- ProxyRequest.this.getSession().removeAttribute(name);
- }
-
- public void removeValue(String name)
- {
- ProxyRequest.this.getSession().removeValue(name);
- }
-
- public void invalidate()
- {
- ProxyRequest.this.getSession().invalidate();
- }
-
- public boolean isNew()
- {
- return ProxyRequest.this.getSession().isNew();
- }
- }
-}
Deleted: trunk/server/src/main/org/jboss/portal/server/servlet/ProxyResponse.java
===================================================================
--- trunk/server/src/main/org/jboss/portal/server/servlet/ProxyResponse.java 2006-09-12 17:05:13 UTC (rev 5181)
+++ trunk/server/src/main/org/jboss/portal/server/servlet/ProxyResponse.java 2006-09-12 17:34:50 UTC (rev 5182)
@@ -1,46 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., 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.server.servlet;
-
-import org.jboss.portal.server.servlet.AbstractDelegatingResponse;
-
-import javax.servlet.http.HttpServletResponse;
-
-/**
- * @author <a href="mailto:julien at jboss.org">Julien Viet</a>
- * @version $Revision$
- */
-public class ProxyResponse extends AbstractDelegatingResponse
-{
-
- private HttpServletResponse delegate;
-
- public ProxyResponse(HttpServletResponse delegate)
- {
- this.delegate = delegate;
- }
-
- protected HttpServletResponse getDelegate()
- {
- return delegate;
- }
-}
More information about the jboss-svn-commits
mailing list