endpoint.getEndpointInfo().getAddress())) { Endpoint alternate = endpoint.getService().getEndpoints().get(candidate.getName()); if (alternate != null) { if (LOG.isLoggable(Level.FINE)) {
endpoint.getEndpointInfo().getAddress())) { Endpoint alternate = endpoint.getService().getEndpoints().get(candidate.getName()); if (alternate != null) { if (LOG.isLoggable(Level.FINE)) {
/** * Adds any binding model-configured inInterceptors and outInterceptors to the endpoint. * @param endpoint the endpoint * @param bindingModel the binding model * @param loader the classloader to use */ public static void addInterceptors(Endpoint endpoint, SOAPBindingModel bindingModel, ClassLoader loader) { BusHolder busHolder = endpoint.getService().getDeployment().getAttachment(BusHolder.class); if (busHolder instanceof NonSpringBusHolder) { List<?> list = new FieldAccess<List<?>>(NonSpringBusHolder.class, "endpoints").read(busHolder); for (Object o : list) { for (org.apache.cxf.endpoint.Endpoint e : ((EndpointImpl)o).getService().getEndpoints().values()) { checkAddressingEnabled(e); e.getInInterceptors().add(new SwitchYardURIMappingInterceptor()); e.getInInterceptors().add(new SwitchYardDispatchInterceptor()); e.getInInterceptors().add(new SwitchYardEncryptionConfidentialityInterceptor()); e.getInInterceptors().addAll(getConfiguredInInterceptors(bindingModel, loader)); e.getOutInterceptors().addAll(getConfiguredOutInterceptors(bindingModel, loader)); e.getOutInterceptors().add(new SwitchYardSecurityCleanupOutInterceptor()); e.getOutFaultInterceptors().add(new SwitchYardSecurityCleanupOutFaultInterceptor()); } } } }
/** * Adds any binding model-configured inInterceptors and outInterceptors to the endpoint. * @param endpoint the endpoint * @param bindingModel the binding model * @param loader the classloader to use */ public static void addInterceptors(Endpoint endpoint, SOAPBindingModel bindingModel, ClassLoader loader) { BusHolder busHolder = endpoint.getService().getDeployment().getAttachment(BusHolder.class); if (busHolder instanceof NonSpringBusHolder) { List<?> list = new FieldAccess<List<?>>(NonSpringBusHolder.class, "endpoints").read(busHolder); for (Object o : list) { for (org.apache.cxf.endpoint.Endpoint e : ((EndpointImpl)o).getService().getEndpoints().values()) { checkAddressingEnabled(e); e.getInInterceptors().add(new SwitchYardURIMappingInterceptor()); e.getInInterceptors().add(new SwitchYardDispatchInterceptor()); e.getInInterceptors().add(new SwitchYardEncryptionConfidentialityInterceptor()); e.getInInterceptors().addAll(getConfiguredInInterceptors(bindingModel, loader)); e.getOutInterceptors().addAll(getConfiguredOutInterceptors(bindingModel, loader)); e.getOutInterceptors().add(new SwitchYardSecurityCleanupOutInterceptor()); e.getOutFaultInterceptors().add(new SwitchYardSecurityCleanupOutFaultInterceptor()); } } } }
protected void createEndpoints() { Service service = getService(); BindingFactoryManager bfm = getBus().getExtension(BindingFactoryManager.class); for (ServiceInfo inf : service.getServiceInfos()) { for (EndpointInfo ei : inf.getEndpoints()) { for (BindingOperationInfo boi : ei.getBinding().getOperations()) { updateBindingOperation(boi); } try { bfm.getBindingFactory(ei.getBinding().getBindingId()); } catch (BusException e1) { continue; } try { Endpoint ep = createEndpoint(ei); service.getEndpoints().put(ei.getName(), ep); } catch (EndpointException e) { throw new ServiceConstructionException(e); } } } }
protected void createEndpoints() { Service service = getService(); BindingFactoryManager bfm = getBus().getExtension(BindingFactoryManager.class); for (ServiceInfo inf : service.getServiceInfos()) { for (EndpointInfo ei : inf.getEndpoints()) { for (BindingOperationInfo boi : ei.getBinding().getOperations()) { updateBindingOperation(boi); } try { bfm.getBindingFactory(ei.getBinding().getBindingId()); } catch (BusException e1) { continue; } try { Endpoint ep = createEndpoint(ei); service.getEndpoints().put(ei.getName(), ep); } catch (EndpointException e) { throw new ServiceConstructionException(e); } } } }
protected void createEndpoints() { Service service = getService(); BindingFactoryManager bfm = getBus().getExtension(BindingFactoryManager.class); for (ServiceInfo inf : service.getServiceInfos()) { for (EndpointInfo ei : inf.getEndpoints()) { for (BindingOperationInfo boi : ei.getBinding().getOperations()) { updateBindingOperation(boi); } try { bfm.getBindingFactory(ei.getBinding().getBindingId()); } catch (BusException e1) { continue; } try { Endpoint ep = createEndpoint(ei); service.getEndpoints().put(ei.getName(), ep); } catch (EndpointException e) { throw new ServiceConstructionException(e); } } } }
ei.setAddress(endpointReference); Endpoint ep = service.getEndpoints().get(ei.getName()); service.getEndpoints().put(ep.getEndpointInfo().getName(), ep);
ei.setAddress(endpointReference); Endpoint ep = service.getEndpoints().get(ei.getName()); service.getEndpoints().put(ep.getEndpointInfo().getName(), ep);