Class ErrorResponseContentCreator
- java.lang.Object
-
- com.yahoo.jdisc.http.server.jetty.ErrorResponseContentCreator
-
public class ErrorResponseContentCreator extends java.lang.Object
Creates HTML body having the status code, error message and request uri. The body is constructed from a template that is inspired by the default Jetty template (seeResponse.sendError(int, String)
). The content is written using the ISO-8859-1 charset.- Author:
- bjorncs
-
-
Constructor Summary
Constructors Constructor Description ErrorResponseContentCreator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
createErrorContent(java.lang.String requestUri, int statusCode, java.util.Optional<java.lang.String> message)
-