public.javadoc.org.spincast.plugins.routing.StaticResourceCorsConfigDefault.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.
StaticResourceCorsConfigDefault (org.spincast:spincast-framework 1.0.0 API)
org.spincast.plugins.routing
Class StaticResourceCorsConfigDefault
- java.lang.Object
-
- org.spincast.plugins.routing.StaticResourceCorsConfigDefault
-
- All Implemented Interfaces:
- StaticResourceCorsConfig
public class StaticResourceCorsConfigDefault
extends Object
implements StaticResourceCorsConfig
-
-
Constructor Summary
Constructors
Constructor and Description
StaticResourceCorsConfigDefault(Set<String> allowedOrigins,
Set<String> extraHeadersAllowedToBeRead,
Set<String> extraHeadersAllowedToBeSent,
boolean allowCookies,
int maxAgeInSeconds)
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Set<String>
getAllowedOrigins()
The allowed origins.
Set<String>
getExtraHeadersAllowedToBeRead()
The extra headers a browser will be allowed to read.
Set<String>
getExtraHeadersAllowedToBeSent()
The extra headers a browser will be allowed to send.
int
getMaxAgeInSeconds()
The max Age a preflight request can be cached.
boolean
isAllowCookies()
Are cookies allowed?
-
-
Method Detail
-
getAllowedOrigins
public Set<String> getAllowedOrigins()
Description copied from interface: StaticResourceCorsConfig
The allowed origins.
- Specified by:
getAllowedOrigins
in interface StaticResourceCorsConfig
-
getExtraHeadersAllowedToBeRead
public Set<String> getExtraHeadersAllowedToBeRead()
Description copied from interface: StaticResourceCorsConfig
The extra headers a browser will be allowed to read.
- Specified by:
getExtraHeadersAllowedToBeRead
in interface StaticResourceCorsConfig
-
getExtraHeadersAllowedToBeSent
public Set<String> getExtraHeadersAllowedToBeSent()
Description copied from interface: StaticResourceCorsConfig
The extra headers a browser will be allowed to send.
- Specified by:
getExtraHeadersAllowedToBeSent
in interface StaticResourceCorsConfig
-
isAllowCookies
public boolean isAllowCookies()
Description copied from interface: StaticResourceCorsConfig
Are cookies allowed?
- Specified by:
isAllowCookies
in interface StaticResourceCorsConfig
-
getMaxAgeInSeconds
public int getMaxAgeInSeconds()
Description copied from interface: StaticResourceCorsConfig
The max Age a preflight request can be cached.
- Specified by:
getMaxAgeInSeconds
in interface StaticResourceCorsConfig
Copyright © 2019. All rights reserved.