public.javadoc.org.spincast.core.filters.CorsFilterClient.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-website Show documentation
Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
CorsFilterClient (org.spincast:spincast-framework 1.0.0 API)
org.spincast.core.filters
Interface CorsFilterClient
-
public interface CorsFilterClient
Interface for a client of the Cors filter.
-
-
Method Summary
All Methods Instance Methods Abstract Methods
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.
-
-
Method Detail
-
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.
-
requestContainsCookies
boolean requestContainsCookies()
DOes the request contain cookies?
-
getExtraHeadersAllowedToBeRead
Set<String> getExtraHeadersAllowedToBeRead()
The extra headers allowed to be read, for the cors request.
-
getExtraHeadersAllowedToBeSent
Set<String> 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.
Copyright © 2019. All rights reserved.