Package com.xebialabs.deployit
Interface HttpErrorHandler
- All Known Implementing Classes:
LicenseMissingErrorHandler
public interface HttpErrorHandler
Interface to describe specific handlers for specific error conditions.
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanHandle(jakarta.servlet.http.HttpServletRequest request, int code) Can this implementation handle the type of error raised for the request?default voidchangeResponse(jakarta.servlet.http.HttpServletResponse response) Enables a specific handler to change the response.voidwriteErrorContent(Writer writer) Write the content of the HTML page to display.
-
Method Details
-
canHandle
boolean canHandle(jakarta.servlet.http.HttpServletRequest request, int code) Can this implementation handle the type of error raised for the request? -
writeErrorContent
Write the content of the HTML page to display.- Throws:
IOException
-
changeResponse
default void changeResponse(jakarta.servlet.http.HttpServletResponse response) Enables a specific handler to change the response.
-