Package org.spincast.core.filters
Interface CorsFilterClient
public interface CorsFilterClient
Interface for a client of the Cors filter.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addHeaderValue
(String name, String value) Adds an header value.The allowed HTTP methods, for the cors request.The allowed origins, for the cors request.The extra headers allowed to be read, for the cors request.The extra headers allowed to be sent, for the cors request.Gets the full URL of the request.getHeaderFirst
(String name) Gets the first value of an header.Gets the request's HTTP method.int
The max age to cache a cors preflight response.boolean
Are cookies allowed in the cors request?boolean
Are the headers sent?boolean
DOes the request contain cookies?void
Resets the response.void
setStatusCode
(int code) Sets the response's status code.
-
Method Details
-
getHeaderFirst
Gets the first value of an header. -
isHeadersSent
boolean isHeadersSent()Are the headers sent? -
getFullUrl
String getFullUrl()Gets the full URL of the request. -
resetEverything
void resetEverything()Resets the response. -
setStatusCode
void setStatusCode(int code) Sets the response's status code. -
getHttpMethod
HttpMethod getHttpMethod()Gets the request's HTTP method. -
addHeaderValue
Adds an header value. -
requestContainsCookies
boolean requestContainsCookies()DOes the request contain cookies? -
getAllowedOrigins
The allowed origins, for the cors request. -
getExtraHeadersAllowedToBeRead
The extra headers allowed to be read, for the cors request. -
getExtraHeadersAllowedToBeSent
The extra headers allowed to be sent, for the cors request. -
isAllowCookies
boolean isAllowCookies()Are cookies allowed in the cors request? -
getAllowedMethods
Set<HttpMethod> getAllowedMethods()The allowed HTTP methods, for the cors request. -
getMaxAgeInSeconds
int getMaxAgeInSeconds()The max age to cache a cors preflight response.
-