- halt() - Static method in class spark.AbstractRoute
-
Immediately stops a request within a filter or route
NOTE: When using this don't catch exceptions of type HaltException, or if catched, re-throw otherwise
halt will not work
- halt(int) - Static method in class spark.AbstractRoute
-
Immediately stops a request within a filter or route with specified status code
NOTE: When using this don't catch exceptions of type HaltException, or if catched, re-throw otherwise
halt will not work
- halt(String) - Static method in class spark.AbstractRoute
-
Immediately stops a request within a filter or route with specified body content
NOTE: When using this don't catch exceptions of type HaltException, or if catched, re-throw otherwise
halt will not work
- halt(int, String) - Static method in class spark.AbstractRoute
-
Immediately stops a request within a filter or route with specified status code and body content
NOTE: When using this don't catch exceptions of type HaltException, or if catched, re-throw otherwise
halt will not work
- HaltException - Exception in spark
-
Exception used for stopping the execution
- handle(Request, Response) - Method in class spark.Filter
-
Invoked when a request is made on this filter's corresponding path e.g.
- handle(Request, Response) - Method in class spark.Route
-
Invoked when a request is made on this route's corresponding path e.g.
- hasKeys() - Method in class spark.QueryParamsMap
-
- hasValue() - Method in class spark.QueryParamsMap
-
- head(Route) - Static method in class spark.Spark
-
Map the route for HTTP HEAD requests
- header(String, String) - Method in class spark.Response
-
Adds/Sets a response header
- headers(String) - Method in class spark.Request
-
Returns the value of the provided header
- headers() - Method in class spark.Request
-
Returns all headers
- host() - Method in class spark.Request
-
Returns the host
- HttpMethod - Enum in spark.route
-
- raw() - Method in class spark.Request
-
Gets the raw HttpServletRequest object handed in by Jetty
- raw() - Method in class spark.Response
-
Gets the raw response object handed in by Jetty
- raw() - Method in class spark.Session
-
Returns the raw HttpSession
object handed in by the servlet container.
- redirect(String) - Method in class spark.Response
-
Trigger a browser redirect
- redirect(String, int) - Method in class spark.Response
-
Trigger a browser redirect with specific http 3XX status code.
- removeAttribute(String) - Method in class spark.Session
-
Removes the object bound with the specified name from this session.
- removeCookie(String) - Method in class spark.Response
-
Removes the cookie.
- render(Object) - Method in class spark.ResponseTransformerRoute
-
Method called for rendering the output.
- render(Object) - Method in class spark.Route
-
This method should render the given element into something that can be send through Response element.
- render(Object) - Method in class spark.TemplateViewRoute
-
- render(ModelAndView) - Method in class spark.TemplateViewRoute
-
Method called to render the output that is sent to client.
- Request - Class in spark
-
Provides information about the HTTP request
- Request() - Constructor for class spark.Request
-
- requestMethod() - Method in class spark.Request
-
Returns request method e.g.
- RequestResponseFactory - Class in spark
-
- Response - Class in spark
-
Provides functionality for modifying the response
- Response() - Constructor for class spark.Response
-
- ResponseTransformerRoute - Class in spark
-
A ResponseTransformerRoute is built up by a path (for url-matching) and the
implementation of the 'render' method.
- ResponseTransformerRoute(String) - Constructor for class spark.ResponseTransformerRoute
-
- ResponseTransformerRoute(String, String) - Constructor for class spark.ResponseTransformerRoute
-
- ROOT - Static variable in interface spark.route.RouteMatcher
-
- Route - Class in spark
-
A Route is built up by a path (for url-matching) and the implementation of the 'handle' method.
- Route(String) - Constructor for class spark.Route
-
Constructor
- Route(String, String) - Constructor for class spark.Route
-
Constructor
- RouteMatch - Class in spark.route
-
- RouteMatch(HttpMethod, Object, String, String, String) - Constructor for class spark.route.RouteMatch
-
- RouteMatcher - Interface in spark.route
-
Route matcher
- RouteMatcherFactory - Class in spark.route
-
RouteMatcherFactory
- runFromServlet() - Static method in class spark.Access
-
- scheme() - Method in class spark.Request
-
Returns the scheme
- session() - Method in class spark.Request
-
Returns the current session associated with this request,
or if the request does not have a session, creates one.
- session(boolean) - Method in class spark.Request
-
Returns the current session associated with this request, or if there is
no current session and create
is true, returns a new session.
- Session - Class in spark
-
Provides session information.
- setDebugEnabled(boolean) - Method in class spark.JettyLogger
-
- setIpAddress(String) - Static method in class spark.Spark
-
Set the IP address that Spark should listen on.
- setPort(int) - Static method in class spark.Spark
-
Set the port that Spark should listen on.
- setSecure(String, String, String, String) - Static method in class spark.Spark
-
Set the connection to be secure, using the specified keystore and
truststore.
- SimpleRouteMatcher - Class in spark.route
-
Simple route matcher that is supposed to work exactly as Sinatra's
- SimpleRouteMatcher() - Constructor for class spark.route.SimpleRouteMatcher
-
- SINGLE_QUOTE - Static variable in interface spark.route.RouteMatcher
-
- spark - package spark
-
- Spark - Class in spark
-
The main building block of a Spark application is a set of routes.
- spark.route - package spark.route
-
- spark.servlet - package spark.servlet
-
- spark.utils - package spark.utils
-
- spark.webserver - package spark.webserver
-
- SparkApplication - Interface in spark.servlet
-
The application entry point when Spark is run in a servlet context.
- SparkFilter - Class in spark.servlet
-
Filter that can be configured to be used in a web.xml file.
- SparkFilter() - Constructor for class spark.servlet.SparkFilter
-
- SparkServer - Interface in spark.webserver
-
- SparkServerFactory - Class in spark.webserver
-
- SparkUtils - Class in spark.utils
-
Some utility methods
- splat() - Method in class spark.Request
-
Returns an arrat containing the splat (wildcard) parameters
- staticFileLocation(String) - Static method in class spark.Spark
-
Sets the folder in classpath serving static files.
- status(int) - Method in class spark.Response
-
Sets the status code for the response
- stop() - Method in interface spark.webserver.SparkServer
-
Stops the spark server