getServerNamespace

abstract fun getServerNamespace(): String

Returns the namespace of the web server application context or null if no namespace has been set. Used for disambiguation when multiple web servers are running in the same application (for example a management context running on a different port).

Return

the server namespace


Returns the server namespace if the specified context is a WebServerApplicationContext.

Return

the server namespace or null if the context is not a WebServerApplicationContext

Since

2.6.0

Parameters

context

the context