Interface ServerConfig


  • public interface ServerConfig
    Interface to container independent config
    Since:
    08-May-2006
    Author:
    Thomas.Diesler@jboss.org, alessio.soldano@jboss.com
    • Field Detail

      • UNDEFINED_HOSTNAME

        static final String UNDEFINED_HOSTNAME
        The host name that is returned if there is no other defined
        See Also:
        Constant Field Values
    • Method Detail

      • getImplementationTitle

        String getImplementationTitle()
      • getImplementationVersion

        String getImplementationVersion()
      • getHomeDir

        File getHomeDir()
      • getServerTempDir

        File getServerTempDir()
      • getServerDataDir

        File getServerDataDir()
      • getWebServiceHost

        String getWebServiceHost()
      • getWebServicePort

        int getWebServicePort()
      • setWebServicePort

        void setWebServicePort​(int port)
      • getWebServiceSecurePort

        int getWebServiceSecurePort()
      • setWebServiceSecurePort

        void setWebServiceSecurePort​(int port)
      • getWebServicePathRewriteRule

        String getWebServicePathRewriteRule()
      • setWebServicePathRewriteRule

        void setWebServicePathRewriteRule​(String path)
      • getWebServiceUriScheme

        String getWebServiceUriScheme()
      • setWebServiceUriScheme

        void setWebServiceUriScheme​(String scheme)
      • isModifySOAPAddress

        boolean isModifySOAPAddress()
      • setModifySOAPAddress

        void setModifySOAPAddress​(boolean flag)
      • isStatisticsEnabled

        boolean isStatisticsEnabled()
      • setStatisticsEnabled

        void setStatisticsEnabled​(boolean flag)
      • registerClientConfig

        void registerClientConfig​(ClientConfig config)
        Register a client config in the server configuration; the new config will apply to runtime when the server config is started or after a client config store reload.
        Parameters:
        config - client config to register
      • unregisterClientConfig

        void unregisterClientConfig​(ClientConfig config)
        Unregister a client config from the server configuration; the new config will be removed from the collection returned to callers after next endpoint store reload.
        Parameters:
        config - client config to unregister
      • reloadClientConfigs

        void reloadClientConfigs()
        Reloads the client config store
      • getClientConfig

        ClientConfig getClientConfig​(String name)
        Get a client config by name
        Parameters:
        name - name of client config
        Returns:
        named client config
      • registerEndpointConfig

        void registerEndpointConfig​(EndpointConfig config)
        Register an endpoint config in the server configuration; the new config will apply to runtime when the server config is started or after an endpoint config store reload.
        Parameters:
        config - endpoint config to register
      • unregisterEndpointConfig

        void unregisterEndpointConfig​(EndpointConfig config)
        Unregister an endpoint config from the server configuration; the new config will be removed from the collection returned to callers after next endpoint store reload.
        Parameters:
        config - endpoint config to unregister
      • reloadEndpointConfigs

        void reloadEndpointConfigs()
        Reloads the endpoint config store
      • getEndpointConfig

        EndpointConfig getEndpointConfig​(String name)
        Get an endpoint config by name
        Parameters:
        name - name of endpoint
        Returns:
        found named endpoint config
      • getVirtualHostPort

        Integer getVirtualHostPort​(String virtualHost,
                                   boolean secure)
        Get port for virtual host, if there are many ports found only return the first found
        Parameters:
        virtualHost - virtual host name
        secure - if get the secure port
        Returns:
        port value for virtual host
      • getHostAlias

        String getHostAlias​(String virtualHost)
        Get host alias which DNS can resolve
        Parameters:
        virtualHost - virtual host name
        Returns:
        host alias name