Home All Groups
jbossws-api / org / jboss / ws / api / configuration / ClientConfigUtil.html /
org.jboss.ws.api.configuration

Class ClientConfigUtil


  • public abstract class ClientConfigUtil
    extends Object
    A facility for setting a JBossWS Client Configuration
    Author:
    Alessio Soldano
    • Constructor Detail

      • ClientConfigUtil

        public ClientConfigUtil()
    • Method Detail

      • setConfigHandlers

        public static void setConfigHandlers(BindingProvider bp,
                                             String configFile,
                                             String configName)
        Reads a client configuration and setups the handlers in the provided BindingProvider accordingly. This leverages the resolveClientConfigurer() method for getting the ClientConfigure to use.
        Parameters:
        bp - The BindingProvider instance to setup
        configFile - The configuration file
        configName - The configuration name
      • setConfigProperties

        public static void setConfigProperties(Object proxy,
                                               String configFile,
                                               String configName)
        Reads a client configuration and setups the properties in the provided proxy accordingly. This leverages the resolveClientConfigurer() method for getting the ClientConfigure to use.
        Parameters:
        proxy - The client proxy (port) instance to setup
        configFile - The configuration file
        configName - The configuration name
      • resolveClientConfigurer

        public static ClientConfigurer resolveClientConfigurer()
        Resolves a ClientConfigurer instance by first using the current thread context classloader and failing that by using the defining classloader.
        Returns:
        A ClientConfigurer instance

Copyright © 2018 JBoss, by Red Hat. All rights reserved.