Permalink
Browse files

Added Java constructor

  • Loading branch information...
jroper committed Feb 5, 2013
1 parent bee63b8 commit 008013f6717fa58e038a5ba920134b57a2fda911
Showing with 6 additions and 1 deletion.
  1. +1 −1 project/Build.scala
  2. +5 −0 src/main/scala/play/extras/iteratees/Gzip.scala
View
@@ -16,7 +16,7 @@ object ApplicationBuild extends Build {
else Some("releases" at nexus + "maven-releases/")
},
organization := "com.typesafe.play.extras",
- version := "1.0.0",
+ version := "1.0.1",
scalaVersion := "2.10.0"
)
@@ -446,6 +446,11 @@ object Gzip {
*/
class GzipFilter(gzip: Enumeratee[Array[Byte], Array[Byte]] = Gzip.gzip(8192), chunkedThreshold: Int = 102400) extends EssentialFilter {
+ /**
+ * This allows it to be used from Java
+ */
+ def this() = this(Gzip.gzip(8192), 102400)
+
def apply(next: EssentialAction) = new EssentialAction {
def apply(request: RequestHeader) = {
if (mayCompress(request)) {

0 comments on commit 008013f

Please sign in to comment.