You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-scm@portals.apache.org by at...@apache.org on 2009/03/09 16:46:20 UTC

svn commit: r751712 - in /portals/pluto/trunk: pluto-container-api/src/main/java/org/apache/pluto/spi/optional/ pluto-container/src/main/java/org/apache/pluto/core/ pluto-container/src/main/java/org/apache/pluto/spi/ pluto-container/src/main/java/org/a...

Author: ate
Date: Mon Mar  9 15:46:19 2009
New Revision: 751712

URL: http://svn.apache.org/viewvc?rev=751712&view=rev
Log:
http://issues.apache.org/jira/browse/PLUTO-531
http://issues.apache.org/jira/browse/PLUTO-532

Start of new request/response -Context implementations

Added:
    portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/
    portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/
    portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletActionResponseContextImpl.java   (with props)
    portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletEventResponseContextImpl.java   (with props)
    portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletMimeResponseContextImpl.java   (with props)
    portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletRenderResponseContextImpl.java   (with props)
    portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletRequestContextImpl.java   (with props)
    portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletResourceRequestContextImpl.java   (with props)
    portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletResourceResponseContextImpl.java   (with props)
    portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletResponseContextImpl.java   (with props)
    portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletStateAwareResponseContextImpl.java   (with props)
Removed:
    portals/pluto/trunk/pluto-container-api/src/main/java/org/apache/pluto/spi/optional/PortletEventRequestContext.java
Modified:
    portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/core/DefaultPortletRequestContextService.java

Modified: portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/core/DefaultPortletRequestContextService.java
URL: http://svn.apache.org/viewvc/portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/core/DefaultPortletRequestContextService.java?rev=751712&r1=751711&r2=751712&view=diff
==============================================================================
--- portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/core/DefaultPortletRequestContextService.java (original)
+++ portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/core/DefaultPortletRequestContextService.java Mon Mar  9 15:46:19 2009
@@ -22,6 +22,12 @@
 
 import org.apache.pluto.PortletContainer;
 import org.apache.pluto.PortletWindow;
+import org.apache.pluto.spi.impl.PortletRenderResponseContextImpl;
+import org.apache.pluto.spi.impl.PortletActionResponseContextImpl;
+import org.apache.pluto.spi.impl.PortletEventResponseContextImpl;
+import org.apache.pluto.spi.impl.PortletRequestContextImpl;
+import org.apache.pluto.spi.impl.PortletResourceRequestContextImpl;
+import org.apache.pluto.spi.impl.PortletResourceResponseContextImpl;
 import org.apache.pluto.spi.optional.PortletActionResponseContext;
 import org.apache.pluto.spi.optional.PortletEventResponseContext;
 import org.apache.pluto.spi.optional.PortletRenderResponseContext;
@@ -39,8 +45,7 @@
     public PortletRequestContext getPortletActionRequestContext(PortletContainer container, HttpServletRequest request,
                                                                 HttpServletResponse response, PortletWindow window)
     {
-        // TODO Auto-generated method stub
-        return null;
+        return new PortletRequestContextImpl(container, request, response, window);
     }
 
     public PortletActionResponseContext getPortletActionResponseContext(PortletContainer container,
@@ -48,30 +53,26 @@
                                                                         HttpServletResponse response,
                                                                         PortletWindow window)
     {
-        // TODO Auto-generated method stub
-        return null;
+        return new PortletActionResponseContextImpl(container, request, response, window);
     }
 
     public PortletRequestContext getPortletEventRequestContext(PortletContainer container, HttpServletRequest request,
                                                                HttpServletResponse response, PortletWindow window)
     {
-        // TODO Auto-generated method stub
-        return null;
+        return new PortletRequestContextImpl(container, request, response, window);
     }
 
     public PortletEventResponseContext getPortletEventResponseContext(PortletContainer container,
                                                                       HttpServletRequest request,
                                                                       HttpServletResponse response, PortletWindow window)
     {
-        // TODO Auto-generated method stub
-        return null;
+        return new PortletEventResponseContextImpl(container, request, response, window);
     }
 
     public PortletRequestContext getPortletRenderRequestContext(PortletContainer container, HttpServletRequest request,
                                                                 HttpServletResponse response, PortletWindow window)
     {
-        // TODO Auto-generated method stub
-        return null;
+        return new PortletRequestContextImpl(container, request, response, window);
     }
 
     public PortletRenderResponseContext getPortletRenderResponseContext(PortletContainer container,
@@ -79,8 +80,7 @@
                                                                         HttpServletResponse response,
                                                                         PortletWindow window)
     {
-        // TODO Auto-generated method stub
-        return null;
+        return new PortletRenderResponseContextImpl(container, request, response, window);
     }
 
     public PortletResourceRequestContext getPortletResourceRequestContext(PortletContainer container,
@@ -88,8 +88,7 @@
                                                                           HttpServletResponse response,
                                                                           PortletWindow window)
     {
-        // TODO Auto-generated method stub
-        return null;
+        return new PortletResourceRequestContextImpl(container, request, response, window);
     }
 
     public PortletResourceResponseContext getPortletResourceResponseContext(PortletContainer container,
@@ -97,7 +96,6 @@
                                                                             HttpServletResponse response,
                                                                             PortletWindow window)
     {
-        // TODO Auto-generated method stub
-        return null;
+        return new PortletResourceResponseContextImpl(container, request, response, window);
     }
 }

Added: portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletActionResponseContextImpl.java
URL: http://svn.apache.org/viewvc/portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletActionResponseContextImpl.java?rev=751712&view=auto
==============================================================================
--- portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletActionResponseContextImpl.java (added)
+++ portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletActionResponseContextImpl.java Mon Mar  9 15:46:19 2009
@@ -0,0 +1,73 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.pluto.spi.impl;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.apache.pluto.PortletContainer;
+import org.apache.pluto.PortletWindow;
+import org.apache.pluto.spi.optional.PortletActionResponseContext;
+
+/**
+ * @version $Id$
+ *
+ */
+public class PortletActionResponseContextImpl extends PortletStateAwareResponseContextImpl implements
+                PortletActionResponseContext
+{
+    public PortletActionResponseContextImpl(PortletContainer container, HttpServletRequest request,
+                                            HttpServletResponse response, PortletWindow window)
+    {
+        super(container, request, response, window);
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletActionResponseContext#getResponseURL()
+     */
+    public String getResponseURL()
+    {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletActionResponseContext#isRedirect()
+     */
+    public boolean isRedirect()
+    {
+        // TODO Auto-generated method stub
+        return false;
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletActionResponseContext#setRedirect(java.lang.String)
+     */
+    public void setRedirect(String location)
+    {
+        // TODO Auto-generated method stub
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletActionResponseContext#setRedirect(java.lang.String, java.lang.String)
+     */
+    public void setRedirect(String location, String renderURLParamName)
+    {
+        // TODO Auto-generated method stub
+    }
+}

Propchange: portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletActionResponseContextImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletActionResponseContextImpl.java
------------------------------------------------------------------------------
    svn:keywords = Id

Propchange: portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletActionResponseContextImpl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletEventResponseContextImpl.java
URL: http://svn.apache.org/viewvc/portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletEventResponseContextImpl.java?rev=751712&view=auto
==============================================================================
--- portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletEventResponseContextImpl.java (added)
+++ portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletEventResponseContextImpl.java Mon Mar  9 15:46:19 2009
@@ -0,0 +1,40 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.pluto.spi.impl;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.apache.pluto.PortletContainer;
+import org.apache.pluto.PortletWindow;
+import org.apache.pluto.spi.optional.PortletEventResponseContext;
+
+/**
+ * @version $Id$
+ *
+ */
+public class PortletEventResponseContextImpl extends PortletStateAwareResponseContextImpl implements
+                PortletEventResponseContext
+{
+
+    public PortletEventResponseContextImpl(PortletContainer container, HttpServletRequest request,
+                                           HttpServletResponse response, PortletWindow window)
+    {
+        super(container, request, response, window);
+    }
+}

Propchange: portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletEventResponseContextImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletEventResponseContextImpl.java
------------------------------------------------------------------------------
    svn:keywords = Id

Propchange: portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletEventResponseContextImpl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletMimeResponseContextImpl.java
URL: http://svn.apache.org/viewvc/portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletMimeResponseContextImpl.java?rev=751712&view=auto
==============================================================================
--- portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletMimeResponseContextImpl.java (added)
+++ portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletMimeResponseContextImpl.java Mon Mar  9 15:46:19 2009
@@ -0,0 +1,155 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.pluto.spi.impl;
+
+import java.io.OutputStream;
+import java.io.PrintWriter;
+import java.util.Locale;
+
+import javax.portlet.CacheControl;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.apache.pluto.PortletContainer;
+import org.apache.pluto.PortletWindow;
+import org.apache.pluto.spi.optional.PortletMimeResponseContext;
+
+/**
+ * @version $Id$
+ *
+ */
+public abstract class PortletMimeResponseContextImpl extends PortletResponseContextImpl implements PortletMimeResponseContext
+{
+    public PortletMimeResponseContextImpl(PortletContainer container, HttpServletRequest request,
+                                          HttpServletResponse response, PortletWindow window)
+    {
+        super(container, request, response, window);
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletMimeResponseContext#flushBuffer()
+     */
+    public void flushBuffer()
+    {
+        // TODO Auto-generated method stub
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletMimeResponseContext#getBufferSize()
+     */
+    public int getBufferSize()
+    {
+        // TODO Auto-generated method stub
+        return 0;
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletMimeResponseContext#getCacheControl()
+     */
+    public CacheControl getCacheControl()
+    {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletMimeResponseContext#getCharacterEncoding()
+     */
+    public String getCharacterEncoding()
+    {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletMimeResponseContext#getContentType()
+     */
+    public String getContentType()
+    {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletMimeResponseContext#getLocale()
+     */
+    public Locale getLocale()
+    {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletMimeResponseContext#getOutputStream()
+     */
+    public OutputStream getOutputStream()
+    {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletMimeResponseContext#getWriter()
+     */
+    public PrintWriter getWriter()
+    {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletMimeResponseContext#isCommitted()
+     */
+    public boolean isCommitted()
+    {
+        // TODO Auto-generated method stub
+        return false;
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletMimeResponseContext#reset()
+     */
+    public void reset()
+    {
+        // TODO Auto-generated method stub
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletMimeResponseContext#resetBuffer()
+     */
+    public void resetBuffer()
+    {
+        // TODO Auto-generated method stub
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletMimeResponseContext#setBufferSize(int)
+     */
+    public void setBufferSize(int size)
+    {
+        // TODO Auto-generated method stub
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletMimeResponseContext#setContentType(java.lang.String)
+     */
+    public void setContentType(String contentType)
+    {
+        // TODO Auto-generated method stub
+    }
+}

Propchange: portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletMimeResponseContextImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletMimeResponseContextImpl.java
------------------------------------------------------------------------------
    svn:keywords = Id

Propchange: portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletMimeResponseContextImpl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletRenderResponseContextImpl.java
URL: http://svn.apache.org/viewvc/portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletRenderResponseContextImpl.java?rev=751712&view=auto
==============================================================================
--- portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletRenderResponseContextImpl.java (added)
+++ portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletRenderResponseContextImpl.java Mon Mar  9 15:46:19 2009
@@ -0,0 +1,58 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.pluto.spi.impl;
+
+import java.util.Collection;
+
+import javax.portlet.PortletMode;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.apache.pluto.PortletContainer;
+import org.apache.pluto.PortletWindow;
+import org.apache.pluto.spi.optional.PortletRenderResponseContext;
+
+/**
+ * @version $Id$
+ *
+ */
+public class PortletRenderResponseContextImpl extends PortletMimeResponseContextImpl implements
+                PortletRenderResponseContext
+{
+    public PortletRenderResponseContextImpl(PortletContainer container, HttpServletRequest request,
+                                            HttpServletResponse response, PortletWindow window)
+    {
+        super(container, request, response, window);
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletRenderResponseContext#setNextPossiblePortletModes(java.util.Collection)
+     */
+    public void setNextPossiblePortletModes(Collection<PortletMode> portletModes)
+    {
+        // TODO Auto-generated method stub
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletRenderResponseContext#setTitle(java.lang.String)
+     */
+    public void setTitle(String title)
+    {
+        // TODO Auto-generated method stub
+    }
+}

Propchange: portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletRenderResponseContextImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletRenderResponseContextImpl.java
------------------------------------------------------------------------------
    svn:keywords = Id

Propchange: portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletRenderResponseContextImpl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletRequestContextImpl.java
URL: http://svn.apache.org/viewvc/portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletRequestContextImpl.java?rev=751712&view=auto
==============================================================================
--- portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletRequestContextImpl.java (added)
+++ portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletRequestContextImpl.java Mon Mar  9 15:46:19 2009
@@ -0,0 +1,172 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.pluto.spi.impl;
+
+import java.util.Enumeration;
+import java.util.Locale;
+import java.util.Map;
+
+import javax.servlet.http.Cookie;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.apache.pluto.PortletContainer;
+import org.apache.pluto.PortletWindow;
+import org.apache.pluto.internal.InternalPortletConfig;
+import org.apache.pluto.spi.optional.PortletRequestContext;
+
+/**
+ * @version $Id$
+ *
+ */
+public class PortletRequestContextImpl implements PortletRequestContext
+{
+    private PortletContainer container;
+    private HttpServletRequest request;
+    private HttpServletResponse response;
+    private PortletWindow window;
+    
+    public PortletRequestContextImpl(PortletContainer container, HttpServletRequest request,
+                                     HttpServletResponse response, PortletWindow window)
+    {
+        this.container = container;
+        this.request = request;
+        this.response = response;
+        this.window = window;
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletRequestContext#getAttribute(java.lang.String)
+     */
+    public Object getAttribute(String name)
+    {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletRequestContext#getAttributeNames()
+     */
+    public Enumeration<String> getAttributeNames()
+    {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletRequestContext#getContainer()
+     */
+    public PortletContainer getContainer()
+    {
+        return container;
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletRequestContext#getCookies()
+     */
+    public Cookie[] getCookies()
+    {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletRequestContext#getPortletConfig()
+     */
+    public InternalPortletConfig getPortletConfig()
+    {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletRequestContext#getPortletWindow()
+     */
+    public PortletWindow getPortletWindow()
+    {
+        return window;
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletRequestContext#getPreferredLocale()
+     */
+    public Locale getPreferredLocale()
+    {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletRequestContext#getPrivateParameterMap()
+     */
+    public Map<String, String[]> getPrivateParameterMap()
+    {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletRequestContext#getProperties()
+     */
+    public Map<String, String[]> getProperties()
+    {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletRequestContext#getPublicParameterMap()
+     */
+    public Map<String, String[]> getPublicParameterMap()
+    {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletRequestContext#getServletRequest()
+     */
+    public HttpServletRequest getServletRequest()
+    {
+        return request;
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletRequestContext#getServletResponse()
+     */
+    public HttpServletResponse getServletResponse()
+    {
+        return response;
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletRequestContext#init(org.apache.pluto.internal.InternalPortletConfig)
+     */
+    public void init(InternalPortletConfig portletConfig)
+    {
+        // TODO Auto-generated method stub
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletRequestContext#setAttribute(java.lang.String, java.lang.Object)
+     */
+    public void setAttribute(String name, Object value)
+    {
+        // TODO Auto-generated method stub
+    }
+}

Propchange: portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletRequestContextImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletRequestContextImpl.java
------------------------------------------------------------------------------
    svn:keywords = Id

Propchange: portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletRequestContextImpl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletResourceRequestContextImpl.java
URL: http://svn.apache.org/viewvc/portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletResourceRequestContextImpl.java?rev=751712&view=auto
==============================================================================
--- portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletResourceRequestContextImpl.java (added)
+++ portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletResourceRequestContextImpl.java Mon Mar  9 15:46:19 2009
@@ -0,0 +1,68 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.pluto.spi.impl;
+
+import java.util.Map;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.apache.pluto.PortletContainer;
+import org.apache.pluto.PortletWindow;
+import org.apache.pluto.spi.optional.PortletResourceRequestContext;
+
+/**
+ * @version $Id$
+ *
+ */
+public class PortletResourceRequestContextImpl extends PortletRequestContextImpl implements
+                PortletResourceRequestContext
+{
+    public PortletResourceRequestContextImpl(PortletContainer container, HttpServletRequest request,
+                                             HttpServletResponse response, PortletWindow window)
+    {
+        super(container, request, response, window);
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletResourceRequestContext#getCacheability()
+     */
+    public String getCacheability()
+    {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletResourceRequestContext#getPrivateRenderParameterMap()
+     */
+    public Map<String, String[]> getPrivateRenderParameterMap()
+    {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletResourceRequestContext#getResourceID()
+     */
+    public String getResourceID()
+    {
+        // TODO Auto-generated method stub
+        return null;
+    }
+}

Propchange: portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletResourceRequestContextImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletResourceRequestContextImpl.java
------------------------------------------------------------------------------
    svn:keywords = Id

Propchange: portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletResourceRequestContextImpl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletResourceResponseContextImpl.java
URL: http://svn.apache.org/viewvc/portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletResourceResponseContextImpl.java?rev=751712&view=auto
==============================================================================
--- portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletResourceResponseContextImpl.java (added)
+++ portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletResourceResponseContextImpl.java Mon Mar  9 15:46:19 2009
@@ -0,0 +1,66 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.pluto.spi.impl;
+
+import java.util.Locale;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.apache.pluto.PortletContainer;
+import org.apache.pluto.PortletWindow;
+import org.apache.pluto.spi.optional.PortletResourceResponseContext;
+
+/**
+ * @version $Id$
+ *
+ */
+public class PortletResourceResponseContextImpl extends PortletMimeResponseContextImpl implements
+                PortletResourceResponseContext
+{
+    
+    public PortletResourceResponseContextImpl(PortletContainer container, HttpServletRequest request,
+                                              HttpServletResponse response, PortletWindow window)
+    {
+        super(container, request, response, window);
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletResourceResponseContext#setCharacterEncoding(java.lang.String)
+     */
+    public void setCharacterEncoding(String charset)
+    {
+        // TODO Auto-generated method stub
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletResourceResponseContext#setContentLength(int)
+     */
+    public void setContentLength(int len)
+    {
+        // TODO Auto-generated method stub
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletResourceResponseContext#setLocale(java.util.Locale)
+     */
+    public void setLocale(Locale locale)
+    {
+        // TODO Auto-generated method stub
+    }
+}

Propchange: portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletResourceResponseContextImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletResourceResponseContextImpl.java
------------------------------------------------------------------------------
    svn:keywords = Id

Propchange: portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletResourceResponseContextImpl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletResponseContextImpl.java
URL: http://svn.apache.org/viewvc/portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletResponseContextImpl.java?rev=751712&view=auto
==============================================================================
--- portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletResponseContextImpl.java (added)
+++ portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletResponseContextImpl.java Mon Mar  9 15:46:19 2009
@@ -0,0 +1,128 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.pluto.spi.impl;
+
+import javax.servlet.http.Cookie;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.apache.pluto.PortletContainer;
+import org.apache.pluto.PortletWindow;
+import org.apache.pluto.spi.optional.PortletResponseContext;
+import org.w3c.dom.Element;
+
+/**
+ * @version $Id$
+ *
+ */
+public abstract class PortletResponseContextImpl implements PortletResponseContext
+{
+    private PortletContainer container;
+    private HttpServletRequest request;
+    private HttpServletResponse response;
+    private PortletWindow window;
+    
+    public PortletResponseContextImpl(PortletContainer container, HttpServletRequest request,
+                                      HttpServletResponse response, PortletWindow window)
+    {
+        this.container = container;
+        this.request = request;
+        this.response = response;
+        this.window = window;
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletResponseContext#addProperty(javax.servlet.http.Cookie)
+     */
+    public void addProperty(Cookie cookie)
+    {
+        // TODO Auto-generated method stub
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletResponseContext#addProperty(java.lang.String, org.w3c.dom.Element)
+     */
+    public void addProperty(String key, Element element)
+    {
+        // TODO Auto-generated method stub
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletResponseContext#addProperty(java.lang.String, java.lang.String)
+     */
+    public void addProperty(String key, String value)
+    {
+        // TODO Auto-generated method stub
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletResponseContext#close()
+     */
+    public void close()
+    {
+        // TODO Auto-generated method stub
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletResponseContext#getContainer()
+     */
+    public PortletContainer getContainer()
+    {
+        return container;
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletResponseContext#getPortletWindow()
+     */
+    public PortletWindow getPortletWindow()
+    {
+        return window;
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletResponseContext#getServletRequest()
+     */
+    public HttpServletRequest getServletRequest()
+    {
+        return request;
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletResponseContext#getServletResponse()
+     */
+    public HttpServletResponse getServletResponse()
+    {
+        return response;
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletResponseContext#release()
+     */
+    public void release()
+    {
+        // TODO Auto-generated method stub
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletResponseContext#setProperty(java.lang.String, java.lang.String)
+     */
+    public void setProperty(String key, String value)
+    {
+        // TODO Auto-generated method stub
+    }
+}

Propchange: portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletResponseContextImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletResponseContextImpl.java
------------------------------------------------------------------------------
    svn:keywords = Id

Propchange: portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletResponseContextImpl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletStateAwareResponseContextImpl.java
URL: http://svn.apache.org/viewvc/portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletStateAwareResponseContextImpl.java?rev=751712&view=auto
==============================================================================
--- portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletStateAwareResponseContextImpl.java (added)
+++ portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletStateAwareResponseContextImpl.java Mon Mar  9 15:46:19 2009
@@ -0,0 +1,107 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.pluto.spi.impl;
+
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+
+import javax.portlet.Event;
+import javax.portlet.PortletMode;
+import javax.portlet.WindowState;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.apache.pluto.PortletContainer;
+import org.apache.pluto.PortletWindow;
+import org.apache.pluto.spi.optional.PortletStateAwareResponseContext;
+
+/**
+ * @version $Id$
+ *
+ */
+public abstract class PortletStateAwareResponseContextImpl extends PortletResponseContextImpl implements
+                PortletStateAwareResponseContext
+{
+    public PortletStateAwareResponseContextImpl(PortletContainer container, HttpServletRequest request,
+                                                HttpServletResponse response, PortletWindow window)
+    {
+        super(container, request, response, window);
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletStateAwareResponseContext#getEvents()
+     */
+    public List<Event> getEvents()
+    {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletStateAwareResponseContext#getPortletMode()
+     */
+    public PortletMode getPortletMode()
+    {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletStateAwareResponseContext#getRemovedPublicRenderParameters()
+     */
+    public Set<String> getRemovedPublicRenderParameters()
+    {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletStateAwareResponseContext#getRenderParameters()
+     */
+    public Map<String, String[]> getRenderParameters()
+    {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletStateAwareResponseContext#getWindowState()
+     */
+    public WindowState getWindowState()
+    {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletStateAwareResponseContext#setPortletMode(javax.portlet.PortletMode)
+     */
+    public void setPortletMode(PortletMode portletMode)
+    {
+        // TODO Auto-generated method stub
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.pluto.spi.optional.PortletStateAwareResponseContext#setWindowState(javax.portlet.WindowState)
+     */
+    public void setWindowState(WindowState windowState)
+    {
+        // TODO Auto-generated method stub
+    }
+}

Propchange: portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletStateAwareResponseContextImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletStateAwareResponseContextImpl.java
------------------------------------------------------------------------------
    svn:keywords = Id

Propchange: portals/pluto/trunk/pluto-container/src/main/java/org/apache/pluto/spi/impl/PortletStateAwareResponseContextImpl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain