public interface CorsFilterClient
| Modifier and Type | Method and Description |
|---|---|
void |
addHeaderValue(String name,
String value)
Adds an header value.
|
Set<HttpMethod> |
getAllowedMethods()
The allowed HTTP methods, for the cors request.
|
Set<String> |
getAllowedOrigins()
The allowed origins, for the cors request.
|
Set<String> |
getExtraHeadersAllowedToBeRead()
The extra headers allowed to be read, for the cors request.
|
Set<String> |
getExtraHeadersAllowedToBeSent()
The extra headers allowed to be sent, for the cors request.
|
String |
getFullUrl()
Gets the full URL of the request.
|
String |
getHeaderFirst(String name)
Gets the first value of an header.
|
HttpMethod |
getHttpMethod()
Gets the request's HTTP method.
|
int |
getMaxAgeInSeconds()
The max age to cache a cors preflight response.
|
boolean |
isAllowCookies()
Are cookies allowed in the cors request?
|
boolean |
isHeadersSent()
Are the headers sent?
|
boolean |
requestContainsCookies()
DOes the request contain cookies?
|
void |
resetEverything()
Resets the response.
|
void |
setStatusCode(int code)
Sets the response's status code.
|
boolean isHeadersSent()
String getFullUrl()
void resetEverything()
void setStatusCode(int code)
HttpMethod getHttpMethod()
boolean requestContainsCookies()
Set<String> getExtraHeadersAllowedToBeRead()
Set<String> getExtraHeadersAllowedToBeSent()
boolean isAllowCookies()
Set<HttpMethod> getAllowedMethods()
int getMaxAgeInSeconds()
Copyright © 2019. All rights reserved.