Package org.apache.axis2.dataretrieval

Examples of org.apache.axis2.dataretrieval.WSDLSupplier


      printUserWSDL(out, null, requestIP);
      return;
    }

    // If we find a WSDLSupplier with WSDL 1.1 content, use that
    WSDLSupplier supplier = getUserDefinedWSDLSupplier("wsdl");
    if(supplier == null){
      supplier = (WSDLSupplier) getParameterValue(Constants.WSDL_SUPPLIER_PARAM)
      if(supplier instanceof WSDL11SupplierTemplate){
          ((WSDL11SupplierTemplate)supplier).init(this);
      }
    }     
    if (supplier != null) {
      Object wsdlContent = supplier.getWSDL(this);
      if( wsdlContent instanceof Definition){
        try {
          Definition definition = (Definition) wsdlContent;
          if (definition != null) {
              changeImportAndIncludeLocations(definition);
View Full Code Here


            return;
        }
    AxisService2WSDL20 axisService2WSDL2 = new AxisService2WSDL20(this);
   
    // If we find a WSDLSupplier with WSDL 2.0 content, use that
    WSDLSupplier supplier = getUserDefinedWSDLSupplier("wsdl2");
    if(supplier == null){
      supplier = (WSDLSupplier) getParameterValue(Constants.WSDL_SUPPLIER_PARAM)
      if(supplier instanceof WSDL20SupplierTemplate){
                ((WSDL20SupplierTemplate)supplier).init(this);
            }
    }       
    if (supplier != null) {
      Object wsdlContent = supplier.getWSDL(this);
      if( wsdlContent instanceof Description){
        try {
          Description definition = (Description) wsdlContent;
          if (definition != null) {
            //TODO  -- Need to implement this method for WSDL 2.0
View Full Code Here

     
   
  }
   
    private WSDLSupplier getUserDefinedWSDLSupplier(String wsdlVersion){
      WSDLSupplier wsdlSupplier = null;
      if("wsdl".equals(wsdlVersion)){
        Parameter para = getParameter(Constants.WSDL_11_SUPPLIER_CLASS_PARAM);
            if (para != null) {
                try {
                    wsdlSupplier = (WSDLSupplier) Class.forName((String) para.getValue()).newInstance();
View Full Code Here

      printUserWSDL(out, null);
      return;
    }

    // If we find a WSDLSupplier, use that
    WSDLSupplier supplier = (WSDLSupplier) getParameterValue("WSDLSupplier");
    if (supplier != null) {
      try {
        Definition definition = supplier.getWSDL(this);
        if (definition != null) {
            changeImportAndIncludeLocations(definition);
                    printDefinitionObject(getWSDLDefinition(definition, null),
              out, requestIP);
        }
View Full Code Here

            printUserWSDL(out, null);
            return;
        }

        // If we find a WSDLSupplier, use that
        WSDLSupplier supplier = (WSDLSupplier)getParameterValue("WSDLSupplier");
        if (supplier != null) {
            try {
                Definition definition = supplier.getWSDL(this);
                if (definition != null) {
                    printDefinitionObject(getWSDLDefinition(definition, null), out);
                }
            } catch (Exception e) {
                printWSDLError(out, e);
View Full Code Here

      printUserWSDL(out, null);
      return;
    }

    // If we find a WSDLSupplier, use that
    WSDLSupplier supplier = (WSDLSupplier) getParameterValue("WSDLSupplier");
    if (supplier != null) {
      try {
        Definition definition = supplier.getWSDL(this);
        if (definition != null) {
            changeImportAndIncludeLocations(definition);
                    printDefinitionObject(getWSDLDefinition(definition, null),
              out, requestIP);
        }
View Full Code Here

            deploymentFileData.setClassLoader(isDirectory, getClass().getClassLoader(),
                    (File) cfgCtx.getAxisConfiguration().getParameterValue(
                            Constants.Configuration.ARTIFACTS_TEMP_DIR),
                    cfgCtx.getAxisConfiguration().isChildFirstClassLoading());

            DeploymentClassLoader urlCl
                = (DeploymentClassLoader)deploymentFileData.getClassLoader();
            Thread.currentThread().setContextClassLoader(urlCl);

            // StartupFactory registration
            for (StartupFactory factory : getProviders(StartupFactory.class, urlCl)) {
View Full Code Here

    private void handleException(String message, Exception e) throws DeploymentException {
        if (log.isDebugEnabled()) {
            log.debug(message, e);
        }
        throw new DeploymentException(message, e);
    }
View Full Code Here

    private void handleException(String message, Throwable t) throws DeploymentException {
        if (log.isDebugEnabled()) {
            log.debug(message, t);
        }
        throw new DeploymentException(message, t);
    }
View Full Code Here

            }
        } else {
            String msg = "Artifact representing the filename "
                    + fileName + " is not deployed on Synapse";
            log.error(msg);
            throw new DeploymentException(msg);
        }

        if (log.isDebugEnabled()) {
            log.debug("UnDeployment of the synapse artifact from file : "
                    + fileName + " : COMPLETED");
View Full Code Here

TOP

Related Classes of org.apache.axis2.dataretrieval.WSDLSupplier

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.