| Modifier and Type | Method and Description |
|---|---|
HttpMethod |
IRequestRequestContextAddon.getHttpMethod()
Gets the request's
HTTP method. |
| Modifier and Type | Method and Description |
|---|---|
HttpMethod |
ICorsFilterClient.getHttpMethod()
Gets the request's HTTP method.
|
| Modifier and Type | Method and Description |
|---|---|
Set<HttpMethod> |
ICorsFilterClient.getAllowedMethods()
The allowed HTTP methods, for the cors request.
|
protected Set<HttpMethod> |
SpincastFilters.getCorsDefaultAllowedMethods()
The HTTP methods allowed by default.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SpincastFilters.cors(R context,
Set<String> allowedOrigins,
Set<String> extraHeadersAllowedToBeRead,
Set<String> extraHeadersAllowedToBeSent,
boolean allowCookies,
Set<HttpMethod> allowedMethods) |
void |
ISpincastFilters.cors(R context,
Set<String> allowedOrigins,
Set<String> extraHeadersAllowedToBeRead,
Set<String> extraHeadersAllowedToBeSent,
boolean allowCookies,
Set<HttpMethod> allowedMethods)
Cross-Origin Resource Sharing (Cors) handling.
|
void |
SpincastFilters.cors(R context,
Set<String> allowedOrigins,
Set<String> extraHeadersAllowedToBeRead,
Set<String> extraHeadersAllowedToBeSent,
boolean allowCookies,
Set<HttpMethod> allowedMethods,
int maxAgeInSeconds) |
void |
ISpincastFilters.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 |
CorsFilter.corsAddAllowMethods(ICorsFilterClient corsFilterClient,
Set<HttpMethod> allowedMethods) |
protected ICorsFilterClient |
SpincastFilters.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 |
CorsFilter.isCorsRequestMethodHeaderValid(ICorsFilterClient 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> |
IRoute.getHttpMethods()
The
HTTP methods this route applies to. |
| Modifier and Type | Method and Description |
|---|---|
IRouteBuilder<R> |
IRouteBuilder.SOME(HttpMethod... httpMethods)
Adds the specified HTTP methods as being supported.
|
IRouteBuilder<R> |
IRouter.SOME(String path,
HttpMethod... httpMethods)
Starts the creation of a route matching the specified
HTTP methods.
|
| Modifier and Type | Method and Description |
|---|---|
void |
IRouter.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 |
IRouter.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 |
IRouter.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 |
IRouter.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!)
|
IRouteBuilder<R> |
IRouteBuilder.SOME(Set<HttpMethod> httpMethods)
Adds the specified HTTP methods as being supported.
|
IRouteBuilder<R> |
IRouter.SOME(String path,
Set<HttpMethod> httpMethods)
Starts the creation of a route matching the specified
HTTP methods.
|
| Modifier and Type | Method and Description |
|---|---|
HttpMethod |
IServer.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> |
SpincastRoute.getHttpMethods() |
Set<HttpMethod> |
RouteBuilder.getHttpMethods() |
| Modifier and Type | Method and Description |
|---|---|
protected List<IRouteHandlerMatch<R>> |
SpincastRouter.createRegularHandlerMatches(RoutingType routingType,
IRoute<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(IRoute<R> route,
HttpMethod httpMethod)
Validate if a route matches the given HTTP method.
|
IRouteBuilder<R> |
RouteBuilder.SOME(HttpMethod... httpMethods) |
IRouteBuilder<R> |
SpincastRouter.SOME(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) |
IRoute<R> |
IRouteFactory.createRoute(String id,
Set<HttpMethod> httpMethods,
String path,
Set<RoutingType> routingTypes,
List<IHandler<R>> beforeFilters,
IHandler<R> mainHandler,
List<IHandler<R>> afterFilters,
Set<Integer> positions,
Set<String> acceptedContextTypes) |
IRouteBuilder<R> |
RouteBuilder.SOME(Set<HttpMethod> httpMethods) |
IRouteBuilder<R> |
SpincastRouter.SOME(String path,
Set<HttpMethod> httpMethods) |
| Constructor and Description |
|---|
SpincastRoute(String id,
Set<HttpMethod> httpMethods,
String path,
Set<RoutingType> routingTypes,
List<IHandler<R>> beforeFilters,
IHandler<R> mainHandler,
List<IHandler<R>> afterFilters,
Set<Integer> positions,
Set<String> acceptedContentTypes)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
HttpMethod |
SpincastUndertowServer.getHttpMethod(Object exchange) |
| Modifier and Type | Method and Description |
|---|---|
protected Set<HttpMethod> |
CorsHandler.getStaticResourceCorsAllowedMethods()
Those are the valid HTTP methods for requests to
static resources served directly by the HTTP server.
|
Copyright © 2016. All rights reserved.