インターフェース WebServerApplicationContext

すべてのスーパーインターフェース:
ApplicationContextApplicationEventPublisherBeanFactoryEnvironmentCapableHierarchicalBeanFactoryListableBeanFactoryMessageSourceResourceLoaderResourcePatternResolver
すべての既知のサブインターフェース:
ConfigurableWebServerApplicationContext
すべての既知の実装クラス:
AnnotationConfigReactiveWebServerApplicationContextAnnotationConfigServletWebServerApplicationContextReactiveWebServerApplicationContextServletWebServerApplicationContextXmlServletWebServerApplicationContext

public interface WebServerApplicationContext extends ApplicationContext
WebServer のライフサイクルを作成および管理する application contexts によって実装されるインターフェース。
導入:
2.0.0
作成者:
Phillip Webb
  • メソッドの詳細

    • getWebServer

      WebServer getWebServer()
      コンテキストによって作成された WebServer を返します。サーバーがまだ作成されていない場合は null を返します。
      戻り値:
      Web サーバー
    • getServerNamespace

      StringSE getServerNamespace()
      Web サーバーアプリケーションコンテキストの名前空間を返します。名前空間が設定されていない場合は null を返します。同じアプリケーションで複数の Web サーバーが実行されている場合の明確化に使用されます(たとえば、異なるポートで実行されている管理コンテキスト)。
      戻り値:
      サーバーの名前空間
    • hasServerNamespace

      static boolean hasServerNamespace(ApplicationContext context, StringSE serverNamespace)
      指定されたコンテキストが、一致するサーバー名前空間を持つ WebServerApplicationContext である場合、true を返します。
      パラメーター:
      context - チェックするコンテキスト
      serverNamespace - 照合するサーバーの名前空間
      戻り値:
      コンテキストのサーバー名前空間が一致する場合は true 
      導入:
      2.1.8
    • getServerNamespace

      static StringSE getServerNamespace(ApplicationContext context)
      指定されたコンテキストが WebServerApplicationContext の場合、サーバーの名前空間を返します。
      パラメーター:
      context - コンテキスト
      戻り値:
      サーバーの名前空間、またはコンテキストが WebServerApplicationContext でない場合は null 
      導入:
      2.6.0