クラス ExceptionTranslationWebFilter

  • 実装されたすべてのインターフェース:
    org.springframework.beans.factory.Awareorg.springframework.context.MessageSourceAwareorg.springframework.web.server.WebFilter

    public class ExceptionTranslationWebFilter
    extends java.lang.Object
    implements org.springframework.web.server.WebFilter, org.springframework.context.MessageSourceAware
    導入:
    5.0
    • フィールドの詳細

      • messages

        protected org.springframework.context.support.MessageSourceAccessor messages
    • コンストラクターの詳細

      • ExceptionTranslationWebFilter

        public ExceptionTranslationWebFilter()
    • メソッドの詳細

      • filter

        public reactor.core.publisher.Mono<java.lang.Void> filter​(org.springframework.web.server.ServerWebExchange exchange,
                                                                  org.springframework.web.server.WebFilterChain chain)
        次で指定:
        インターフェース org.springframework.web.server.WebFilterfilter 
      • setAccessDeniedHandler

        public void setAccessDeniedHandler​(ServerAccessDeniedHandler accessDeniedHandler)
        アクセス拒否ハンドラーを設定します。
        パラメーター:
        accessDeniedHandler - 使用するアクセス拒否ハンドラー。デフォルトは HttpStatusAccessDeniedHandler と HttpStatus.FORBIDDEN です
      • setAuthenticationEntryPoint

        public void setAuthenticationEntryPoint​(ServerAuthenticationEntryPoint authenticationEntryPoint)
        認証が必要なときに使用される認証エントリポイントを設定します
        パラメーター:
        authenticationEntryPoint - 使用する認証エントリポイント。デフォルトは HttpBasicServerAuthenticationEntryPoint です
      • setAuthenticationTrustResolver

        public void setAuthenticationTrustResolver​(AuthenticationTrustResolver authenticationTrustResolver)
        認証トラストリゾルバーを設定します。
        パラメーター:
        authenticationTrustResolver - 使用する認証トラストリゾルバー。デフォルトは AuthenticationTrustResolverImpl です
        導入:
        5.5
      • setMessageSource

        public void setMessageSource​(org.springframework.context.MessageSource messageSource)
        次で指定:
        インターフェース org.springframework.context.MessageSourceAwaresetMessageSource 
        導入:
        5.5