Package org.apache.woden.wsdl20.extensions

Examples of org.apache.woden.wsdl20.extensions.ComponentExtensionContext


                }
                return null;   // can't go any further without the wsdl
            }
            Service[] services = description.getServices();
            for (int i = 0; i < services.length; i++) {
                Service service = services[i];
                // set the serviceName on the parent to setup call to populateService
                serviceName = service.getName();
                this.axisService = new AxisService();
                    AxisService retAxisService = populateService();
                    if (retAxisService != null) {
                        axisServices.add(retAxisService);
                    } // end if axisService was returned
View Full Code Here


        .queryComponentExtensionNamespaces(InterfaceOperation.class);

    for (int i = 0; i < extNamespaces.length; i++) {
      URI extNS = extNamespaces[i];
      if (oper.hasExtensionAttributesForNamespace(extNS)) {
        ComponentExtensionContext compExt = createComponentExtensions(
            InterfaceOperation.class, oper, extNS);
        oper.setComponentExtensionContext(extNS, compExt);
      }
    }
       
        /*
         * {safety} is a REQUIRED extension property on interface operation
         * so if an InterfaceOperationExtensions object has not already been
         * created, create one now.
         */
        if (oper.getComponentExtensionContext(
                WSDLExtensionConstants.NS_URI_WSDL_EXTENSIONS) == null) {
            ComponentExtensionContext compExt = createComponentExtensions(
                    InterfaceOperation.class, oper,
                    WSDLExtensionConstants.NS_URI_WSDL_EXTENSIONS);
            oper.setComponentExtensionContext(
                    WSDLExtensionConstants.NS_URI_WSDL_EXTENSIONS, compExt);
        }
       
        /*
         * If interface operation style includes RPC then if an
         * RPCInterfaceOperationExtensions object has not already been
         * created, create one now.
         */
        boolean isRPCStyle = false;
        URI[] style = oper.getStyle();
        for(int i=0; i<style.length; i++)
        {
            URI temp = style[i];
            if(RPCConstants.STYLE_URI_RPC.equals(temp)) {
                isRPCStyle = true;
                break;
            }
        }
       
        if(isRPCStyle) {
            if (oper.getComponentExtensionContext(
                    RPCConstants.NS_URI_RPC) == null) {
                ComponentExtensionContext compExt = createComponentExtensions(
                        InterfaceOperation.class, oper,
                        RPCConstants.NS_URI_RPC);
                oper.setComponentExtensionContext(
                        RPCConstants.NS_URI_RPC, compExt);
            }
View Full Code Here

         * Create a ComponentExtensions subtype specific to the binding type.
         */
       
        fBindingType = binding.getType();
        if(fBindingType != null) {
            ComponentExtensionContext compExt = createComponentExtensions(
                    Binding.class, binding, fBindingType);
            binding.setComponentExtensionContext(fBindingType, compExt);
        }
  }
View Full Code Here

        /*
         * Create a ComponentExtensions subtype specific to the binding type.
         */
       
        if(fBindingType != null) {
            ComponentExtensionContext compExt = createComponentExtensions(
                    BindingFault.class, bindFault, fBindingType);
            bindFault.setComponentExtensionContext(fBindingType, compExt);
        }
  }
View Full Code Here

        /*
         * Create a ComponentExtensions subtype specific to the binding type.
         */
       
        if(fBindingType != null) {
            ComponentExtensionContext compExt = createComponentExtensions(
                    BindingOperation.class, bindOper, fBindingType);
            bindOper.setComponentExtensionContext(fBindingType, compExt);
        }
  }
View Full Code Here

        /*
         * Create a ComponentExtensions subtype specific to the binding type.
         */
       
        if(fBindingType != null) {
            ComponentExtensionContext compExt = createComponentExtensions(
                    BindingMessageReference.class, bindMsgRef, fBindingType);
            bindMsgRef.setComponentExtensionContext(fBindingType, compExt);
        }
  }
View Full Code Here

        /*
         * Create a ComponentExtensions subtype specific to the binding type.
         */
       
        if(fBindingType != null) {
            ComponentExtensionContext compExt = createComponentExtensions(
                    BindingFaultReference.class, bindFaultRef, fBindingType);
            bindFaultRef.setComponentExtensionContext(fBindingType, compExt);
        }
  }
View Full Code Here

        /*
         * Create a ComponentExtensions subtype specific to the binding type.
         */
       
        if(fBindingType != null) {
            ComponentExtensionContext compExt = createComponentExtensions(
                    Endpoint.class, endpoint, fBindingType);
            endpoint.setComponentExtensionContext(fBindingType, compExt);
        }
  }
View Full Code Here

   * ComponentExtensionContexts registered in the ExtensionRegistry.
   */
  private ComponentExtensionContext createComponentExtensions(Class parentClass,
      WSDLComponent parentComp, URI extNS) {
    ExtensionRegistry er = fDesc.getWsdlContext().extensionRegistry;
    ComponentExtensionContext compExt = null;
    try {
      compExt = er.createComponentExtension(parentClass, parentComp, extNS);
      //TODO remove with woden-47 ((ComponentExtensionsImpl) compExt).init(parentElem, extNS);
    } catch (WSDLException e) {
      // This exception occurs if there is no Java class registered for
View Full Code Here

    public ExtensionProperty[] getExtensionProperties(URI extNamespace) {
        if(extNamespace == null) {
            return new ExtensionProperty[] {};
        }
       
        ComponentExtensionContext compExtCtx = getComponentExtensionContext(extNamespace);
        if(compExtCtx == null) {
            return new ExtensionProperty[] {};
        }
       
        return compExtCtx.getProperties();
    }
View Full Code Here

TOP

Related Classes of org.apache.woden.wsdl20.extensions.ComponentExtensionContext

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.