Package org.apache.synapse.api.cors
Interface CORSConfiguration
-
- All Known Implementing Classes:
SynapseCORSConfiguration
public interface CORSConfiguration
CORSConfiguration
is the interface that need to be implemented in order hold the CORS configuration information
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getAllowedHeaders()
Returns allowed headers in the configuration.Set<String>
getAllowedOrigins()
Returns allowed origins in the configuration.boolean
isEnabled()
Returns if CORS is enabled.
-
-
-
Method Detail
-
getAllowedOrigins
Set<String> getAllowedOrigins()
Returns allowed origins in the configuration.- Returns:
- allowed origins
-
getAllowedHeaders
String getAllowedHeaders()
Returns allowed headers in the configuration.- Returns:
- allowed headers
-
isEnabled
boolean isEnabled()
Returns if CORS is enabled.- Returns:
- boolean enabled
-
-