| Modifier and Type | Method and Description |
|---|---|
HttpMethod |
RequestRequestContextAddon.getHttpMethod()
Gets the request's
HTTP method. |
| Modifier and Type | Method and Description |
|---|---|
ResponseRequestContextAddon<R> |
ResponseRequestContextAddon.push(HttpMethod httpMethod,
String path,
Map<String,List<String>> requestHeaders)
If
HTTP/2 is used, you can push extra resources
at the same time you response to a request. |
| 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. |
HttpMethod |
ResourceToPush.getHttpMethod() |
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.
|
| Constructor and Description |
|---|
ResourceToPush(HttpMethod httpMethod,
String path,
Map<String,List<String>> requestHeaders) |
| 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 |
|---|---|
protected HttpMethod |
SpincastOpenApiManagerDefault.convertHttpMethodToSpincast(io.swagger.v3.oas.models.PathItem.HttpMethod httpMethod) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
SpincastOpenApiManagerDefault.addHttpMethodAnnotation(List<Annotation> handlerMethodAnnotations,
HttpMethod httpMethod) |
protected String |
SpincastOpenApiManagerDefault.createHttpMethodAndPathKey(HttpMethod method,
String path) |
protected String |
SpincastOpenApiManagerDefault.createOperationId(Route<R> route,
HttpMethod httpMethod) |
protected Annotation |
SpincastOpenApiManagerDefault.getHttpMethodAnnotation(HttpMethod httpMethod) |
void |
SpincastOpenApiManagerDefault.ignoreRouteUsingHttpMethodAndPath(HttpMethod method,
String path) |
void |
SpincastOpenApiManager.ignoreRouteUsingHttpMethodAndPath(HttpMethod method,
String path)
Ignore a route using its HTTP method and path.
|
protected boolean |
SpincastOpenApiManagerDefault.isSupportedHttpMethod(HttpMethod httpMethod) |
protected boolean |
SpincastOpenApiManagerDefault.isToHideFromHttpMethodAndPath(Route<R> route,
HttpMethod httpMethod) |
| Modifier and Type | Method and Description |
|---|---|
HttpMethod |
SpincastRequestRequestContextAddon.getHttpMethod() |
| Modifier and Type | Method and Description |
|---|---|
ResponseRequestContextAddon<R> |
SpincastResponseRequestContextAddon.push(HttpMethod httpMethod,
String path,
Map<String,List<String>> requestHeaders) |
| 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 isWebsocketRoute,
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,
Object specs,
Object[] specsParameters,
boolean specsIgnore) |
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 isWebsocketRoute,
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,
Object specs,
Object[] specsParameters,
boolean specsIgnore)
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.
|
| Modifier and Type | Method and Description |
|---|---|
io.undertow.util.HttpString |
SpincastUndertowServer.convertHttpMethodToUndertowHttpString(HttpMethod httpMethod) |
Copyright © 2019. All rights reserved.