Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added Java constructor

  • Loading branch information...
commit 008013f6717fa58e038a5ba920134b57a2fda911 1 parent bee63b8
@jroper authored
View
2  project/Build.scala
@@ -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"
)
View
5 src/main/scala/play/extras/iteratees/Gzip.scala
@@ -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)) {
Please sign in to comment.
Something went wrong with that request. Please try again.