Commits

Anonymous committed 57a43ff

Adding missing methods getContentEncoding and getContentType
Submitted by: Lars Torunski

  • Participants
  • Parent commits 0aa3431

Comments (0)

Files changed (1)

src/core/java/com/opensymphony/oscache/web/filter/ResponseContent.java

 
 import java.io.*;
 
-import java.util.Enumeration;
 import java.util.Locale;
 import java.util.zip.GZIPInputStream;
-import java.util.zip.ZipException;
 
-import javax.servlet.ServletRequest;
 import javax.servlet.ServletResponse;
-import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
 
 /**
     private long expires = Long.MAX_VALUE;
     private long lastModified = -1;
 
+    public String getContentType() {
+        return contentType;
+    }
+    
     /**
      * Set the content type. We capture this so that when we serve this
      * data from cache, we can set the correct content type on the response.
         lastModified = value;
     }
 
+    public String getContentEncoding() {
+        return contentEncoding;
+    }
+
     public void setContentEncoding(String contentEncoding) {
         this.contentEncoding = contentEncoding;
     }