Class Halt

java.lang.Object
spark.http.matching.Halt

public class Halt extends Object
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 response
      body - The body content
      halt - The halt exception object