Class ConfigurationContextFactory

java.lang.Object
com.groiss.ws.client.ConfigurationContextFactory

public class ConfigurationContextFactory extends Object
provides ConfigurationContext instances for ws-client calls the axis2.xml and repositories have to be in ws/client.ctx
  • Method Details

    • getDefaultConfigurationContext

      public static org.apache.axis2.context.ConfigurationContext getDefaultConfigurationContext()
    • getClientConfigurationContext

      public static org.apache.axis2.context.ConfigurationContext getClientConfigurationContext()
      creates ConfigurationContext from ws/client.ctx/default
      Returns:
      ws/client.ctx/default ConfigurationContext
    • getClientConfigurationContext

      public static org.apache.axis2.context.ConfigurationContext getClientConfigurationContext(String name) throws org.apache.axis2.AxisFault
      creates ConfigurationContext from ws/client.ctx/name if no repository can be found at ws/client.ctx/name/repository, ws/client.ctx/default/repository will be used
      Returns:
      ws/client.ctx/name ConfigurationContext
      Throws:
      org.apache.axis2.AxisFault
    • getClientConfigurationContext

      public static org.apache.axis2.context.ConfigurationContext getClientConfigurationContext(File baseDir, String name) throws org.apache.axis2.AxisFault
      creates ConfigurationContext from ws/client.ctx/name if no repository can be found at ws/client.ctx/name/repository, ws/client.ctx/default/repository will be used
      Returns:
      ws/client.ctx/name ConfigurationContext
      Throws:
      org.apache.axis2.AxisFault