クラスの使用
org.springframework.web.cors.CorsConfiguration
パッケージ
説明
一般的な
CorsProcessor
戦略に基づく、CORS(クロスオリジンリソースシェアリング)のサポート。 一般的な
CorsProcessor
戦略に基づく、CORS(クロスオリジンリソースシェアリング)のリアクティブサポート。Spring WebFlux 構成インフラストラクチャ。
抽象基本クラスを含む HandlerMapping 実装を提供します。
ハンドラーメソッド処理のインフラストラクチャ。
アノテーションベースのハンドラーメソッド処理のインフラストラクチャ。
Spring MVC の XML 構成名前空間を定義します。
Spring MVC のアノテーションベースのセットアップ。
カスタム実装の抽象基本クラスを含む、標準の HandlerMapping 実装を提供します。
org.springframework.web.method.annotation
パッケージに基づいた、アノテーションベースのハンドラーメソッド処理のための MVC インフラストラクチャ。 静的リソースを提供するためのサポートクラス。
AbstractSockJsService
実装を含む SockJS のサポートクラス。org.springframework.web.cors 内の CorsConfiguration 使用
修飾子と型メソッド説明CorsConfiguration.applyPermitDefaultValues()
デフォルトでは、CorsConfiguration
はクロスオリジンリクエストを許可しないため、明示的に設定する必要があります。CorsConfiguration.combine
(CorsConfiguration other) 提供されたCorsConfiguration
の null 以外のプロパティをこれと組み合わせます。CorsConfigurationSource.getCorsConfiguration
(HttpServletRequestEE request) 受信リクエストに基づいてCorsConfiguration
を返します。UrlBasedCorsConfigurationSource.getCorsConfiguration
(HttpServletRequestEE request) CorsConfiguration.setAllowedOriginPatterns
(ListSE<StringSE> allowedOriginPatterns) ポートリストに加えて、ホスト名の任意の場所に "*" が付いた、より柔軟なオリジンパターンをサポートするsetAllowedOrigins(java.util.List<java.lang.String>)
の代替。修飾子と型メソッド説明DefaultCorsProcessor.checkHeaders
(CorsConfiguration config, ListSE<StringSE> requestHeaders) ヘッダーを確認し、プリフライトリクエストのレスポンスのヘッダーを決定します。protected ListSE<HttpMethod>
DefaultCorsProcessor.checkMethods
(CorsConfiguration config, HttpMethod requestMethod) HTTP メソッドを確認し、プリフライトリクエストのレスポンスのメソッドを決定します。protected StringSE
DefaultCorsProcessor.checkOrigin
(CorsConfiguration config, StringSE requestOrigin) 発信元を確認し、レスポンスの発信元を決定します。CorsConfiguration.combine
(CorsConfiguration other) 提供されたCorsConfiguration
の null 以外のプロパティをこれと組み合わせます。protected boolean
DefaultCorsProcessor.handleInternal
(ServerHttpRequest request, ServerHttpResponse response, CorsConfiguration config, boolean preFlightRequest) 指定されたリクエストを処理します。boolean
CorsProcessor.processRequest
(CorsConfiguration configuration, HttpServletRequestEE request, HttpServletResponseEE response) CorsConfiguration
を指定してリクエストを処理します。boolean
DefaultCorsProcessor.processRequest
(CorsConfiguration config, HttpServletRequestEE request, HttpServletResponseEE response) void
UrlBasedCorsConfigurationSource.registerCorsConfiguration
(StringSE pattern, CorsConfiguration config) 一度に 1 つのマッピングを登録するUrlBasedCorsConfigurationSource.setCorsConfigurations(Map)
の変種。修飾子と型メソッド説明void
UrlBasedCorsConfigurationSource.setCorsConfigurations
(MapSE<StringSE, CorsConfiguration> corsConfigurations) CORS 構成マッピングを設定します。修飾子コンストラクター説明指定されたCorsConfiguration
からすべての値をコピーして、新しいCorsConfiguration
インスタンスを構築します。org.springframework.web.cors.reactive 内の CorsConfiguration 使用
修飾子と型メソッド説明CorsConfigurationSource.getCorsConfiguration
(ServerWebExchange exchange) 受信リクエストに基づいてCorsConfiguration
を返します。UrlBasedCorsConfigurationSource.getCorsConfiguration
(ServerWebExchange exchange) 修飾子と型メソッド説明DefaultCorsProcessor.checkHeaders
(CorsConfiguration config, ListSE<StringSE> requestHeaders) ヘッダーを確認し、プリフライトリクエストのレスポンスのヘッダーを決定します。protected ListSE<HttpMethod>
DefaultCorsProcessor.checkMethods
(CorsConfiguration config, HttpMethod requestMethod) HTTP メソッドを確認し、プリフライトリクエストのレスポンスのメソッドを決定します。protected StringSE
DefaultCorsProcessor.checkOrigin
(CorsConfiguration config, StringSE requestOrigin) 発信元を確認し、レスポンスの発信元を決定します。protected boolean
DefaultCorsProcessor.handleInternal
(ServerWebExchange exchange, CorsConfiguration config, boolean preFlightRequest) 指定されたリクエストを処理します。boolean
CorsProcessor.process
(CorsConfiguration configuration, ServerWebExchange exchange) 指定されたCorsConfiguration
を使用してリクエストを処理します。boolean
DefaultCorsProcessor.process
(CorsConfiguration config, ServerWebExchange exchange) void
UrlBasedCorsConfigurationSource.registerCorsConfiguration
(StringSE path, CorsConfiguration config) 指定されたパスパターンのCorsConfiguration
を登録します。修飾子と型メソッド説明void
UrlBasedCorsConfigurationSource.setCorsConfigurations
(MapSE<StringSE, CorsConfiguration> configMap) URL パターンに基づいて CORS 構成を設定します。org.springframework.web.reactive.config 内の CorsConfiguration 使用
修飾子と型メソッド説明protected MapSE<StringSE,
CorsConfiguration> CorsRegistry.getCorsConfigurations()
パスパターンをキーとして、登録されているCorsConfiguration
オブジェクトを返します。protected final MapSE<StringSE,
CorsConfiguration> WebFluxConfigurationSupport.getCorsConfigurations()
グローバル CORS 構成を構築するためのコールバック。修飾子と型メソッド説明CorsRegistration.combine
(CorsConfiguration other) 指定されたCorsConfiguration
を、applyPermitDefaultValues()
で初期化されたcombine(CorsConfiguration)
を介して構成されているものに適用します。org.springframework.web.reactive.handler 内の CorsConfiguration 使用
修飾子と型メソッド説明protected CorsConfiguration
AbstractHandlerMapping.getCorsConfiguration
(ObjectSE handler, ServerWebExchange exchange) 指定されたハンドラーの CORS 構成を取得します。修飾子と型メソッド説明void
AbstractHandlerMapping.setCorsConfigurations
(MapSE<StringSE, CorsConfiguration> corsConfigurations) URL パターンに基づいて「グローバル」CORS 構成を設定します。org.springframework.web.reactive.result.method 内の CorsConfiguration 使用
修飾子と型メソッド説明protected CorsConfiguration
AbstractHandlerMethodMapping.getCorsConfiguration
(ObjectSE handler, ServerWebExchange exchange) protected CorsConfiguration
AbstractHandlerMethodMapping.initCorsConfiguration
(ObjectSE handler, MethodSE method, T mapping) マッピングの CORS 設定を抽出して返します。org.springframework.web.reactive.result.method.annotation 内の CorsConfiguration 使用
修飾子と型メソッド説明protected CorsConfiguration
RequestMappingHandlerMapping.initCorsConfiguration
(ObjectSE handler, MethodSE method, RequestMappingInfo mappingInfo) org.springframework.web.servlet.config 内の CorsConfiguration 使用
修飾子と型メソッド説明static RuntimeBeanReference
MvcNamespaceUtils.registerCorsConfigurations
(MapSE<StringSE, CorsConfiguration> corsConfigurations, ParserContext context, ObjectSE source) すでに登録されていない限り、Map<String, CorsConfiguration>
(マップされたCorsConfiguration
)を既知の名前で登録します。org.springframework.web.servlet.config.annotation 内の CorsConfiguration 使用
修飾子と型メソッド説明protected MapSE<StringSE,
CorsConfiguration> CorsRegistry.getCorsConfigurations()
パスパターンをキーとして、登録されているCorsConfiguration
オブジェクトを返します。protected final MapSE<StringSE,
CorsConfiguration> WebMvcConfigurationSupport.getCorsConfigurations()
パスパターンをキーとして、登録されているCorsConfiguration
オブジェクトを返します。修飾子と型メソッド説明CorsRegistration.combine
(CorsConfiguration other) 指定されたCorsConfiguration
を、applyPermitDefaultValues()
で初期化されたcombine(CorsConfiguration)
を介して構成されているものに適用します。org.springframework.web.servlet.handler 内の CorsConfiguration 使用
修飾子と型メソッド説明protected CorsConfiguration
AbstractHandlerMapping.getCorsConfiguration
(ObjectSE handler, HttpServletRequestEE request) 指定されたハンドラーの CORS 構成を取得します。protected CorsConfiguration
AbstractHandlerMethodMapping.getCorsConfiguration
(ObjectSE handler, HttpServletRequestEE request) HandlerMappingIntrospector.getCorsConfiguration
(HttpServletRequestEE request) protected CorsConfiguration
AbstractHandlerMethodMapping.initCorsConfiguration
(ObjectSE handler, MethodSE method, T mapping) マッピングの CORS 設定を抽出して返します。修飾子と型メソッド説明protected HandlerExecutionChain
AbstractHandlerMapping.getCorsHandlerExecutionChain
(HttpServletRequestEE request, HandlerExecutionChain chain, CorsConfiguration config) CORS 関連の処理のために HandlerExecutionChain を更新します。修飾子と型メソッド説明void
AbstractHandlerMapping.setCorsConfigurations
(MapSE<StringSE, CorsConfiguration> corsConfigurations) 「グローバル」CORS 構成マッピングを設定します。org.springframework.web.servlet.mvc.method.annotation 内の CorsConfiguration 使用
修飾子と型メソッド説明protected CorsConfiguration
RequestMappingHandlerMapping.initCorsConfiguration
(ObjectSE handler, MethodSE method, RequestMappingInfo mappingInfo) org.springframework.web.servlet.resource 内の CorsConfiguration 使用
修飾子と型メソッド説明ResourceHttpRequestHandler.getCorsConfiguration
(HttpServletRequestEE request) 指定された CORS 設定を返します。修飾子と型メソッド説明void
ResourceHttpRequestHandler.setCorsConfiguration
(CorsConfiguration corsConfiguration) このハンドラーによって処理されるリソースの CORS 構成を指定します。org.springframework.web.socket.sockjs.support 内の CorsConfiguration 使用
修飾子と型メソッド説明AbstractSockJsService.getCorsConfiguration
(HttpServletRequestEE request) SockJsHttpRequestHandler.getCorsConfiguration
(HttpServletRequestEE request)