incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r966215 - in /sling/trunk/contrib/extensions/bgservlets/src/main/java/org/apache/sling/bgservlets: ./ impl/
Date Wed, 21 Jul 2010 13:12:12 GMT
Author: bdelacretaz
Date: Wed Jul 21 13:12:12 2010
New Revision: 966215

URL: http://svn.apache.org/viewvc?rev=966215&view=rev
Log:
SLING-550 - expose utility request/response classes

Added:
    sling/trunk/contrib/extensions/bgservlets/src/main/java/org/apache/sling/bgservlets/BackgroundHttpServletRequest.java
      - copied, changed from r965831, sling/trunk/contrib/extensions/bgservlets/src/main/java/org/apache/sling/bgservlets/impl/BackgroundHttpServletRequest.java
    sling/trunk/contrib/extensions/bgservlets/src/main/java/org/apache/sling/bgservlets/BackgroundHttpServletResponse.java
      - copied, changed from r965831, sling/trunk/contrib/extensions/bgservlets/src/main/java/org/apache/sling/bgservlets/impl/BackgroundHttpServletResponse.java
Removed:
    sling/trunk/contrib/extensions/bgservlets/src/main/java/org/apache/sling/bgservlets/impl/BackgroundHttpServletRequest.java
    sling/trunk/contrib/extensions/bgservlets/src/main/java/org/apache/sling/bgservlets/impl/BackgroundHttpServletResponse.java
Modified:
    sling/trunk/contrib/extensions/bgservlets/src/main/java/org/apache/sling/bgservlets/impl/BackgroundRequestExecutionJob.java

Copied: sling/trunk/contrib/extensions/bgservlets/src/main/java/org/apache/sling/bgservlets/BackgroundHttpServletRequest.java
(from r965831, sling/trunk/contrib/extensions/bgservlets/src/main/java/org/apache/sling/bgservlets/impl/BackgroundHttpServletRequest.java)
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/extensions/bgservlets/src/main/java/org/apache/sling/bgservlets/BackgroundHttpServletRequest.java?p2=sling/trunk/contrib/extensions/bgservlets/src/main/java/org/apache/sling/bgservlets/BackgroundHttpServletRequest.java&p1=sling/trunk/contrib/extensions/bgservlets/src/main/java/org/apache/sling/bgservlets/impl/BackgroundHttpServletRequest.java&r1=965831&r2=966215&rev=966215&view=diff
==============================================================================
--- sling/trunk/contrib/extensions/bgservlets/src/main/java/org/apache/sling/bgservlets/impl/BackgroundHttpServletRequest.java
(original)
+++ sling/trunk/contrib/extensions/bgservlets/src/main/java/org/apache/sling/bgservlets/BackgroundHttpServletRequest.java
Wed Jul 21 13:12:12 2010
@@ -16,7 +16,7 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package org.apache.sling.bgservlets.impl;
+package org.apache.sling.bgservlets;
 
 import java.io.BufferedReader;
 import java.io.IOException;
@@ -34,6 +34,7 @@ import javax.servlet.http.Cookie;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpSession;
 
+/** Minimal HttpServletRequest for background processing */
 public class BackgroundHttpServletRequest implements HttpServletRequest {
 
     private final String contextPath;
@@ -90,7 +91,7 @@ public class BackgroundHttpServletReques
     }
 
     @SuppressWarnings("unchecked")
-    BackgroundHttpServletRequest(HttpServletRequest r,
+    public BackgroundHttpServletRequest(HttpServletRequest r,
             String[] parametersToRemove) {
 
         // Store objects which are safe to use outside

Copied: sling/trunk/contrib/extensions/bgservlets/src/main/java/org/apache/sling/bgservlets/BackgroundHttpServletResponse.java
(from r965831, sling/trunk/contrib/extensions/bgservlets/src/main/java/org/apache/sling/bgservlets/impl/BackgroundHttpServletResponse.java)
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/extensions/bgservlets/src/main/java/org/apache/sling/bgservlets/BackgroundHttpServletResponse.java?p2=sling/trunk/contrib/extensions/bgservlets/src/main/java/org/apache/sling/bgservlets/BackgroundHttpServletResponse.java&p1=sling/trunk/contrib/extensions/bgservlets/src/main/java/org/apache/sling/bgservlets/impl/BackgroundHttpServletResponse.java&r1=965831&r2=966215&rev=966215&view=diff
==============================================================================
--- sling/trunk/contrib/extensions/bgservlets/src/main/java/org/apache/sling/bgservlets/impl/BackgroundHttpServletResponse.java
(original)
+++ sling/trunk/contrib/extensions/bgservlets/src/main/java/org/apache/sling/bgservlets/BackgroundHttpServletResponse.java
Wed Jul 21 13:12:12 2010
@@ -16,7 +16,7 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package org.apache.sling.bgservlets.impl;
+package org.apache.sling.bgservlets;
 
 import java.io.IOException;
 import java.io.OutputStream;
@@ -31,7 +31,7 @@ import javax.servlet.http.HttpServletRes
 import org.apache.sling.api.SlingHttpServletResponse;
 
 /** Minimal HttpServletResponse for background processing */
-class BackgroundHttpServletResponse implements SlingHttpServletResponse {
+public class BackgroundHttpServletResponse implements SlingHttpServletResponse {
 
     private final ServletOutputStream stream;
     private final PrintWriter writer;
@@ -62,7 +62,7 @@ class BackgroundHttpServletResponse impl
 
     }
 
-    BackgroundHttpServletResponse(HttpServletResponse hsr, OutputStream os)
+    public BackgroundHttpServletResponse(HttpServletResponse hsr, OutputStream os)
             throws IOException {
         stream = new ServletOutputStreamWrapper(os);
         writer = new PrintWriter(new OutputStreamWriter(stream));
@@ -70,7 +70,7 @@ class BackgroundHttpServletResponse impl
                 : null);
     }
 
-    void cleanup() throws IOException {
+    public void cleanup() throws IOException {
         stream.flush();
         stream.close();
     }

Modified: sling/trunk/contrib/extensions/bgservlets/src/main/java/org/apache/sling/bgservlets/impl/BackgroundRequestExecutionJob.java
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/extensions/bgservlets/src/main/java/org/apache/sling/bgservlets/impl/BackgroundRequestExecutionJob.java?rev=966215&r1=966214&r2=966215&view=diff
==============================================================================
--- sling/trunk/contrib/extensions/bgservlets/src/main/java/org/apache/sling/bgservlets/impl/BackgroundRequestExecutionJob.java
(original)
+++ sling/trunk/contrib/extensions/bgservlets/src/main/java/org/apache/sling/bgservlets/impl/BackgroundRequestExecutionJob.java
Wed Jul 21 13:12:12 2010
@@ -29,6 +29,8 @@ import javax.servlet.http.HttpServletRes
 import org.apache.sling.api.resource.LoginException;
 import org.apache.sling.api.resource.ResourceResolver;
 import org.apache.sling.api.resource.ResourceResolverFactory;
+import org.apache.sling.bgservlets.BackgroundHttpServletRequest;
+import org.apache.sling.bgservlets.BackgroundHttpServletResponse;
 import org.apache.sling.bgservlets.JobStatus;
 import org.apache.sling.bgservlets.impl.nodestream.NodeOutputStream;
 import org.apache.sling.commons.auth.spi.AuthenticationInfo;



Mime
View raw message