incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r966278 - /sling/trunk/contrib/extensions/bgservlets/src/main/java/org/apache/sling/bgservlets/BackgroundHttpServletResponse.java
Date Wed, 21 Jul 2010 15:18:02 GMT
Author: bdelacretaz
Date: Wed Jul 21 15:18:00 2010
New Revision: 966278

URL: http://svn.apache.org/viewvc?rev=966278&view=rev
Log:
SLING-505 - BackgroundHttpServletResponse implements just HttpServletResponse, not the Sling
variant

Modified:
    sling/trunk/contrib/extensions/bgservlets/src/main/java/org/apache/sling/bgservlets/BackgroundHttpServletResponse.java

Modified: sling/trunk/contrib/extensions/bgservlets/src/main/java/org/apache/sling/bgservlets/BackgroundHttpServletResponse.java
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/extensions/bgservlets/src/main/java/org/apache/sling/bgservlets/BackgroundHttpServletResponse.java?rev=966278&r1=966277&r2=966278&view=diff
==============================================================================
--- sling/trunk/contrib/extensions/bgservlets/src/main/java/org/apache/sling/bgservlets/BackgroundHttpServletResponse.java
(original)
+++ sling/trunk/contrib/extensions/bgservlets/src/main/java/org/apache/sling/bgservlets/BackgroundHttpServletResponse.java
Wed Jul 21 15:18:00 2010
@@ -28,14 +28,11 @@ import javax.servlet.ServletOutputStream
 import javax.servlet.http.Cookie;
 import javax.servlet.http.HttpServletResponse;
 
-import org.apache.sling.api.SlingHttpServletResponse;
-
 /** Minimal HttpServletResponse for background processing */
-public class BackgroundHttpServletResponse implements SlingHttpServletResponse {
+public class BackgroundHttpServletResponse implements HttpServletResponse {
 
     private final ServletOutputStream stream;
     private final PrintWriter writer;
-    private final SlingHttpServletResponse wrappedResponse;
 
     static class ServletOutputStreamWrapper extends ServletOutputStream {
 
@@ -66,8 +63,6 @@ public class BackgroundHttpServletRespon
             throws IOException {
         stream = new ServletOutputStreamWrapper(os);
         writer = new PrintWriter(new OutputStreamWriter(stream));
-        wrappedResponse = (hsr instanceof SlingHttpServletResponse ? (SlingHttpServletResponse)
hsr
-                : null);
     }
 
     public void cleanup() throws IOException {
@@ -188,11 +183,4 @@ public class BackgroundHttpServletRespon
 
     public void setLocale(Locale arg0) {
     }
-
-    public <AdapterType> AdapterType adaptTo(Class<AdapterType> t) {
-        if (wrappedResponse != null) {
-            return wrappedResponse.adaptTo(t);
-        }
-        return null;
-    }
 }
\ No newline at end of file



Mime
View raw message