Package play.mvc

Class 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.

    • Nested Class Summary

      • Nested classes/interfaces inherited from interface scala.Function1

        scala.Function1.UnliftOps<A extends Object,​B extends Object>, scala.Function1.UnliftOps$
      • Nested classes/interfaces inherited from interface play.api.mvc.Handler

        play.api.mvc.Handler.Stage, play.api.mvc.Handler.Stage$
    • 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 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
    • Constructor Detail

      • EssentialAction

        public EssentialAction()