com.sun.xml.internal.ws.wsdl.OperationDispatcher Java Examples

The following examples show how to use com.sun.xml.internal.ws.wsdl.OperationDispatcher. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Packet.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
public WSDLOperationMapping getWSDLOperationMapping() {
    if (wsdlOperationMapping != null) return wsdlOperationMapping;
    OperationDispatcher opDispatcher = null;
    if (endpoint != null) {
        opDispatcher = endpoint.getOperationDispatcher();
    } else if (proxy != null) {
        opDispatcher = ((Stub) proxy).getOperationDispatcher();
    }
    //OpDispatcher is null when there is no WSDLModel
    if (opDispatcher != null) {
        try {
            wsdlOperationMapping = opDispatcher.getWSDLOperationMapping(this);
        } catch (DispatchException e) {
            //Ignore, this might be a protocol message which may not have a wsdl operation
            //LOGGER.info("Cannot resolve wsdl operation that this Packet is targeted for.");
        }
    }
    return wsdlOperationMapping;
}
 
Example #2
Source File: Packet.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
public WSDLOperationMapping getWSDLOperationMapping() {
    if (wsdlOperationMapping != null) return wsdlOperationMapping;
    OperationDispatcher opDispatcher = null;
    if (endpoint != null) {
        opDispatcher = endpoint.getOperationDispatcher();
    } else if (proxy != null) {
        opDispatcher = ((Stub) proxy).getOperationDispatcher();
    }
    //OpDispatcher is null when there is no WSDLModel
    if (opDispatcher != null) {
        try {
            wsdlOperationMapping = opDispatcher.getWSDLOperationMapping(this);
        } catch (DispatchException e) {
            //Ignore, this might be a protocol message which may not have a wsdl operation
            //LOGGER.info("Cannot resolve wsdl operation that this Packet is targeted for.");
        }
    }
    return wsdlOperationMapping;
}
 
Example #3
Source File: Packet.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
public WSDLOperationMapping getWSDLOperationMapping() {
    if (wsdlOperationMapping != null) return wsdlOperationMapping;
    OperationDispatcher opDispatcher = null;
    if (endpoint != null) {
        opDispatcher = endpoint.getOperationDispatcher();
    } else if (proxy != null) {
        opDispatcher = ((Stub) proxy).getOperationDispatcher();
    }
    //OpDispatcher is null when there is no WSDLModel
    if (opDispatcher != null) {
        try {
            wsdlOperationMapping = opDispatcher.getWSDLOperationMapping(this);
        } catch (DispatchException e) {
            //Ignore, this might be a protocol message which may not have a wsdl operation
            //LOGGER.info("Cannot resolve wsdl operation that this Packet is targeted for.");
        }
    }
    return wsdlOperationMapping;
}
 
Example #4
Source File: Packet.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
public WSDLOperationMapping getWSDLOperationMapping() {
    if (wsdlOperationMapping != null) return wsdlOperationMapping;
    OperationDispatcher opDispatcher = null;
    if (endpoint != null) {
        opDispatcher = endpoint.getOperationDispatcher();
    } else if (proxy != null) {
        opDispatcher = ((Stub) proxy).getOperationDispatcher();
    }
    //OpDispatcher is null when there is no WSDLModel
    if (opDispatcher != null) {
        try {
            wsdlOperationMapping = opDispatcher.getWSDLOperationMapping(this);
        } catch (DispatchException e) {
            //Ignore, this might be a protocol message which may not have a wsdl operation
            //LOGGER.info("Cannot resolve wsdl operation that this Packet is targeted for.");
        }
    }
    return wsdlOperationMapping;
}
 
Example #5
Source File: Packet.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
public WSDLOperationMapping getWSDLOperationMapping() {
    if (wsdlOperationMapping != null) return wsdlOperationMapping;
    OperationDispatcher opDispatcher = null;
    if (endpoint != null) {
        opDispatcher = endpoint.getOperationDispatcher();
    } else if (proxy != null) {
        opDispatcher = ((Stub) proxy).getOperationDispatcher();
    }
    //OpDispatcher is null when there is no WSDLModel
    if (opDispatcher != null) {
        try {
            wsdlOperationMapping = opDispatcher.getWSDLOperationMapping(this);
        } catch (DispatchException e) {
            //Ignore, this might be a protocol message which may not have a wsdl operation
            //LOGGER.info("Cannot resolve wsdl operation that this Packet is targeted for.");
        }
    }
    return wsdlOperationMapping;
}
 
Example #6
Source File: Packet.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
public WSDLOperationMapping getWSDLOperationMapping() {
    if (wsdlOperationMapping != null) return wsdlOperationMapping;
    OperationDispatcher opDispatcher = null;
    if (endpoint != null) {
        opDispatcher = endpoint.getOperationDispatcher();
    } else if (proxy != null) {
        opDispatcher = ((Stub) proxy).getOperationDispatcher();
    }
    //OpDispatcher is null when there is no WSDLModel
    if (opDispatcher != null) {
        try {
            wsdlOperationMapping = opDispatcher.getWSDLOperationMapping(this);
        } catch (DispatchException e) {
            //Ignore, this might be a protocol message which may not have a wsdl operation
            //LOGGER.info("Cannot resolve wsdl operation that this Packet is targeted for.");
        }
    }
    return wsdlOperationMapping;
}
 
Example #7
Source File: Packet.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
public WSDLOperationMapping getWSDLOperationMapping() {
    if (wsdlOperationMapping != null) return wsdlOperationMapping;
    OperationDispatcher opDispatcher = null;
    if (endpoint != null) {
        opDispatcher = endpoint.getOperationDispatcher();
    } else if (proxy != null) {
        opDispatcher = ((Stub) proxy).getOperationDispatcher();
    }
    //OpDispatcher is null when there is no WSDLModel
    if (opDispatcher != null) {
        try {
            wsdlOperationMapping = opDispatcher.getWSDLOperationMapping(this);
        } catch (DispatchException e) {
            //Ignore, this might be a protocol message which may not have a wsdl operation
            //LOGGER.info("Cannot resolve wsdl operation that this Packet is targeted for.");
        }
    }
    return wsdlOperationMapping;
}
 
Example #8
Source File: Packet.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
public WSDLOperationMapping getWSDLOperationMapping() {
    if (wsdlOperationMapping != null) return wsdlOperationMapping;
    OperationDispatcher opDispatcher = null;
    if (endpoint != null) {
        opDispatcher = endpoint.getOperationDispatcher();
    } else if (proxy != null) {
        opDispatcher = ((Stub) proxy).getOperationDispatcher();
    }
    //OpDispatcher is null when there is no WSDLModel
    if (opDispatcher != null) {
        try {
            wsdlOperationMapping = opDispatcher.getWSDLOperationMapping(this);
        } catch (DispatchException e) {
            //Ignore, this might be a protocol message which may not have a wsdl operation
            //LOGGER.info("Cannot resolve wsdl operation that this Packet is targeted for.");
        }
    }
    return wsdlOperationMapping;
}
 
Example #9
Source File: WSEndpointImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
protected WSEndpointImpl(@NotNull QName serviceName, @NotNull QName portName, WSBinding binding, Container container,
                      SEIModel seiModel, WSDLPort port,
                      Tube masterTubeline) {
              this.serviceName = serviceName;
              this.portName = portName;
              this.binding = binding;
              this.soapVersion = binding.getSOAPVersion();
              this.container = container;
              this.endpointPolicy = null;
              this.port = port;
              this.seiModel = seiModel;
              this.serviceDef = null;
              this.implementationClass = null;
              this.masterTubeline = masterTubeline;
              this.masterCodec = ((BindingImpl) this.binding).createCodec();

      LazyMOMProvider.INSTANCE.registerEndpoint(this);
      initManagedObjectManager();

      this.operationDispatcher = (port == null) ? null : new OperationDispatcher(port, binding, seiModel);
          this.context = new ServerPipeAssemblerContext(
              seiModel, port, this, null /* not known */, false);

              tubePool = new TubePool(masterTubeline);
              engine = new Engine(toString(), container);
              wsdlProperties = (port == null) ? new WSDLDirectProperties(serviceName, portName, seiModel) : new WSDLPortProperties(port, seiModel);
}
 
Example #10
Source File: DatabindingImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public void freeze(WSDLPort port) {
    if (clientConfig) {
        return;
    }
    synchronized(this) {
        if (operationDispatcher == null) {
            operationDispatcher = (port == null) ? null : new OperationDispatcher(port, seiModel.getWSBinding(), seiModel);
        }
    }
}
 
Example #11
Source File: DatabindingImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public DatabindingImpl(DatabindingProviderImpl p, DatabindingConfig config) {
        RuntimeModeler modeler = new RuntimeModeler(config);
        modeler.setClassLoader(config.getClassLoader());
        seiModel = modeler.buildRuntimeModel();
        WSDLPort wsdlport = config.getWsdlPort();
        packetFactory = new MessageContextFactory(seiModel.getWSBinding().getFeatures());
        clientConfig = isClientConfig(config);
        if (clientConfig) {
            initStubHandlers();
        }
        seiModel.setDatabinding(this);
        if (wsdlport != null) {
            freeze(wsdlport);
        }
        if (operationDispatcher == null) {
            operationDispatcherNoWsdl = new OperationDispatcher(null, seiModel.getWSBinding(), seiModel);
        }
//    if(!clientConfig) {
        for (JavaMethodImpl jm : seiModel.getJavaMethods()) {
            if (!jm.isAsync()) {
                TieHandler th = new TieHandler(jm, seiModel.getWSBinding(), packetFactory);
                wsdlOpMap.put(jm, th);
                tieHandlers.put(th.getMethod(), th);
            }
        }
//    }
    }
 
Example #12
Source File: DatabindingImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public void freeze(WSDLPort port) {
    if (clientConfig) {
        return;
    }
    synchronized(this) {
        if (operationDispatcher == null) {
            operationDispatcher = (port == null) ? null : new OperationDispatcher(port, seiModel.getWSBinding(), seiModel);
        }
    }
}
 
Example #13
Source File: WSEndpointImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
protected WSEndpointImpl(@NotNull QName serviceName, @NotNull QName portName, WSBinding binding, Container container,
                      SEIModel seiModel, WSDLPort port,
                      Tube masterTubeline) {
              this.serviceName = serviceName;
              this.portName = portName;
              this.binding = binding;
              this.soapVersion = binding.getSOAPVersion();
              this.container = container;
              this.endpointPolicy = null;
              this.port = port;
              this.seiModel = seiModel;
              this.serviceDef = null;
              this.implementationClass = null;
              this.masterTubeline = masterTubeline;
              this.masterCodec = ((BindingImpl) this.binding).createCodec();

      LazyMOMProvider.INSTANCE.registerEndpoint(this);
      initManagedObjectManager();

      this.operationDispatcher = (port == null) ? null : new OperationDispatcher(port, binding, seiModel);
          this.context = new ServerPipeAssemblerContext(
              seiModel, port, this, null /* not known */, false);

              tubePool = new TubePool(masterTubeline);
              engine = new Engine(toString(), container);
              wsdlProperties = (port == null) ? new WSDLDirectProperties(serviceName, portName, seiModel) : new WSDLPortProperties(port, seiModel);
}
 
Example #14
Source File: DatabindingImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public DatabindingImpl(DatabindingProviderImpl p, DatabindingConfig config) {
        RuntimeModeler modeler = new RuntimeModeler(config);
        modeler.setClassLoader(config.getClassLoader());
        seiModel = modeler.buildRuntimeModel();
        WSDLPort wsdlport = config.getWsdlPort();
        Object facProp = config.properties().get("com.sun.xml.internal.ws.api.message.MessageContextFactory");
        packetFactory = (facProp != null && facProp instanceof MessageContextFactory)? (MessageContextFactory)facProp :
                        new MessageContextFactory(seiModel.getWSBinding().getFeatures());
        clientConfig = isClientConfig(config);
        if (clientConfig) {
            initStubHandlers();
        }
        seiModel.setDatabinding(this);
        if (wsdlport != null) {
            freeze(wsdlport);
        }
        if (operationDispatcher == null) {
            operationDispatcherNoWsdl = new OperationDispatcher(null, seiModel.getWSBinding(), seiModel);
        }
//    if(!clientConfig) {
        for (JavaMethodImpl jm : seiModel.getJavaMethods()) {
            if (!jm.isAsync()) {
                TieHandler th = new TieHandler(jm, seiModel.getWSBinding(), packetFactory);
                wsdlOpMap.put(jm, th);
                tieHandlers.put(th.getMethod(), th);
            }
        }
//    }
    }
 
Example #15
Source File: DatabindingImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public void freeze(WSDLPort port) {
    if (clientConfig) {
        return;
    }
    synchronized(this) {
        if (operationDispatcher == null) {
            operationDispatcher = (port == null) ? null : new OperationDispatcher(port, seiModel.getWSBinding(), seiModel);
        }
    }
}
 
Example #16
Source File: WSEndpointImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
protected WSEndpointImpl(@NotNull QName serviceName, @NotNull QName portName, WSBinding binding, Container container,
                      SEIModel seiModel, WSDLPort port,
                      Tube masterTubeline) {
              this.serviceName = serviceName;
              this.portName = portName;
              this.binding = binding;
              this.soapVersion = binding.getSOAPVersion();
              this.container = container;
              this.endpointPolicy = null;
              this.port = port;
              this.seiModel = seiModel;
              this.serviceDef = null;
              this.implementationClass = null;
              this.masterTubeline = masterTubeline;
              this.masterCodec = ((BindingImpl) this.binding).createCodec();

      LazyMOMProvider.INSTANCE.registerEndpoint(this);
      initManagedObjectManager();

      this.operationDispatcher = (port == null) ? null : new OperationDispatcher(port, binding, seiModel);
          this.context = new ServerPipeAssemblerContext(
              seiModel, port, this, null /* not known */, false);

              tubePool = new TubePool(masterTubeline);
              engine = new Engine(toString(), container);
              wsdlProperties = (port == null) ? new WSDLDirectProperties(serviceName, portName, seiModel) : new WSDLPortProperties(port, seiModel);
}
 
Example #17
Source File: DatabindingImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public DatabindingImpl(DatabindingProviderImpl p, DatabindingConfig config) {
        RuntimeModeler modeler = new RuntimeModeler(config);
        modeler.setClassLoader(config.getClassLoader());
        seiModel = modeler.buildRuntimeModel();
        WSDLPort wsdlport = config.getWsdlPort();
        packetFactory = new MessageContextFactory(seiModel.getWSBinding().getFeatures());
        clientConfig = isClientConfig(config);
        if (clientConfig) {
            initStubHandlers();
        }
        seiModel.setDatabinding(this);
        if (wsdlport != null) {
            freeze(wsdlport);
        }
        if (operationDispatcher == null) {
            operationDispatcherNoWsdl = new OperationDispatcher(null, seiModel.getWSBinding(), seiModel);
        }
//    if(!clientConfig) {
        for (JavaMethodImpl jm : seiModel.getJavaMethods()) {
            if (!jm.isAsync()) {
                TieHandler th = new TieHandler(jm, seiModel.getWSBinding(), packetFactory);
                wsdlOpMap.put(jm, th);
                tieHandlers.put(th.getMethod(), th);
            }
        }
//    }
    }
 
Example #18
Source File: DatabindingImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public void freeze(WSDLPort port) {
    if (clientConfig) {
        return;
    }
    synchronized(this) {
        if (operationDispatcher == null) {
            operationDispatcher = (port == null) ? null : new OperationDispatcher(port, seiModel.getWSBinding(), seiModel);
        }
    }
}
 
Example #19
Source File: WSEndpointImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
protected WSEndpointImpl(@NotNull QName serviceName, @NotNull QName portName, WSBinding binding, Container container,
                      SEIModel seiModel, WSDLPort port,
                      Tube masterTubeline) {
              this.serviceName = serviceName;
              this.portName = portName;
              this.binding = binding;
              this.soapVersion = binding.getSOAPVersion();
              this.container = container;
              this.endpointPolicy = null;
              this.port = port;
              this.seiModel = seiModel;
              this.serviceDef = null;
              this.implementationClass = null;
              this.masterTubeline = masterTubeline;
              this.masterCodec = ((BindingImpl) this.binding).createCodec();

      LazyMOMProvider.INSTANCE.registerEndpoint(this);
      initManagedObjectManager();

      this.operationDispatcher = (port == null) ? null : new OperationDispatcher(port, binding, seiModel);
          this.context = new ServerPipeAssemblerContext(
              seiModel, port, this, null /* not known */, false);

              tubePool = new TubePool(masterTubeline);
              engine = new Engine(toString(), container);
              wsdlProperties = (port == null) ? new WSDLDirectProperties(serviceName, portName, seiModel) : new WSDLPortProperties(port, seiModel);
}
 
Example #20
Source File: DatabindingImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public DatabindingImpl(DatabindingProviderImpl p, DatabindingConfig config) {
        RuntimeModeler modeler = new RuntimeModeler(config);
        modeler.setClassLoader(config.getClassLoader());
        seiModel = modeler.buildRuntimeModel();
        WSDLPort wsdlport = config.getWsdlPort();
        packetFactory = new MessageContextFactory(seiModel.getWSBinding().getFeatures());
        clientConfig = isClientConfig(config);
        if (clientConfig) {
            initStubHandlers();
        }
        seiModel.setDatabinding(this);
        if (wsdlport != null) {
            freeze(wsdlport);
        }
        if (operationDispatcher == null) {
            operationDispatcherNoWsdl = new OperationDispatcher(null, seiModel.getWSBinding(), seiModel);
        }
//    if(!clientConfig) {
        for (JavaMethodImpl jm : seiModel.getJavaMethods()) {
            if (!jm.isAsync()) {
                TieHandler th = new TieHandler(jm, seiModel.getWSBinding(), packetFactory);
                wsdlOpMap.put(jm, th);
                tieHandlers.put(th.getMethod(), th);
            }
        }
//    }
    }
 
Example #21
Source File: DatabindingImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public void freeze(WSDLPort port) {
    if (clientConfig) {
        return;
    }
    synchronized(this) {
        if (operationDispatcher == null) {
            operationDispatcher = (port == null) ? null : new OperationDispatcher(port, seiModel.getWSBinding(), seiModel);
        }
    }
}
 
Example #22
Source File: WSEndpointImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
protected WSEndpointImpl(@NotNull QName serviceName, @NotNull QName portName, WSBinding binding, Container container,
                      SEIModel seiModel, WSDLPort port,
                      Tube masterTubeline) {
              this.serviceName = serviceName;
              this.portName = portName;
              this.binding = binding;
              this.soapVersion = binding.getSOAPVersion();
              this.container = container;
              this.endpointPolicy = null;
              this.port = port;
              this.seiModel = seiModel;
              this.serviceDef = null;
              this.implementationClass = null;
              this.masterTubeline = masterTubeline;
              this.masterCodec = ((BindingImpl) this.binding).createCodec();

      LazyMOMProvider.INSTANCE.registerEndpoint(this);
      initManagedObjectManager();

      this.operationDispatcher = (port == null) ? null : new OperationDispatcher(port, binding, seiModel);
          this.context = new ServerPipeAssemblerContext(
              seiModel, port, this, null /* not known */, false);

              tubePool = new TubePool(masterTubeline);
              engine = new Engine(toString(), container);
              wsdlProperties = (port == null) ? new WSDLDirectProperties(serviceName, portName, seiModel) : new WSDLPortProperties(port, seiModel);
}
 
Example #23
Source File: DatabindingImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public DatabindingImpl(DatabindingProviderImpl p, DatabindingConfig config) {
        RuntimeModeler modeler = new RuntimeModeler(config);
        modeler.setClassLoader(config.getClassLoader());
        seiModel = modeler.buildRuntimeModel();
        WSDLPort wsdlport = config.getWsdlPort();
        packetFactory = new MessageContextFactory(seiModel.getWSBinding().getFeatures());
        clientConfig = isClientConfig(config);
        if (clientConfig) {
            initStubHandlers();
        }
        seiModel.setDatabinding(this);
        if (wsdlport != null) {
            freeze(wsdlport);
        }
        if (operationDispatcher == null) {
            operationDispatcherNoWsdl = new OperationDispatcher(null, seiModel.getWSBinding(), seiModel);
        }
//    if(!clientConfig) {
        for (JavaMethodImpl jm : seiModel.getJavaMethods()) {
            if (!jm.isAsync()) {
                TieHandler th = new TieHandler(jm, seiModel.getWSBinding(), packetFactory);
                wsdlOpMap.put(jm, th);
                tieHandlers.put(th.getMethod(), th);
            }
        }
//    }
    }
 
Example #24
Source File: WSEndpointImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
protected WSEndpointImpl(@NotNull QName serviceName, @NotNull QName portName, WSBinding binding, Container container,
                      SEIModel seiModel, WSDLPort port,
                      Tube masterTubeline) {
              this.serviceName = serviceName;
              this.portName = portName;
              this.binding = binding;
              this.soapVersion = binding.getSOAPVersion();
              this.container = container;
              this.endpointPolicy = null;
              this.port = port;
              this.seiModel = seiModel;
              this.serviceDef = null;
              this.implementationClass = null;
              this.masterTubeline = masterTubeline;
              this.masterCodec = ((BindingImpl) this.binding).createCodec();

      LazyMOMProvider.INSTANCE.registerEndpoint(this);
      initManagedObjectManager();

      this.operationDispatcher = (port == null) ? null : new OperationDispatcher(port, binding, seiModel);
          this.context = new ServerPipeAssemblerContext(
              seiModel, port, this, null /* not known */, false);

              tubePool = new TubePool(masterTubeline);
              engine = new Engine(toString(), container);
              wsdlProperties = (port == null) ? new WSDLDirectProperties(serviceName, portName, seiModel) : new WSDLPortProperties(port, seiModel);
}
 
Example #25
Source File: DatabindingImpl.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public DatabindingImpl(DatabindingProviderImpl p, DatabindingConfig config) {
        RuntimeModeler modeler = new RuntimeModeler(config);
        modeler.setClassLoader(config.getClassLoader());
        seiModel = modeler.buildRuntimeModel();
        WSDLPort wsdlport = config.getWsdlPort();
        packetFactory = new MessageContextFactory(seiModel.getWSBinding().getFeatures());
        clientConfig = isClientConfig(config);
        if (clientConfig) {
            initStubHandlers();
        }
        seiModel.setDatabinding(this);
        if (wsdlport != null) {
            freeze(wsdlport);
        }
        if (operationDispatcher == null) {
            operationDispatcherNoWsdl = new OperationDispatcher(null, seiModel.getWSBinding(), seiModel);
        }
//    if(!clientConfig) {
        for (JavaMethodImpl jm : seiModel.getJavaMethods()) {
            if (!jm.isAsync()) {
                TieHandler th = new TieHandler(jm, seiModel.getWSBinding(), packetFactory);
                wsdlOpMap.put(jm, th);
                tieHandlers.put(th.getMethod(), th);
            }
        }
//    }
    }
 
Example #26
Source File: DatabindingImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public void freeze(WSDLPort port) {
    if (clientConfig) {
        return;
    }
    synchronized(this) {
        if (operationDispatcher == null) {
            operationDispatcher = (port == null) ? null : new OperationDispatcher(port, seiModel.getWSBinding(), seiModel);
        }
    }
}
 
Example #27
Source File: DatabindingImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public DatabindingImpl(DatabindingProviderImpl p, DatabindingConfig config) {
        RuntimeModeler modeler = new RuntimeModeler(config);
        modeler.setClassLoader(config.getClassLoader());
        seiModel = modeler.buildRuntimeModel();
        WSDLPort wsdlport = config.getWsdlPort();
        packetFactory = new MessageContextFactory(seiModel.getWSBinding().getFeatures());
        clientConfig = isClientConfig(config);
        if (clientConfig) {
            initStubHandlers();
        }
        seiModel.setDatabinding(this);
        if (wsdlport != null) {
            freeze(wsdlport);
        }
        if (operationDispatcher == null) {
            operationDispatcherNoWsdl = new OperationDispatcher(null, seiModel.getWSBinding(), seiModel);
        }
//    if(!clientConfig) {
        for (JavaMethodImpl jm : seiModel.getJavaMethods()) {
            if (!jm.isAsync()) {
                TieHandler th = new TieHandler(jm, seiModel.getWSBinding(), packetFactory);
                wsdlOpMap.put(jm, th);
                tieHandlers.put(th.getMethod(), th);
            }
        }
//    }
    }
 
Example #28
Source File: WSEndpointImpl.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
protected WSEndpointImpl(@NotNull QName serviceName, @NotNull QName portName, WSBinding binding, Container container,
                      SEIModel seiModel, WSDLPort port,
                      Tube masterTubeline) {
              this.serviceName = serviceName;
              this.portName = portName;
              this.binding = binding;
              this.soapVersion = binding.getSOAPVersion();
              this.container = container;
              this.endpointPolicy = null;
              this.port = port;
              this.seiModel = seiModel;
              this.serviceDef = null;
              this.implementationClass = null;
              this.masterTubeline = masterTubeline;
              this.masterCodec = ((BindingImpl) this.binding).createCodec();

      LazyMOMProvider.INSTANCE.registerEndpoint(this);
      initManagedObjectManager();

      this.operationDispatcher = (port == null) ? null : new OperationDispatcher(port, binding, seiModel);
          this.context = new ServerPipeAssemblerContext(
              seiModel, port, this, null /* not known */, false);

              tubePool = new TubePool(masterTubeline);
              engine = new Engine(toString(), container);
              wsdlProperties = (port == null) ? new WSDLDirectProperties(serviceName, portName, seiModel) : new WSDLPortProperties(port, seiModel);
}
 
Example #29
Source File: DatabindingImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public DatabindingImpl(DatabindingProviderImpl p, DatabindingConfig config) {
        RuntimeModeler modeler = new RuntimeModeler(config);
        modeler.setClassLoader(config.getClassLoader());
        seiModel = modeler.buildRuntimeModel();
        WSDLPort wsdlport = config.getWsdlPort();
        packetFactory = new MessageContextFactory(seiModel.getWSBinding().getFeatures());
        clientConfig = isClientConfig(config);
        if (clientConfig) {
            initStubHandlers();
        }
        seiModel.setDatabinding(this);
        if (wsdlport != null) {
            freeze(wsdlport);
        }
        if (operationDispatcher == null) {
            operationDispatcherNoWsdl = new OperationDispatcher(null, seiModel.getWSBinding(), seiModel);
        }
//    if(!clientConfig) {
        for (JavaMethodImpl jm : seiModel.getJavaMethods()) {
            if (!jm.isAsync()) {
                TieHandler th = new TieHandler(jm, seiModel.getWSBinding(), packetFactory);
                wsdlOpMap.put(jm, th);
                tieHandlers.put(th.getMethod(), th);
            }
        }
//    }
    }
 
Example #30
Source File: WSEndpointImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
protected WSEndpointImpl(@NotNull QName serviceName, @NotNull QName portName, WSBinding binding, Container container,
                      SEIModel seiModel, WSDLPort port,
                      Tube masterTubeline) {
              this.serviceName = serviceName;
              this.portName = portName;
              this.binding = binding;
              this.soapVersion = binding.getSOAPVersion();
              this.container = container;
              this.endpointPolicy = null;
              this.port = port;
              this.seiModel = seiModel;
              this.serviceDef = null;
              this.implementationClass = null;
              this.masterTubeline = masterTubeline;
              this.masterCodec = ((BindingImpl) this.binding).createCodec();

      LazyMOMProvider.INSTANCE.registerEndpoint(this);
      initManagedObjectManager();

      this.operationDispatcher = (port == null) ? null : new OperationDispatcher(port, binding, seiModel);
          this.context = new ServerPipeAssemblerContext(
              seiModel, port, this, null /* not known */, false);

              tubePool = new TubePool(masterTubeline);
              engine = new Engine(toString(), container);
              wsdlProperties = (port == null) ? new WSDLDirectProperties(serviceName, portName, seiModel) : new WSDLPortProperties(port, seiModel);
}