You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ba...@apache.org on 2007/05/28 18:04:15 UTC

svn commit: r542255 - /myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/requestParameterProvider/RequestParameterResponseWrapper.java

Author: baranda
Date: Mon May 28 09:04:14 2007
New Revision: 542255

URL: http://svn.apache.org/viewvc?view=rev&rev=542255
Log:
Added getContentType method, so the sandbox is compatible with the RI (the RI calls that method, that is part from servlets 2.4+)

Modified:
    myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/requestParameterProvider/RequestParameterResponseWrapper.java

Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/requestParameterProvider/RequestParameterResponseWrapper.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/requestParameterProvider/RequestParameterResponseWrapper.java?view=diff&rev=542255&r1=542254&r2=542255
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/requestParameterProvider/RequestParameterResponseWrapper.java (original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/requestParameterProvider/RequestParameterResponseWrapper.java Mon May 28 09:04:14 2007
@@ -20,9 +20,9 @@
 package org.apache.myfaces.custom.requestParameterProvider;
 
 
-import javax.servlet.http.HttpServletResponse;
-import javax.servlet.http.Cookie;
 import javax.servlet.ServletOutputStream;
+import javax.servlet.http.Cookie;
+import javax.servlet.http.HttpServletResponse;
 import java.io.IOException;
 import java.io.PrintWriter;
 import java.util.Locale;
@@ -34,7 +34,7 @@
 public class RequestParameterResponseWrapper implements HttpServletResponse
 {
     protected HttpServletResponse original;
-
+    private String contentType;
 
     public RequestParameterResponseWrapper(HttpServletResponse httpServletResponse)
     {
@@ -185,6 +185,7 @@
 
     public void setContentType(String string)
     {
+        this.contentType = string;
         this.original.setContentType(string);
     }
 
@@ -226,5 +227,10 @@
     public Locale getLocale()
     {
         return this.original.getLocale();
+    }
+
+    public String getContentType()
+    {
+        return contentType;
     }
 }