Package play.http
Class HtmlOrJsonHttpErrorHandler
- Object
-
- play.http.PreferredMediaTypeHttpErrorHandler
-
- play.http.HtmlOrJsonHttpErrorHandler
-
- All Implemented Interfaces:
HttpErrorHandler
public class HtmlOrJsonHttpErrorHandler extends PreferredMediaTypeHttpErrorHandler
An HttpErrorHandler that uses either HTML or JSON in the response depending on the client's preference.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface play.http.HttpErrorHandler
HttpErrorHandler.Attrs
-
-
Constructor Summary
Constructors Constructor Description HtmlOrJsonHttpErrorHandler(DefaultHttpErrorHandler htmlHandler, JsonHttpErrorHandler jsonHandler)
-
-
-
Constructor Detail
-
HtmlOrJsonHttpErrorHandler
@Inject public HtmlOrJsonHttpErrorHandler(DefaultHttpErrorHandler htmlHandler, JsonHttpErrorHandler jsonHandler)
-
-