| Modifier and Type | Method and Description |
|---|---|
HttpMethod |
RequestRequestContextAddon.getHttpMethod()
Gets the request's
HTTP method. |
| Modifier and Type | Method and Description |
|---|---|
HttpMethod |
CorsFilterClient.getHttpMethod()
Gets the request's HTTP method.
|
| Modifier and Type | Method and Description |
|---|---|
Set<HttpMethod> |
CorsFilterClient.getAllowedMethods()
The allowed HTTP methods, for the cors request.
|
protected Set<HttpMethod> |
SpincastFiltersDefault.getCorsDefaultAllowedMethods()
The HTTP methods allowed by default.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SpincastFiltersDefault.cors(R context,
Set<String> allowedOrigins,
Set<String> extraHeadersAllowedToBeRead,
Set<String> extraHeadersAllowedToBeSent,
boolean allowCookies,
Set<HttpMethod> allowedMethods) |
void |
SpincastFilters.cors(R context,
Set<String> allowedOrigins,
Set<String> extraHeadersAllowedToBeRead,
Set<String> extraHeadersAllowedToBeSent,
boolean allowCookies,
Set<HttpMethod> allowedMethods)
Cross-Origin Resource Sharing (Cors) handling.
|
void |
SpincastFiltersDefault.cors(R context,
Set<String> allowedOrigins,
Set<String> extraHeadersAllowedToBeRead,
Set<String> extraHeadersAllowedToBeSent,
boolean allowCookies,
Set<HttpMethod> allowedMethods,
int maxAgeInSeconds) |
void |
SpincastFilters.cors(R context,
Set<String> allowedOrigins,
Set<String> extraHeadersAllowedToBeRead,
Set<String> extraHeadersAllowedToBeSent,
boolean allowCookies,
Set<HttpMethod> allowedMethods,
int maxAgeInSeconds)
Cross-Origin Resource Sharing (Cors) handling.
|
protected void |
CorsFilterDefault.corsAddAllowMethods(CorsFilterClient corsFilterClient,
Set<HttpMethod> allowedMethods) |
protected CorsFilterClient |
SpincastFiltersDefault.createCorsFilterClient(R context,
Set<String> allowedOrigins,
Set<String> extraHeadersAllowedToBeRead,
Set<String> extraHeadersAllowedToBeSent,
boolean allowCookies,
Set<HttpMethod> allowedMethods,
int maxAgeInSeconds)
Creates a client for the cors filter.
|
protected boolean |
CorsFilterDefault.isCorsRequestMethodHeaderValid(CorsFilterClient corsFilterClient,
Set<HttpMethod> allowedMethods) |
| Modifier and Type | Method and Description |
|---|---|
static HttpMethod |
HttpMethod.fromStringValue(String stringValue)
Returns a HttpMethod from its String representation,
or
null if not found. |
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 |
|---|---|
Set<HttpMethod> |
Route.getHttpMethods()
The
HTTP methods this route applies to. |
| Modifier and Type | Method and Description |
|---|---|
RouteBuilder<R> |
Router.methods(HttpMethod... httpMethods)
Starts the creation of a route matching the specified
HTTP methods and on any path.
|
RouteBuilder<R> |
RouteBuilder.methods(HttpMethod... httpMethods)
Adds the specified HTTP methods as being supported.
|
RouteBuilder<R> |
Router.methods(String path,
HttpMethod... httpMethods)
Starts the creation of a route matching the specified
HTTP methods.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Router.cors(Set<String> allowedOrigins,
Set<String> extraHeadersAllowedToBeRead,
Set<String> extraHeadersAllowedToBeSent,
boolean allowCookies,
Set<HttpMethod> allowedMethods)
Enables Cross-Origin Resource Sharing (Cors) on
matching requests (except the static resources,
for whom cors has to be activated directly!)
|
void |
Router.cors(Set<String> allowedOrigins,
Set<String> extraHeadersAllowedToBeRead,
Set<String> extraHeadersAllowedToBeSent,
boolean allowCookies,
Set<HttpMethod> allowedMethods,
int maxAgeInSeconds)
Enables Cross-Origin Resource Sharing (Cors) on
matching requests (except the static resources,
for whom cors has to be activated directly!)
|
void |
Router.cors(String path,
Set<String> allowedOrigins,
Set<String> extraHeadersAllowedToBeRead,
Set<String> extraHeadersAllowedToBeSent,
boolean allowCookies,
Set<HttpMethod> allowedMethods)
Enables Cross-Origin Resource Sharing (Cors) on
requests matching the specified path (except the static resources,
for whom cors has to be activated directly!)
|
void |
Router.cors(String path,
Set<String> allowedOrigins,
Set<String> extraHeadersAllowedToBeRead,
Set<String> extraHeadersAllowedToBeSent,
boolean allowCookies,
Set<HttpMethod> allowedMethods,
int maxAgeInSeconds)
Enables Cross-Origin Resource Sharing (Cors) on
requests matching the specified path (except the static resources,
for whom cors has to be activated directly!)
|
RouteBuilder<R> |
Router.methods(Set<HttpMethod> httpMethods)
Starts the creation of a route matching the specified
HTTP methods and on any path.
|
RouteBuilder<R> |
RouteBuilder.methods(Set<HttpMethod> httpMethods)
Adds the specified HTTP methods as being supported.
|
RouteBuilder<R> |
Router.methods(String path,
Set<HttpMethod> httpMethods)
Starts the creation of a route matching the specified
HTTP methods.
|
| Modifier and Type | Method and Description |
|---|---|
HttpMethod |
Server.getHttpMethod(Object exchange)
Gets the HTTP method associated with the request.
|
| Modifier and Type | Method and Description |
|---|---|
HttpMethod |
SpincastRequestRequestContextAddon.getHttpMethod() |
| Modifier and Type | Method and Description |
|---|---|
Set<HttpMethod> |
RouteDefault.getHttpMethods() |
Set<HttpMethod> |
RouteBuilderDefault.getHttpMethods() |
| Modifier and Type | Method and Description |
|---|---|
protected List<RouteHandlerMatch<R>> |
SpincastRouter.createRegularHandlerMatches(RoutingType routingType,
Route<R> route,
HttpMethod httpMethod,
List<String> acceptedContentTypes,
URL url,
int position)
Get the matches (filters and main handle) if the route matches the URL and
HTTP method, or returns NULL otherwise.
|
protected boolean |
SpincastRouter.isRouteMatchHttpMethod(Route<R> route,
HttpMethod httpMethod)
Validate if a route matches the given HTTP method.
|
RouteBuilder<R> |
SpincastRouter.methods(HttpMethod... httpMethods) |
RouteBuilder<R> |
RouteBuilderDefault.methods(HttpMethod... httpMethods) |
RouteBuilder<R> |
SpincastRouter.methods(String path,
HttpMethod... httpMethods) |
| Modifier and Type | Method and Description |
|---|---|
void |
SpincastRouter.cors(Set<String> allowedOrigins,
Set<String> extraHeadersAllowedToBeRead,
Set<String> extraHeadersAllowedToBeSent,
boolean allowCookies,
Set<HttpMethod> allowedMethods) |
void |
SpincastRouter.cors(Set<String> allowedOrigins,
Set<String> extraHeadersAllowedToBeRead,
Set<String> extraHeadersAllowedToBeSent,
boolean allowCookies,
Set<HttpMethod> allowedMethods,
int maxAgeInSeconds) |
void |
SpincastRouter.cors(String path,
Set<String> allowedOrigins,
Set<String> extraHeadersAllowedToBeRead,
Set<String> extraHeadersAllowedToBeSent,
boolean allowCookies,
Set<HttpMethod> allowedMethods) |
void |
SpincastRouter.cors(String path,
Set<String> allowedOrigins,
Set<String> extraHeadersAllowedToBeRead,
Set<String> extraHeadersAllowedToBeSent,
boolean allowCookies,
Set<HttpMethod> allowedMethods,
int maxAgeInSeconds) |
Route<R> |
RouteFactory.createRoute(String id,
boolean isResourceRoute,
StaticResource<R> staticResource,
boolean isSpicastCoreRouteOrPluginRoute,
Set<HttpMethod> httpMethods,
String path,
Set<RoutingType> routingTypes,
List<Handler<R>> beforeFilters,
Handler<R> mainHandler,
List<Handler<R>> afterFilters,
int position,
Set<String> acceptedContentTypes,
Set<String> filterIdsToSkip,
boolean skipResources) |
RouteBuilder<R> |
SpincastRouter.methods(Set<HttpMethod> httpMethods) |
RouteBuilder<R> |
RouteBuilderDefault.methods(Set<HttpMethod> httpMethods) |
RouteBuilder<R> |
SpincastRouter.methods(String path,
Set<HttpMethod> httpMethods) |
| Constructor and Description |
|---|
RouteDefault(String id,
boolean isResourceRoute,
StaticResource<R> staticResource,
boolean spicastCoreRouteOrPluginRoute,
Set<HttpMethod> httpMethods,
String path,
Set<RoutingType> routingTypes,
List<Handler<R>> beforeFilters,
Handler<R> mainHandler,
List<Handler<R>> afterFilters,
int position,
Set<String> acceptedContentTypes,
Set<String> filterIdsToSkip,
boolean skipResources)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
HttpMethod |
SpincastUndertowServer.getHttpMethod(Object exchange) |
| Modifier and Type | Method and Description |
|---|---|
protected Set<HttpMethod> |
CorsHandlerDefault.getStaticResourceCorsAllowedMethods()
Those are the valid HTTP methods for requests to
static resources served directly by the HTTP server.
|
Copyright © 2019. All rights reserved.