Package io.jans.as.server.filter
Class CorsFilterConfig
- java.lang.Object
-
- io.jans.as.server.filter.CorsFilterConfig
-
- All Implemented Interfaces:
jakarta.servlet.FilterConfig
public class CorsFilterConfig extends Object implements jakarta.servlet.FilterConfig
- Version:
- February 15, 2017
- Author:
- Javier Rojas Blum
-
-
Field Summary
Fields Modifier and Type Field Description static String
PARAM_CORS_ALLOWED_HEADERS
Key to retrieve allowed headers fromCorsConfigurationFilter
.static String
PARAM_CORS_ALLOWED_METHODS
Key to retrieve allowed methods fromCorsConfigurationFilter
.static String
PARAM_CORS_ALLOWED_ORIGINS
Key to retrieve allowed origins fromCorsConfigurationFilter
.static String
PARAM_CORS_ENABLED
Key to retrieve if filter enabled fromCorsConfigurationFilter
.static String
PARAM_CORS_EXPOSED_HEADERS
Key to retrieve exposed headers fromCorsConfigurationFilter
.static String
PARAM_CORS_LOGGING_ENABLED
Key to retrieve logging enabled fromCorsConfigurationFilter
.static String
PARAM_CORS_PREFLIGHT_MAXAGE
Key to retrieve preflight max age fromCorsConfigurationFilter
.static String
PARAM_CORS_REQUEST_DECORATE
Key to determine if request should be decoratedCorsConfigurationFilter
.static String
PARAM_CORS_SUPPORT_CREDENTIALS
Key to retrieve support credentials fromCorsConfigurationFilter
.
-
Constructor Summary
Constructors Constructor Description CorsFilterConfig(String filterName, io.jans.as.model.configuration.AppConfiguration appConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFilterName()
String
getInitParameter(String name)
Enumeration<String>
getInitParameterNames()
jakarta.servlet.ServletContext
getServletContext()
-
-
-
Field Detail
-
PARAM_CORS_ENABLED
public static final String PARAM_CORS_ENABLED
Key to retrieve if filter enabled fromCorsConfigurationFilter
.- See Also:
- Constant Field Values
-
PARAM_CORS_ALLOWED_ORIGINS
public static final String PARAM_CORS_ALLOWED_ORIGINS
Key to retrieve allowed origins fromCorsConfigurationFilter
.- See Also:
- Constant Field Values
-
PARAM_CORS_ALLOWED_METHODS
public static final String PARAM_CORS_ALLOWED_METHODS
Key to retrieve allowed methods fromCorsConfigurationFilter
.- See Also:
- Constant Field Values
-
PARAM_CORS_ALLOWED_HEADERS
public static final String PARAM_CORS_ALLOWED_HEADERS
Key to retrieve allowed headers fromCorsConfigurationFilter
.- See Also:
- Constant Field Values
-
PARAM_CORS_EXPOSED_HEADERS
public static final String PARAM_CORS_EXPOSED_HEADERS
Key to retrieve exposed headers fromCorsConfigurationFilter
.- See Also:
- Constant Field Values
-
PARAM_CORS_SUPPORT_CREDENTIALS
public static final String PARAM_CORS_SUPPORT_CREDENTIALS
Key to retrieve support credentials fromCorsConfigurationFilter
.- See Also:
- Constant Field Values
-
PARAM_CORS_LOGGING_ENABLED
public static final String PARAM_CORS_LOGGING_ENABLED
Key to retrieve logging enabled fromCorsConfigurationFilter
.- See Also:
- Constant Field Values
-
PARAM_CORS_PREFLIGHT_MAXAGE
public static final String PARAM_CORS_PREFLIGHT_MAXAGE
Key to retrieve preflight max age fromCorsConfigurationFilter
.- See Also:
- Constant Field Values
-
PARAM_CORS_REQUEST_DECORATE
public static final String PARAM_CORS_REQUEST_DECORATE
Key to determine if request should be decoratedCorsConfigurationFilter
.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CorsFilterConfig
public CorsFilterConfig(String filterName, io.jans.as.model.configuration.AppConfiguration appConfiguration)
-
-
Method Detail
-
getFilterName
public String getFilterName()
- Specified by:
getFilterName
in interfacejakarta.servlet.FilterConfig
-
getServletContext
public jakarta.servlet.ServletContext getServletContext()
- Specified by:
getServletContext
in interfacejakarta.servlet.FilterConfig
-
getInitParameter
public String getInitParameter(String name)
- Specified by:
getInitParameter
in interfacejakarta.servlet.FilterConfig
-
getInitParameterNames
public Enumeration<String> getInitParameterNames()
- Specified by:
getInitParameterNames
in interfacejakarta.servlet.FilterConfig
-
-