public class SingletonHttpCorsOption extends DefaultHttpCorsOption
| 限定符和类型 | 类和说明 |
|---|---|
private static class |
SingletonHttpCorsOption.HttpCorsConfigOptionsHolder |
| 限定符和类型 | 字段和说明 |
|---|---|
private static long |
serialVersionUID |
ALLOW_CREDENTIALS_OPTION, ALLOW_HEADERS_OPTIONS, ALLOW_METHODS_OPTIONS, ALLOW_ORIGIN_OPTIONS, CORS_OPTIONS_KEY, ENABLED_OPTION, EXPOSE_HEADERS_OPTIONS, MAX_AGE_OPTION, OPTION_VALUE_KEY| 限定符 | 构造器和说明 |
|---|---|
private |
SingletonHttpCorsOption() |
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
allowCredentials() |
static List<DefaultProxyValueOption> |
allowHeaders() |
static List<DefaultProxyValueOption> |
allowMethods() |
static List<DefaultProxyValueOption> |
allowOrigin() |
static boolean |
enabled() |
static List<DefaultProxyValueOption> |
exposeHeaders() |
byte |
getId() |
static SingletonHttpCorsOption |
getInstance() |
static long |
maxAge() |
static void |
withAllowCredentials(boolean allowCredentials) |
static void |
withAllowHeaders(List<DefaultProxyValueOption> allowHeaders) |
static void |
withAllowMethods(List<DefaultProxyValueOption> allowMethods) |
static void |
withAllowOrigin(List<DefaultProxyValueOption> allowOrigin) |
static void |
withEnabled(boolean enabled) |
static void |
withExposeHeaders(List<DefaultProxyValueOption> exposeHeaders) |
static void |
withMaxAge(long maxAge) |
equals, getAllowHeaderList, getAllowHeaders, getAllowMethodList, getAllowMethods, getAllowOriginList, getAllowOrigins, getExposeHeaderList, getExposeHeaders, getMaxAge, hashCode, isAllowCredentials, isEnabled, setAllowCredentials, setAllowHeaderList, setAllowHeaders, setAllowMethodList, setAllowMethods, setAllowOriginList, setAllowOrigins, setEnabled, setExposeHeaderList, setExposeHeaders, setId, setMaxAge, toStringprivate static final long serialVersionUID
public byte getId()
getId 在接口中 HttpCorsOptiongetId 在类中 DefaultHttpCorsOptionpublic static boolean enabled()
public static void withEnabled(boolean enabled)
public static boolean allowCredentials()
public static void withAllowCredentials(boolean allowCredentials)
public static long maxAge()
public static void withMaxAge(long maxAge)
public static List<DefaultProxyValueOption> allowOrigin()
public static void withAllowOrigin(List<DefaultProxyValueOption> allowOrigin)
public static List<DefaultProxyValueOption> allowHeaders()
public static void withAllowHeaders(List<DefaultProxyValueOption> allowHeaders)
public static List<DefaultProxyValueOption> allowMethods()
public static void withAllowMethods(List<DefaultProxyValueOption> allowMethods)
public static List<DefaultProxyValueOption> exposeHeaders()
public static void withExposeHeaders(List<DefaultProxyValueOption> exposeHeaders)
public static SingletonHttpCorsOption getInstance()
Copyright © 2022 Zodiac. All rights reserved.