Package play.mvc
Class EssentialAction
- Object
-
- scala.runtime.AbstractFunction1<play.api.mvc.RequestHeader,play.api.libs.streams.Accumulator<ByteString,play.api.mvc.Result>>
-
- play.mvc.EssentialAction
-
- All Implemented Interfaces:
play.api.mvc.EssentialAction
,play.api.mvc.Handler
,scala.Function1<play.api.mvc.RequestHeader,play.api.libs.streams.Accumulator<ByteString,play.api.mvc.Result>>
public abstract class EssentialAction extends scala.runtime.AbstractFunction1<play.api.mvc.RequestHeader,play.api.libs.streams.Accumulator<ByteString,play.api.mvc.Result>> implements play.api.mvc.EssentialAction, play.api.mvc.Handler
Given a `RequestHeader`, an `EssentialAction` consumes the request body (a `ByteString`) and returns a `Result`.An `EssentialAction` is a `Handler`, which means it is one of the objects that Play uses to handle requests. You can use this to create your action inside a filter, for example.
Unlike traditional method-based Java actions, EssentialAction does not use a context.
-
-
Constructor Summary
Constructors Constructor Description EssentialAction()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description play.api.mvc.EssentialAction
apply()
play.api.libs.streams.Accumulator<ByteString,play.api.mvc.Result>
apply(play.api.mvc.RequestHeader rh)
abstract Accumulator<ByteString,Result>
apply(Http.RequestHeader requestHeader)
EssentialAction
asJava()
static EssentialAction
of(Function<Http.RequestHeader,Accumulator<ByteString,Result>> action)
-
Methods inherited from class scala.runtime.AbstractFunction1
andThen, apply$mcDD$sp, apply$mcDF$sp, apply$mcDI$sp, apply$mcDJ$sp, apply$mcFD$sp, apply$mcFF$sp, apply$mcFI$sp, apply$mcFJ$sp, apply$mcID$sp, apply$mcIF$sp, apply$mcII$sp, apply$mcIJ$sp, apply$mcJD$sp, apply$mcJF$sp, apply$mcJI$sp, apply$mcJJ$sp, apply$mcVD$sp, apply$mcVF$sp, apply$mcVI$sp, apply$mcVJ$sp, apply$mcZD$sp, apply$mcZF$sp, apply$mcZI$sp, apply$mcZJ$sp, compose, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface scala.Function1
andThen, apply$mcDD$sp, apply$mcDF$sp, apply$mcDI$sp, apply$mcDJ$sp, apply$mcFD$sp, apply$mcFF$sp, apply$mcFI$sp, apply$mcFJ$sp, apply$mcID$sp, apply$mcIF$sp, apply$mcII$sp, apply$mcIJ$sp, apply$mcJD$sp, apply$mcJF$sp, apply$mcJI$sp, apply$mcJJ$sp, apply$mcVD$sp, apply$mcVF$sp, apply$mcVI$sp, apply$mcVJ$sp, apply$mcZD$sp, apply$mcZF$sp, apply$mcZI$sp, apply$mcZJ$sp, compose, toString
-
-
-
-
Method Detail
-
of
public static EssentialAction of(Function<Http.RequestHeader,Accumulator<ByteString,Result>> action)
-
apply
public abstract Accumulator<ByteString,Result> apply(Http.RequestHeader requestHeader)
-
apply
public play.api.libs.streams.Accumulator<ByteString,play.api.mvc.Result> apply(play.api.mvc.RequestHeader rh)
- Specified by:
apply
in interfacescala.Function1<play.api.mvc.RequestHeader,play.api.libs.streams.Accumulator<ByteString,play.api.mvc.Result>>
-
apply
public play.api.mvc.EssentialAction apply()
- Specified by:
apply
in interfaceplay.api.mvc.EssentialAction
-
asJava
public EssentialAction asJava()
- Specified by:
asJava
in interfaceplay.api.mvc.EssentialAction
-
-