Package play.mvc

Class BodyParser.AnyContent

java.lang.Object
play.mvc.BodyParser.AnyContent
All Implemented Interfaces:
BodyParser<Object>
Direct Known Subclasses:
BodyParser.Default
Enclosing interface:
BodyParser<A>

public static class BodyParser.AnyContent extends Object implements BodyParser<Object>
Guess the body content by checking the Content-Type header.
  • Constructor Details

    • AnyContent

      @Inject public AnyContent(HttpErrorHandler errorHandler, play.api.http.HttpConfiguration httpConfiguration, play.api.mvc.PlayBodyParsers parsers)
  • Method Details

    • apply

      Description copied from interface: BodyParser
      Return an accumulator to parse the body of the given HTTP request.

      The accumulator should either produce a result if an error was encountered, or the parsed body.

      Specified by:
      apply in interface BodyParser<Object>
      Parameters:
      request - The request to create the body parser for.
      Returns:
      The accumulator to parse the body.