portals-pluto-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ukues...@apache.org
Subject svn commit: r529986 [11/11] - in /portals/pluto/branches/1.1-286-COMPATIBILITY: ./ maven-pluto-plugin/src/main/java/org/apache/pluto/maven/ maven-pluto-plugin/src/main/resources/ pluto-container/ pluto-container/src/main/java/org/apache/pluto/ pluto-co...
Date Wed, 18 Apr 2007 11:30:44 GMT
Modified: portals/pluto/branches/1.1-286-COMPATIBILITY/portlet2-api/src/main/java/javax/portlet/filter/RenderRequestWrapper.java
URL: http://svn.apache.org/viewvc/portals/pluto/branches/1.1-286-COMPATIBILITY/portlet2-api/src/main/java/javax/portlet/filter/RenderRequestWrapper.java?view=diff&rev=529986&r1=529985&r2=529986
==============================================================================
--- portals/pluto/branches/1.1-286-COMPATIBILITY/portlet2-api/src/main/java/javax/portlet/filter/RenderRequestWrapper.java
(original)
+++ portals/pluto/branches/1.1-286-COMPATIBILITY/portlet2-api/src/main/java/javax/portlet/filter/RenderRequestWrapper.java
Wed Apr 18 04:30:37 2007
@@ -1,17 +1,23 @@
-/*
- * Copyright 2006 The Apache Software Foundation
- *
- * Licensed 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
+/*  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
+ *    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.
+ *  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.
+ */
+/*
+ * NOTE: this source code is based on an early draft version of JSR 286 and not intended
for product
+ * implementations. This file may change or vanish in the final version of the JSR 286 specification.
  */
 /*
  * This source code implements specifications defined by the Java
@@ -20,6 +26,7 @@
  */
 /*
  * Copyright 2006 IBM Corporation.
+ *
  */
 package javax.portlet.filter;
 
@@ -34,6 +41,7 @@
 import javax.portlet.PortletSession;
 import javax.portlet.RenderRequest;
 import javax.portlet.WindowState;
+import javax.servlet.http.Cookie;
 
 /**
  * The <code>RenderRequestWrapper</code> provides a convenient 
@@ -375,5 +383,20 @@
         return request.getETag();
     }
 
+    /**
+     * The default behavior of this method is to call 
+     * <code>getLifecyclePhase()</code> on the wrapped request object.
+     */
+    public String getLifecyclePhase() {
+        return request.getLifecyclePhase();
+    }
+
+    /**
+     * The default behavior of this method is to call 
+     * <code>getCookieProperties()</code> on the wrapped request object.
+     */
+    public Cookie[] getCookieProperties() {
+        return request.getCookieProperties();
+    }
 
 }

Modified: portals/pluto/branches/1.1-286-COMPATIBILITY/portlet2-api/src/main/java/javax/portlet/filter/RenderResponseWrapper.java
URL: http://svn.apache.org/viewvc/portals/pluto/branches/1.1-286-COMPATIBILITY/portlet2-api/src/main/java/javax/portlet/filter/RenderResponseWrapper.java?view=diff&rev=529986&r1=529985&r2=529986
==============================================================================
--- portals/pluto/branches/1.1-286-COMPATIBILITY/portlet2-api/src/main/java/javax/portlet/filter/RenderResponseWrapper.java
(original)
+++ portals/pluto/branches/1.1-286-COMPATIBILITY/portlet2-api/src/main/java/javax/portlet/filter/RenderResponseWrapper.java
Wed Apr 18 04:30:37 2007
@@ -1,17 +1,23 @@
-/*
- * Copyright 2006 The Apache Software Foundation
- *
- * Licensed 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
+/*  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
+ *    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.
+ *  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.
+ */
+/*
+ * NOTE: this source code is based on an early draft version of JSR 286 and not intended
for product
+ * implementations. This file may change or vanish in the final version of the JSR 286 specification.
  */
 /*
  * This source code implements specifications defined by the Java
@@ -20,6 +26,7 @@
  */
 /*
  * Copyright 2006 IBM Corporation.
+ *
  */
 package javax.portlet.filter;
 
@@ -29,9 +36,11 @@
 import java.util.Locale;
 
 import javax.portlet.CacheControl;
+import javax.portlet.FragmentURL;
 import javax.portlet.PortletURL;
 import javax.portlet.RenderResponse;
 import javax.portlet.ResourceURL;
+import javax.servlet.http.Cookie;
 
 /**
  * The <code>RenderResponseWrapper</code> provides a convenient 
@@ -81,14 +90,6 @@
 
     /**
      * The default behavior of this method is to call 
-     * <code>addProperty(key, value, scope)</code> on the wrapped response object.
-     */
-    public void addProperty(String key, String value, int scope) {
-        response.addProperty(key, value, scope);
-    }
-
-    /**
-     * The default behavior of this method is to call 
      * <code>createActionURL()</code> on the wrapped response object.
      */
     public PortletURL createActionURL() {
@@ -113,6 +114,14 @@
 
     /**
      * The default behavior of this method is to call 
+     * <code>createResourceURL</code> on the wrapped response object.
+     */
+    public ResourceURL createResourceURL(boolean markupContainsPortletURLs) {
+        return response.createResourceURL(markupContainsPortletURLs);
+    }
+
+    /**
+     * The default behavior of this method is to call 
      * <code>encodeURL(path)</code> on the wrapped response object.
      */
     public String encodeURL(String path) {
@@ -137,14 +146,6 @@
 
     /**
      * The default behavior of this method is to call 
-     * <code>setProperty(key, value, scope)</code> on the wrapped response object.
-     */
-    public void setProperty(String key, String value, int scope) {
-        response.setProperty(key, value, scope);
-    }
-
-    /**
-     * The default behavior of this method is to call 
      * <code>flushBuffer()</code> on the wrapped response object.
      */ 
     public void flushBuffer() throws IOException {
@@ -255,6 +256,20 @@
         return response.getCacheControl();
     }
 
+    /**
+     * The default behavior of this method is to call 
+     * <code>createFragmentURL()</code> on the wrapped response object.
+     */
+    public FragmentURL createFragmentURL() {
+        return response.createFragmentURL();
+    }
 
+    /**
+     *  The default behavior of this method is to call 
+     * <code>addProperty()</code> on the wrapped response object.
+     */
+    public void addProperty(Cookie cookie) {
+        response.addProperty(cookie);
+    }
 
 }

Added: portals/pluto/branches/1.1-286-COMPATIBILITY/portlet2-api/src/main/java/javax/portlet/filter/ResourceFilter.java
URL: http://svn.apache.org/viewvc/portals/pluto/branches/1.1-286-COMPATIBILITY/portlet2-api/src/main/java/javax/portlet/filter/ResourceFilter.java?view=auto&rev=529986
==============================================================================
--- portals/pluto/branches/1.1-286-COMPATIBILITY/portlet2-api/src/main/java/javax/portlet/filter/ResourceFilter.java
(added)
+++ portals/pluto/branches/1.1-286-COMPATIBILITY/portlet2-api/src/main/java/javax/portlet/filter/ResourceFilter.java
Wed Apr 18 04:30:37 2007
@@ -0,0 +1,152 @@
+/*  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.
+ */
+/*
+ * NOTE: this source code is based on an early draft version of JSR 286 and not intended
for product
+ * implementations. This file may change or vanish in the final version of the JSR 286 specification.
+ */
+/*
+ * This source code implements specifications defined by the Java
+ * Community Process. In order to remain compliant with the specification
+ * DO NOT add / change / or delete method signatures!
+ */
+/*
+ * Copyright 2006 IBM Corporation.
+ *
+ */
+package javax.portlet.filter;
+
+import java.io.IOException;
+
+import javax.portlet.ResourceRequest;
+import javax.portlet.ResourceResponse;
+import javax.portlet.PortletException;
+
+/**
+ * The <code>ResourceFilter</code> is an object that performs filtering 
+ * tasks on either the resource request to a portlet, or on the resource response from 
+ * a portlet, or both.
+ * <p>
+ * Filters perform filtering in the <code>doFilter</code> method. Every Filter
has 
+ * access to a <code>FilterConfig</code> object from which it can obtain 
+ * its initialization parameters, a reference to the PortletContext 
+ * which it can use, for example, to load resources needed for filtering tasks.
+ * <p>
+ * Filters are configured in the portlet deployment descriptor of a 
+ * portlet application. 
+ * 
+ * @since 2.0
+ */
+public interface ResourceFilter {
+
+    /**
+     * Called by the portlet container to indicate to a filter
+     * that it is being placed into service. The portlet container 
+     * calls the init method exactly once after instantiating the filter. 
+     * The init method must complete successfully before the filter 
+     * is asked to do any filtering work.
+     * <p>
+     * The portlet container cannot place the filter into service if the init method either
+     * <ul>
+     *   <li>throws a PortletException</li>
+     *   <li>does not return within a time period defined by the portlet container</li>
+     * </ul>
+     * 
+     * @param filterConfig    the filter configuration data defined 
+     *                        in the portlet deployment descriptor
+     * @throws PortletException  if an error occurs in the filter intialization
+     */
+    public void init(FilterConfig filterConfig) throws PortletException;
+    
+    /**
+     * The <code>doFilter</code> method of the Filter is called by the 
+     * portlet container each time a resource request/response pair is passed 
+     * through the chain due to a client request for a portlet method 
+     * at the end of the chain. 
+     * <p>
+     * The <code>FilterChain</code> passed in to this method allows 
+     * the Filter to pass on the resource request and response to the next 
+     * component in the chain.
+     * <p>
+     * The <code>doFilter</code> method of a filter will typically be implemented

+     * following this or some subset of the following pattern:
+     * <ul>
+     *  <li>The method examines the request information.</li>
+     *  <li>The method may wrap the request object passed in to 
+     *      its doFilter method with a customized implementation 
+     *      the request wrapper <code>ResourceRequestWrapper</code> 
+     *      in order to modify request data.</li>
+     *  <li>The method may wrap the response object passed in to its 
+     *      <code>doFilter</code> method with a customized implementation 
+     *      of the response wrapper <code>ResourceResponseWrapper</code> 
+     *      to modify response data.</li>
+     *  <li>The filter may invoke the next comonent in the filter chain. 
+     *      The next component may be another filter, or if the filter 
+     *      making the invocation is the last filter configured in the 
+     *      deployment descriptor for this chain, the next component 
+     *      is the target method of the portlet. The invocation of the 
+     *      next component is effected by calling the <code>doFilter>/code>
+     *      method on the <code>FilterChain</code> object, and passing in 
+     *      the request and response with which it was called or passing 
+     *      in wrapped versions it may have created. 
+     *      The filter chain’s implementation of the <code>doFilter</code> 
+     *      method, provided by the portlet container, must locate the 
+     *      next component in the filter chain and invoke its <code>doFilter</code>
+     *      method, passing in the appropriate request and response objects. 
+     *      Alternatively, the filter chain can block the request by not 
+     *      making the call to invoke the next component, leaving the filter 
+     *      responsible for filling out the response object.</li>
+     *  <li>After invocation of the next filter in the chain, the filter 
+     *      may examine the response data.</li>
+     *  <li>Alternatively, the filter may have thrown an exception to 
+     *      indicate an error in processing. If the filter throws an 
+     *      <code>UnavailableException</code> during its <code>doFilter</code>

+     *      processing, the portlet container must not attempt continued 
+     *      processing down the filter chain. It may choose to retry the 
+     *      whole chain at a later time if the exception is not marked permanent.</li>
+     *  <li>When the last filter in the chain has been invoked, the next 
+     *      component accessed is the target method on the portlet at 
+     *      the end of the chain.</li>
+     * </ul>
+     * 
+     * @param request  the current resource request 
+     * @param response  the current resource response 
+     * @param chain  the remaining filter chain
+     * @throws IOException  if an IO error occured in the filter processing
+     * @throws PortletException  if a portlet exception occured in the filter processing
+     */
+    public void doFilter(ResourceRequest request, ResourceResponse response,
+                         FilterChain chain)
+     throws IOException, PortletException;
+    
+    /**
+     * Called by the portlet container to indicate to a filter that it is 
+     * being taken out of service. This method is only called once all threads 
+     * within the filter's <code>doFilter</code> method have exited or 
+     * after a timeout period has passed. 
+     * <p>
+     * After the portlet container calls this method, it will not call the 
+     * <code>doFilter</code> method again on this instance of the filter.
+     * <p>
+     * This method gives the filter an opportunity to clean up any resources 
+     * that are being held (for example, memory, file handles, threads) and 
+     * make sure that any persistent state is synchronized with the 
+     * filter's current state in memory.
+     */
+    public void destroy();
+    
+}

Modified: portals/pluto/branches/1.1-286-COMPATIBILITY/portlet2-api/src/main/java/javax/portlet/filter/ResourceRequestWrapper.java
URL: http://svn.apache.org/viewvc/portals/pluto/branches/1.1-286-COMPATIBILITY/portlet2-api/src/main/java/javax/portlet/filter/ResourceRequestWrapper.java?view=diff&rev=529986&r1=529985&r2=529986
==============================================================================
--- portals/pluto/branches/1.1-286-COMPATIBILITY/portlet2-api/src/main/java/javax/portlet/filter/ResourceRequestWrapper.java
(original)
+++ portals/pluto/branches/1.1-286-COMPATIBILITY/portlet2-api/src/main/java/javax/portlet/filter/ResourceRequestWrapper.java
Wed Apr 18 04:30:37 2007
@@ -1,17 +1,23 @@
-/*
- * Copyright 2006 The Apache Software Foundation
- *
- * Licensed 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
+/*  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
+ *    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.
+ *  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.
+ */
+/*
+ * NOTE: this source code is based on an early draft version of JSR 286 and not intended
for product
+ * implementations. This file may change or vanish in the final version of the JSR 286 specification.
  */
 /*
  * This source code implements specifications defined by the Java
@@ -20,6 +26,7 @@
  */
 /*
  * Copyright 2006 IBM Corporation.
+ *
  */
 package javax.portlet.filter;
 
@@ -38,6 +45,7 @@
 import javax.portlet.PortletSession;
 import javax.portlet.ResourceRequest;
 import javax.portlet.WindowState;
+import javax.servlet.http.Cookie;
 
 /**
  * The <code>ResourceRequestWrapper</code> provides a convenient 
@@ -429,4 +437,38 @@
     public String getETag() {
         return request.getETag();
     }
+
+    /**
+     * The default behavior of this method is to call 
+     * <code>getLifecyclePhase()</code> on the wrapped request object.
+     */
+    public String getLifecyclePhase() {
+        return request.getLifecyclePhase();
+    }
+
+    /**
+     *  The default behavior of this method is to call 
+     * <code>getMethod()</code> on the wrapped request object.
+     */
+    public String getMethod() {
+        return request.getMethod();
+    }
+
+    /**
+     * The default behavior of this method is to call 
+     * <code>getResourceID()</code> on the wrapped request object.
+     */
+    public String getResourceID() {
+        return request.getResourceID();
+    }
+
+
+    /**
+     * The default behavior of this method is to call 
+     * <code>getCookieProperties()</code> on the wrapped request object.
+     */
+    public Cookie[] getCookieProperties() {
+        return request.getCookieProperties();
+    }
+    
 }

Modified: portals/pluto/branches/1.1-286-COMPATIBILITY/portlet2-api/src/main/java/javax/portlet/filter/ResourceResponseWrapper.java
URL: http://svn.apache.org/viewvc/portals/pluto/branches/1.1-286-COMPATIBILITY/portlet2-api/src/main/java/javax/portlet/filter/ResourceResponseWrapper.java?view=diff&rev=529986&r1=529985&r2=529986
==============================================================================
--- portals/pluto/branches/1.1-286-COMPATIBILITY/portlet2-api/src/main/java/javax/portlet/filter/ResourceResponseWrapper.java
(original)
+++ portals/pluto/branches/1.1-286-COMPATIBILITY/portlet2-api/src/main/java/javax/portlet/filter/ResourceResponseWrapper.java
Wed Apr 18 04:30:37 2007
@@ -1,17 +1,23 @@
-/*
- * Copyright 2006 The Apache Software Foundation
- *
- * Licensed 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
+/*  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
+ *    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.
+ *  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.
+ */
+/*
+ * NOTE: this source code is based on an early draft version of JSR 286 and not intended
for product
+ * implementations. This file may change or vanish in the final version of the JSR 286 specification.
  */
 /*
  * This source code implements specifications defined by the Java
@@ -20,6 +26,7 @@
  */
 /*
  * Copyright 2006 IBM Corporation.
+ *
  */
 package javax.portlet.filter;
 
@@ -29,9 +36,12 @@
 import java.util.Locale;
 
 import javax.portlet.CacheControl;
+import javax.portlet.FragmentRequest;
+import javax.portlet.FragmentURL;
 import javax.portlet.PortletURL;
 import javax.portlet.ResourceResponse;
 import javax.portlet.ResourceURL;
+import javax.servlet.http.Cookie;
 
 /**
  * The <code>ResourceResponseWrapper</code> provides a convenient 
@@ -81,14 +91,6 @@
 
     /**
      * The default behavior of this method is to call 
-     * <code>addProperty(key, value, scope)</code> on the wrapped response object.
-     */
-    public void addProperty(String key, String value, int scope) {
-        response.addProperty(key, value, scope);
-    }
-
-    /**
-     * The default behavior of this method is to call 
      * <code>createActionURL()</code> on the wrapped response object.
      */
     public PortletURL createActionURL() {
@@ -113,6 +115,14 @@
 
     /**
      * The default behavior of this method is to call 
+     * <code>createResourceURL</code> on the wrapped response object.
+     */
+    public ResourceURL createResourceURL(boolean markupContainsPortletURLs) {
+        return response.createResourceURL(markupContainsPortletURLs);
+    }
+
+   /**
+     * The default behavior of this method is to call 
      * <code>encodeURL(path)</code> on the wrapped response object.
      */
     public String encodeURL(String path) {
@@ -137,14 +147,6 @@
 
     /**
      * The default behavior of this method is to call 
-     * <code>setProperty(key, value, scope)</code> on the wrapped response object.
-     */
-    public void setProperty(String key, String value, int scope) {
-        response.setProperty(key, value, scope);
-    }
-
-    /**
-     * The default behavior of this method is to call 
      * <code>flushBuffer()</code> on the wrapped response object.
      */ 
     public void flushBuffer() throws IOException {
@@ -254,6 +256,48 @@
      */
     public CacheControl getCacheControl() {
         return response.getCacheControl();
+    }
+
+    /**
+     * The default behavior of this method is to call 
+     * <code>setCharacterEncoding(String charset)</code> on the wrapped response
object.
+     */
+    public void setCharacterEncoding(String charset) {
+        this.setCharacterEncoding(charset);
+        return;
+    }
+
+    /**
+     * The default behavior of this method is to call 
+     * <code>setLocale(Locale loc)</code> on the wrapped response object.
+     */
+    public void setLocale(Locale loc) {
+        this.setLocale(loc);
+        return;
+    }
+
+    /**
+     * The default behavior of this method is to call 
+     * <code>createFragmentURL()</code> on the wrapped response object.
+     */
+    public FragmentURL createFragmentURL() {
+        return response.createFragmentURL();
+    }
+
+    /**
+     *  The default behavior of this method is to call 
+     * <code>addProperty()</code> on the wrapped response object.
+     */
+    public void addProperty(Cookie cookie) {
+        response.addProperty(cookie);
+    }
+
+    /**
+     *  The default behavior of this method is to call 
+     * <code>setContentLength()</code> on the wrapped response object.
+     */
+    public void setContentLength(int len) {
+        response.setContentLength(len);
     }
 
 }

Added: portals/pluto/branches/1.1-286-COMPATIBILITY/portlet2-api/src/main/java/javax/portlet/license.txt
URL: http://svn.apache.org/viewvc/portals/pluto/branches/1.1-286-COMPATIBILITY/portlet2-api/src/main/java/javax/portlet/license.txt?view=auto&rev=529986
==============================================================================
--- portals/pluto/branches/1.1-286-COMPATIBILITY/portlet2-api/src/main/java/javax/portlet/license.txt
(added)
+++ portals/pluto/branches/1.1-286-COMPATIBILITY/portlet2-api/src/main/java/javax/portlet/license.txt
Wed Apr 18 04:30:37 2007
@@ -0,0 +1,47 @@
+Copyright © 2003 Sun Microsystems, Inc. and IBM Corporation. All rights 
+reserved.U.S. Government Rights - Commercial software.  Government 
+users are subject to the Sun Microsystems, Inc. standard license 
+agreement and applicable provisions of the FAR and its supplements.  
+Sun,  Sun Microsystems,  the Sun logo,  Java and  Jini are trademarks 
+or registered trademarks of Sun Microsystems, Inc. in the U.S. and 
+other countries.Products covered by and information contained in this 
+service manual are controlled by U.S. Export Control laws and may be 
+subject to the export or import laws in other countries.  Nuclear, 
+missile, chemical biological weapons or nuclear maritime end uses or 
+end users, whether direct or indirect, are strictly prohibited.  Export 
+or reexport to countries subject to U.S. embargo or to entities 
+identified on U.S. export exclusion lists, including, but not limited 
+to, the denied persons and specially designated nationals lists is 
+strictly prohibited.DOCUMENTATION IS PROVIDED "AS IS" AND ALL EXPRESS 
+OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY 
+IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE 
+OR NON-INFRINGEMENT, ARE DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH 
+DISCLAIMERS ARE HELD TO BE LEGALLY INVALID.
+
+
+
+Copyright © 2003 Sun Microsystems, Inc. et IBM Corporation. Tous droits 
+réservés.Sun,  Sun Microsystems,  le logo Sun,  Java et  Jini sont des 
+marques de fabrique ou des marques déposées de Sun Microsystems, Inc. 
+aux Etats-Unis et dans d'autres pays.
+Les produits qui font l'objet de ce manuel d'entretien et les 
+informations qu'il contient sont regis par la legislation americaine en 
+matiere de controle des exportations et peuvent etre soumis au droit 
+d'autres pays dans le domaine des exportations et importations. Les 
+utilisations finales, ou utilisateurs finaux, pour des armes 
+nucleaires, des missiles, des armes biologiques et chimiques ou du 
+nucleaire maritime, directement ou indirectement, sont strictement 
+interdites. Les exportations ou reexportations vers des pays sous 
+embargo des Etats-Unis, ou vers des entites figurant sur les listes 
+d'exclusion d'exportation americaines, y compris, mais de maniere non 
+exclusive, la liste de personnes qui font objet d'un ordre de ne pas 
+participer, d'une facon directe ou indirecte, aux exportations des 
+produits ou des services qui sont regi par la legislation americaine en 
+matiere de controle des exportations et la liste de ressortissants 
+specifiquement designes, sont rigoureusement interdites.LA 
+DOCUMENTATION EST FOURNIE "EN L'ETAT" ET TOUTES AUTRES CONDITIONS, 
+DECLARATIONS ET GARANTIES EXPRESSES OU TACITES SONT FORMELLEMENT 
+EXCLUES, DANS LA MESURE AUTORISEE PAR LA LOI APPLICABLE, Y COMPRIS 
+NOTAMMENT TOUTE GARANTIE IMPLICITE RELATIVE A LA QUALITE MARCHANDE, A 
+L'APTITUDE A UNE UTILISATION PARTICULIERE OU A L'ABSENCE DE CONTREFACON.
+



Mime
View raw message