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 Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    modify(javax.servlet.http.HttpServletResponse httpResponse, spark.http.matching.Body body, HaltException halt)
    Modifies the HTTP response and body based on the provided HaltException.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Halt

      public Halt()
  • Method Details

    • modify

      public static void modify(javax.servlet.http.HttpServletResponse httpResponse, spark.http.matching.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