| Package | Description |
|---|---|
| org.spincast.core.exchange | |
| org.spincast.core.filters | |
| org.spincast.core.routing | |
| org.spincast.core.server |
| 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> |
RouteBuilder.SOME(HttpMethod... httpMethods)
Adds the specified HTTP methods as being supported.
|
RouteBuilder<R> |
Router.SOME(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> |
RouteBuilder.SOME(Set<HttpMethod> httpMethods)
Adds the specified HTTP methods as being supported.
|
RouteBuilder<R> |
Router.SOME(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.
|
Copyright © 2017. All rights reserved.