- get
Map the route for HTTP GET requests
- post
Map the route for HTTP POST requests
- before
Maps one or many filters to be executed before any matching routes
- port
Set the port that Spark should listen on. If not called the default port is
4567. This has to be cal
- path
Add a path-prefix to the routes declared in the routeGroup The path() method
adds a path-fragment to
- exception
Maps an exception handler to be executed when an exception occurs during routing
- delete
Map the route for HTTP DELETE requests
- put
Map the route for HTTP PUT requests
- halt
Immediately stops a request within a filter or route with specified body content
NOTE: When using th
- awaitInitialization
Waits for the spark server to be initialized. If it's already initialized will
return immediately
- stop
Stops the Spark server and clears all routes
- staticFileLocation
Sets the folder in classpath serving static files. Observe: this method must be
called before all ot