Package play.mvc
Provides the Controller/Action/Result API for handling HTTP requests.
-
Interface Summary Interface Description BodyParser<A> A body parser parses the HTTP request body content.Http.Cookies HTTP Cookies setHttp.HeaderNames Defines all standard HTTP headers.Http.HttpVerbs Standard HTTP VerbsHttp.MimeTypes Common HTTP MIME typesHttp.MultipartFormData.Part<A> Http.Request An HTTP request.Http.RequestHeader Http.Status Defines all standard HTTP status codes.PathBindable<T extends PathBindable<T>> Binder for path parameters.QueryStringBindable<T extends QueryStringBindable<T>> Binder for query string parameters.RangeResults.SourceFunction -
Class Summary Class Description Action<T> An action acts as decorator for the action method call.Action.Simple A simple action with no configuration.BodyParser.AnyContent Guess the body content by checking the Content-Type header.BodyParser.BufferingBodyParser<A> A body parser that first buffersBodyParser.Bytes Parse the body as a byte string.BodyParser.CompletableBodyParser<A> A body parser that completes the underlying one.BodyParser.Default If the request has a body, guess the body content by checking the Content-Type header.BodyParser.DelegatingBodyParser<A,B> A body parser that delegates to a Scala body parser, and uses the supplied function to transform its result to a Java body.BodyParser.DelegatingMultipartFormDataBodyParser<A> A body parser that exposes a file part handler as an abstract method and delegates the implementation to the underlying Scala multipartParser.BodyParser.Empty Don't parse the body.BodyParser.FormUrlEncoded Parse the body as form url encoded if the Content-Type is application/x-www-form-urlencoded.BodyParser.Json Parse the body as Json if the Content-Type is text/json or application/json.BodyParser.MaxLengthBodyParser<A> Abstract body parser that enforces a maximum length.BodyParser.MultipartFormData Parse the body as multipart form-data without checking the Content-Type.BodyParser.Raw Store the body content in a RawBuffer.BodyParser.TemporaryFile BodyParser.Text Parse the body as text if the Content-Type is text/plain.BodyParser.ToFile BodyParser.TolerantJson Parse the body as Json without checking the Content-Type.BodyParser.TolerantText Parse the body as text without checking the Content-Type.BodyParser.TolerantXml Parse the body as Xml without checking the Content-Type.BodyParser.Xml Parse the body as Xml if the Content-Type is application/xml.BodyParsers Utilities for creating body parsers.Call Defines a 'call', describing an HTTP request.Controller Superclass for a Java-based controller.EssentialAction Given a `RequestHeader`, an `EssentialAction` consumes the request body (a `ByteString`) and returns a `Result`.EssentialFilter FileMimeTypes Filter Http Defines HTTP standard objects.Http.Cookie HTTP CookieHttp.CookieBuilder Http.Flash HTTP Flash.Http.Headers Http.MultipartFormData<A> Multipart form data body.Http.MultipartFormData.DataPart Http.MultipartFormData.FileInfo Info about a file partHttp.MultipartFormData.FilePart<A> A file part.Http.RawBuffer Handle the request body a raw bytes data.Http.RequestBody The request body.Http.RequestBuilder The builder for building a request.Http.RequestImpl An HTTP request.Http.Session HTTP Session.MultipartFormatter RangeResults Java API for Range results.RangeResults.SourceAndOffset ResponseHeader A simple HTTP response header, used for standard responses.Result Any action result.Results Common results.Security Defines several security helpers.Security.AuthenticatedAction Wraps another action, allowing only authenticated HTTP requests.Security.Authenticator Handles authentication.StaticFileMimeTypes StatusHeader A status with no bodyWebSocket A WebSocket handler.WebSocket.MappedWebSocketAcceptor<In,Out> Utility class for creating WebSockets. -
Enum Summary Enum Description Http.Cookie.SameSite The cookie SameSite attribute -
Annotation Types Summary Annotation Type Description BodyParser.Of Specify the body parser to use for an Action method.Security.Authenticated Wraps the annotated action in anSecurity.AuthenticatedAction
.With Decorates anAction
or aController
with anotherAction
.