Package | Description |
---|---|
spark | |
spark.route |
Modifier and Type | Method and Description |
---|---|
void |
Service.addFilter(HttpMethod httpMethod,
FilterImpl filter) |
void |
Service.addRoute(HttpMethod httpMethod,
RouteImpl route) |
Modifier and Type | Method and Description |
---|---|
static HttpMethod |
HttpMethod.get(String methodStr)
Gets the HttpMethod corresponding to the provided string.
|
static HttpMethod |
HttpMethod.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpMethod[] |
HttpMethod.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
void |
Routes.add(HttpMethod httpMethod,
FilterImpl filter)
Add a filter
|
void |
Routes.add(HttpMethod httpMethod,
RouteImpl route)
Add a route
|
RouteMatch |
Routes.find(HttpMethod httpMethod,
String path,
String acceptType)
finds target for a requested route
|
List<RouteMatch> |
Routes.findMultiple(HttpMethod httpMethod,
String path,
String acceptType)
Finds multiple targets for a requested route.
|
RouteMatch |
SimpleRouteMatcher.findTargetForRequestedRoute(HttpMethod httpMethod,
String path,
String acceptType)
Deprecated.
|
List<RouteMatch> |
SimpleRouteMatcher.findTargetsForRequestedRoute(HttpMethod httpMethod,
String path,
String acceptType)
Deprecated.
|
Copyright © 2017. All rights reserved.