- halt() - Static method in class spark.Spark
-
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.Spark
-
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.Spark
-
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.Spark
-
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(Exception, Request, Response) - Method in class spark.exception.ExceptionHandlerImpl
-
Invoked when an exception that is mapped to this handler occurs during routing
- handle(Exception, Request, Response) - Method in interface spark.ExceptionHandler
-
Invoked when an exception that is mapped to this handler occurs during routing
- handle(Request, Response) - Method in interface spark.Filter
-
Invoked when a request is made on this filter's corresponding path e.g.
- handle(Request, Response) - Method in class spark.FilterImpl
-
Invoked when a request is made on this filter's corresponding path e.g.
- handle(Request, Response) - Method in interface spark.Route
-
Invoked when a request is made on this route's corresponding path e.g.
- handle(Request, Response) - Method in class spark.RouteImpl
-
Invoked when a request is made on this route's corresponding path e.g.
- handle(Request, Response) - Method in interface spark.TemplateViewRoute
-
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(String, Route) - Static method in class spark.Spark
-
Map the route for HTTP HEAD requests
- head(String, String, Route) - Static method in class spark.Spark
-
Map the route for HTTP HEAD requests
- head(String, TemplateViewRoute, TemplateEngine) - Static method in class spark.Spark
-
Map the route for HTTP HEAD requests
- head(String, String, TemplateViewRoute, TemplateEngine) - Static method in class spark.Spark
-
Map the route for HTTP HEAD requests
- head(String, Route, ResponseTransformer) - Static method in class spark.Spark
-
Map the route for HTTP HEAD requests
- head(String, String, Route, ResponseTransformer) - 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
-
Gets the value for the provided header
- headers() - Method in class spark.Request
-
- host() - Method in class spark.Request
-
- HttpMethod - Enum in spark.route
-
- params() - Method in class spark.Request
-
Returns the map containing all route params
- params(String) - Method in class spark.Request
-
Returns the value of the provided route pattern parameter.
- parseKey(String) - Method in class spark.QueryParamsMap
-
- parseValidateAddRoute(String, String, Object) - Method in class spark.route.SimpleRouteMatcher
-
Parse and validates a route and adds it
- patch(String, Route) - Static method in class spark.Spark
-
Map the route for HTTP PATCH requests
- patch(String, String, Route) - Static method in class spark.Spark
-
Map the route for HTTP PATCH requests
- patch(String, TemplateViewRoute, TemplateEngine) - Static method in class spark.Spark
-
Map the route for HTTP PATCH requests
- patch(String, String, TemplateViewRoute, TemplateEngine) - Static method in class spark.Spark
-
Map the route for HTTP PATCH requests
- patch(String, Route, ResponseTransformer) - Static method in class spark.Spark
-
Map the route for HTTP PATCH requests
- patch(String, String, Route, ResponseTransformer) - Static method in class spark.Spark
-
Map the route for HTTP PATCH requests
- pathInfo() - Method in class spark.Request
-
- port() - Method in class spark.Request
-
- port - Static variable in class spark.SparkBase
-
- post(String, Route) - Static method in class spark.Spark
-
Map the route for HTTP POST requests
- post(String, String, Route) - Static method in class spark.Spark
-
Map the route for HTTP POST requests
- post(String, TemplateViewRoute, TemplateEngine) - Static method in class spark.Spark
-
Map the route for HTTP POST requests
- post(String, String, TemplateViewRoute, TemplateEngine) - Static method in class spark.Spark
-
Map the route for HTTP POST requests
- post(String, Route, ResponseTransformer) - Static method in class spark.Spark
-
Map the route for HTTP POST requests
- post(String, String, Route, ResponseTransformer) - Static method in class spark.Spark
-
Map the route for HTTP POST requests
- put(String, Route) - Static method in class spark.Spark
-
Map the route for HTTP PUT requests
- put(String, String, Route) - Static method in class spark.Spark
-
Map the route for HTTP PUT requests
- put(String, TemplateViewRoute, TemplateEngine) - Static method in class spark.Spark
-
Map the route for HTTP PUT requests
- put(String, String, TemplateViewRoute, TemplateEngine) - Static method in class spark.Spark
-
Map the route for HTTP PUT requests
- put(String, Route, ResponseTransformer) - Static method in class spark.Spark
-
Map the route for HTTP PUT requests
- put(String, String, Route, ResponseTransformer) - Static method in class spark.Spark
-
Map the route for HTTP PUT requests
- raw() - Method in class spark.Request
-
- raw() - Method in class spark.Response
-
- raw() - Method in class spark.Session
-
- 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 interface spark.ResponseTransformer
-
Method called for rendering the output.
- render(Object) - Method in class spark.ResponseTransformerRouteImpl
-
Method called for rendering the output.
- render(Object) - Method in class spark.RouteImpl
-
This method should render the given element into something that can be send through Response element.
- render(Object) - Method in class spark.TemplateEngine
-
Renders the object
- render(ModelAndView) - Method in class spark.TemplateEngine
-
Method called to render the output that is sent to client.
- render(Object) - Method in class spark.TemplateViewRouteImpl
-
- render(ModelAndView) - Method in class spark.TemplateViewRouteImpl
-
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
-
- RequestResponseFactory - Class in spark
-
- Response - Class in spark
-
Provides functionality for modifying the response
- Response() - Constructor for class spark.Response
-
- ResponseTransformer - Interface in spark
-
A ResponseTransformer holds the implementation of the 'render' method.
- ResponseTransformerRouteImpl - Class in spark
-
A ResponseTransformerRouteImpl is built up by a path (for url-matching) and the
implementation of the 'render' method.
- ResponseTransformerRouteImpl(String, String) - Constructor for class spark.ResponseTransformerRouteImpl
-
- Route - Interface in spark
-
Created by Per Wendel on 2014-05-10.
- RouteImpl - Class in spark
-
A Route is built up by a path (for url-matching) and the implementation of the 'handle' method.
- RouteImpl(String) - Constructor for class spark.RouteImpl
-
Constructor
- RouteImpl(String, String) - Constructor for class spark.RouteImpl
-
Constructor
- RouteMatch - Class in spark.route
-
- RouteMatch(HttpMethod, Object, String, String, String) - Constructor for class spark.route.RouteMatch
-
- routeMatcher - Static variable in class spark.SparkBase
-
- RouteMatcherFactory - Class in spark.route
-
RouteMatcherFactory
- runFromServlet() - Static method in class spark.Access
-
- scheme() - Method in class spark.Request
-
- server - Static variable in class spark.SparkBase
-
- servletPath() - Method in class spark.Request
-
- 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.SparkBase
-
Set the IP address that Spark should listen on.
- setPort(int) - Static method in class spark.SparkBase
-
Set the port that Spark should listen on.
- setSecure(String, String, String, String) - Static method in class spark.SparkBase
-
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
-
Constructor
- spark - package spark
-
- Spark - Class in spark
-
The main building block of a Spark application is a set of routes.
- spark.exception - package spark.exception
-
- spark.route - package spark.route
-
- spark.servlet - package spark.servlet
-
- spark.utils - package spark.utils
-
- spark.webserver - package spark.webserver
-
- SPARK_DEFAULT_PORT - Static variable in class spark.SparkBase
-
- SparkApplication - Interface in spark.servlet
-
The application entry point when Spark is run in a servlet context.
- SparkBase - Class in spark
-
Spark base class
- SparkBase() - Constructor for class spark.SparkBase
-
- 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
-
- staticFileFolder - Static variable in class spark.SparkBase
-
- staticFileLocation(String) - Static method in class spark.SparkBase
-
Sets the folder in classpath serving static files.
- status(int) - Method in class spark.Response
-
Sets the status code for the
- stop() - Static method in class spark.SparkBase
-
Stops the Spark server and clears all routes
- stop() - Method in interface spark.webserver.SparkServer
-
Stops the spark server