/** * Creates an instance of {@link WSBinding} (which is conceptually an "use" * of {@link BindingID}) from a {@link BindingID}. * * @return * Always a new instance. */ public final @NotNull WSBinding createBinding() { return BindingImpl.create(this); }
/** * Creates an instance of {@link WSBinding} (which is conceptually an "use" * of {@link BindingID}) from a {@link BindingID}. * * @return * Always a new instance. */ public final @NotNull WSBinding createBinding() { return BindingImpl.create(this); }
/** * Creates an instance of {@link WSBinding} (which is conceptually an "use" * of {@link BindingID}) from a {@link BindingID}. * * @return * Always a new instance. */ public final @NotNull WSBinding createBinding() { return BindingImpl.create(this); }
public final @NotNull WSBinding createBinding(WebServiceFeature... features) { return BindingImpl.create(this, features); }
public final @NotNull WSBinding createBinding(WebServiceFeature... features) { return BindingImpl.create(this, features); }
public final @NotNull WSBinding createBinding(WebServiceFeature... features) { return BindingImpl.create(this, features); }
private EndpointImpl(@NotNull BindingID bindingId, Object impl, @NotNull Class implClass, Invoker invoker, WebServiceFeature ... features) { binding = BindingImpl.create(bindingId, features); this.implClass = implClass; this.invoker = invoker; this.implementor = impl; }
private EndpointImpl(@NotNull BindingID bindingId, Object impl, @NotNull Class implClass, Invoker invoker, WebServiceFeature ... features) { binding = BindingImpl.create(bindingId, features); this.implClass = implClass; this.invoker = invoker; this.implementor = impl; }
private EndpointImpl(@NotNull BindingID bindingId, Object impl, @NotNull Class implClass, Invoker invoker, WebServiceFeature ... features) { binding = BindingImpl.create(bindingId, features); this.implClass = implClass; this.invoker = invoker; this.implementor = impl; }
public synchronized void init(ServletConfig servletConfig) throws ServletException { if (delegate != null) { return; } super.init(servletConfig); ServletContext servletContext = servletConfig.getServletContext(); // Setup the WSIT endpoint that handles WS-MEX requests for registered endpoints. The TCCL must be set for JAXB. ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); ClassLoader seiClassLoader = MEXEndpoint.class.getClassLoader(); try { Thread.currentThread().setContextClassLoader(seiClassLoader); container = new F3Container(servletContext); WSBinding binding = BindingImpl.create(BindingID.SOAP12_HTTP); mexEndpoint = WSEndpoint.create(MEXEndpoint.class, false, null, null, null, container, binding, null, null, null, true); } finally { Thread.currentThread().setContextClassLoader(classLoader); } // register services for (EndpointConfiguration configuration : configurations) { registerService(configuration); } }
public synchronized void init(ServletConfig servletConfig) throws ServletException { if (delegate != null) { return; } super.init(servletConfig); ServletContext servletContext = servletConfig.getServletContext(); // Setup the WSIT endpoint that handles WS-MEX requests for registered endpoints. The TCCL must be set for JAXB. ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); ClassLoader seiClassLoader = MEXEndpoint.class.getClassLoader(); try { Thread.currentThread().setContextClassLoader(seiClassLoader); container = new F3Container(servletContext, securityEnvironment); WSBinding binding = BindingImpl.create(BindingID.SOAP12_HTTP); mexEndpoint = WSEndpoint.create(MEXEndpoint.class, false, null, null, null, container, binding, null, null, null, true); } finally { Thread.currentThread().setContextClassLoader(classLoader); } // register services for (EndpointConfiguration configuration : configurations) { registerService(configuration); } }
/** * {@inheritDoc} */ @Override public void start() { if (implementor != null) { this.endpoint = WSEndpoint.create( (Class<?>) implementor.getClass(), true, InstanceResolver.createSingleton(implementor).createInvoker(), getProperty(QName.class, Endpoint.WSDL_SERVICE), getProperty(QName.class, Endpoint.WSDL_PORT), null /* no container */, BindingImpl.create(BindingID.parse(implementor.getClass())), getPrimaryWsdl(implementor), buildDocList(), (EntityResolver) null, !isAsync); } this.httpAdapter = HttpAdapter.createAlone(endpoint); }
WSBinding binding = BindingImpl.create(BindingID.SOAP11_HTTP); Container endpointContainer = container; List<SDDocumentSource> metadata = null;
WSBinding binding = BindingImpl.create(bindingId, features); Container endpointContainer = container; List<SDDocumentSource> metadata = null;
WSBinding binding = BindingImpl.create(BindingID.SOAP11_HTTP); binding.setHandlerChain(handlerChain); Class<?> serviceClass = serviceObj.getClass();
public GeneratedArtifacts generate(Class<?> seiClass, QName serviceQName, String endpointAddress, BindingID bindingId) throws WsdlGenerationException { RuntimeModeler modeler = new RuntimeModeler(seiClass, serviceQName, bindingId); AbstractSEIModelImpl model = modeler.buildRuntimeModel(); GeneratedWsdlResolver wsdlResolver = new GeneratedWsdlResolver(); WSBinding binding = BindingImpl.create(bindingId); WSDLGenerator generator = new WSDLGenerator(model, wsdlResolver, binding, null, seiClass, true); generator.setEndpointAddress(endpointAddress); // generate the WSDL and schemas generator.doGeneration(); String wsdl = wsdlResolver.getGeneratedWsdl(); Map<String, String> schemas = wsdlResolver.getGeneratedSchemas(); return new GeneratedArtifacts(wsdl, schemas); } }
public BindingImpl createBinding(WebServiceFeatureList webServiceFeatures, Class<?> portInterface, BindingImpl existingBinding) { if (existingBinding != null) { webServiceFeatures.addAll(existingBinding.getFeatures()); } Iterable<WebServiceFeature> configFeatures; //TODO incase of Dispatch, provide a way to User for complete control of the message processing by giving // ability to turn off the WSDL/Policy based features and its associated tubes. //Even in case of Dispatch, merge all features configured via WSDL/Policy or deployment configuration if (portModel != null) { // could have merged features from this.policyMap, but some features are set in WSDLModel which are not there in PolicyMap // for ex: <wsaw:UsingAddressing> wsdl extn., and since the policyMap features are merged into WSDLModel anyway during postFinished(), // So, using here WsdlModel for merging is right. // merge features from WSDL configFeatures = portModel.getFeatures(); } else { configFeatures = PolicyUtil.getPortScopedFeatures(policyMap, owner.getServiceName(),portName); } webServiceFeatures.mergeFeatures(configFeatures, false); // merge features from interceptor webServiceFeatures.mergeFeatures(owner.serviceInterceptor.preCreateBinding(this, portInterface, webServiceFeatures), false); BindingImpl bindingImpl = BindingImpl.create(bindingId, webServiceFeatures.toArray()); owner.getHandlerConfigurator().configureHandlers(this,bindingImpl); return bindingImpl; }
public BindingImpl createBinding(WebServiceFeatureList webServiceFeatures, Class<?> portInterface, BindingImpl existingBinding) { if (existingBinding != null) { webServiceFeatures.addAll(existingBinding.getFeatures()); } Iterable<WebServiceFeature> configFeatures; //TODO incase of Dispatch, provide a way to User for complete control of the message processing by giving // ability to turn off the WSDL/Policy based features and its associated tubes. //Even in case of Dispatch, merge all features configured via WSDL/Policy or deployment configuration if (portModel != null) { // could have merged features from this.policyMap, but some features are set in WSDLModel which are not there in PolicyMap // for ex: <wsaw:UsingAddressing> wsdl extn., and since the policyMap features are merged into WSDLModel anyway during postFinished(), // So, using here WsdlModel for merging is right. // merge features from WSDL configFeatures = portModel.getFeatures(); } else { configFeatures = PolicyUtil.getPortScopedFeatures(policyMap, owner.getServiceName(),portName); } webServiceFeatures.mergeFeatures(configFeatures, false); // merge features from interceptor webServiceFeatures.mergeFeatures(owner.serviceInterceptor.preCreateBinding(this, portInterface, webServiceFeatures), false); BindingImpl bindingImpl = BindingImpl.create(bindingId, webServiceFeatures.toArray()); owner.getHandlerConfigurator().configureHandlers(this,bindingImpl); return bindingImpl; }
public BindingImpl createBinding(WebServiceFeatureList webServiceFeatures, Class<?> portInterface, BindingImpl existingBinding) { if (existingBinding != null) { webServiceFeatures.addAll(existingBinding.getFeatures()); } Iterable<WebServiceFeature> configFeatures; //TODO incase of Dispatch, provide a way to User for complete control of the message processing by giving // ability to turn off the WSDL/Policy based features and its associated tubes. //Even in case of Dispatch, merge all features configured via WSDL/Policy or deployment configuration if (portModel != null) { // could have merged features from this.policyMap, but some features are set in WSDLModel which are not there in PolicyMap // for ex: <wsaw:UsingAddressing> wsdl extn., and since the policyMap features are merged into WSDLModel anyway during postFinished(), // So, using here WsdlModel for merging is right. // merge features from WSDL configFeatures = portModel.getFeatures(); } else { configFeatures = PolicyUtil.getPortScopedFeatures(policyMap, owner.getServiceName(),portName); } webServiceFeatures.mergeFeatures(configFeatures, false); // merge features from interceptor webServiceFeatures.mergeFeatures(owner.serviceInterceptor.preCreateBinding(this, portInterface, webServiceFeatures), false); BindingImpl bindingImpl = BindingImpl.create(bindingId, webServiceFeatures.toArray()); owner.getHandlerConfigurator().configureHandlers(this,bindingImpl); return bindingImpl; }