Package spark.http.matching
Class Halt
java.lang.Object
spark.http.matching.Halt
Modifies the HTTP response and body based on the provided HaltException.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidmodify(javax.servlet.http.HttpServletResponse httpResponse, Body body, HaltException halt) Modifies the HTTP response and body based on the provided HaltException.
-
Constructor Details
-
Halt
public Halt()
-
-
Method Details
-
modify
public static void modify(javax.servlet.http.HttpServletResponse httpResponse, Body body, HaltException halt) Modifies the HTTP response and body based on the provided HaltException.- Parameters:
httpResponse- The HTTP servlet responsebody- The body contenthalt- The halt exception object
-