@Override public String toString() { return "[BindingInfo " + getBindingId() + "]"; } }
@Override public String toString() { return "[BindingInfo " + getBindingId() + "]"; } }
@Override public String toString() { return "[BindingInfo " + getBindingId() + "]"; } }
@Override public String toString() { return "[BindingInfo " + getBindingId() + "]"; } }
private boolean checkXMLBindingFormat() { Collection<BindingInfo> bindings = service.getBindings(); if (bindings != null) { for (BindingInfo binding : bindings) { if (WSDLConstants.NS_BINDING_XML.equalsIgnoreCase(binding.getBindingId()) && !checkXMLFormat(binding)) { return false; } } } return true; }
private boolean checkXMLBindingFormat() { Collection<BindingInfo> bindings = service.getBindings(); if (bindings != null) { for (BindingInfo binding : bindings) { if (WSDLConstants.NS_BINDING_XML.equalsIgnoreCase(binding.getBindingId()) && !checkXMLFormat(binding)) { return false; } } } return true; }
@ManagedAttribute(description = "if the endpoint has WADL doc or not", currencyTimeLimit = 60) public boolean isWADL() { if (endpoint.getEndpointInfo().getBinding(). getBindingId().equals("http://apache.org/cxf/binding/jaxrs")) { return true; } return false; }
@ManagedAttribute(description = "if the endpoint has WADL doc or not", currencyTimeLimit = 60) public boolean isWADL() { if (endpoint.getEndpointInfo().getBinding(). getBindingId().equals("http://apache.org/cxf/binding/jaxrs")) { return true; } return false; }
/** * Extracts the bindingId from a Server. * @param server * @return */ private static String getBindingId(Server server) { Endpoint ep = server.getEndpoint(); BindingInfo bi = ep.getBinding().getBindingInfo(); return bi.getBindingId(); }
/** * Extracts the bindingId from a Server. * @param server * @return */ private static String getBindingId(Server server) { Endpoint ep = server.getEndpoint(); BindingInfo bi = ep.getBinding().getBindingInfo(); return bi.getBindingId(); }
@Override public void handleEvent(Event arg0, AbstractServiceFactoryBean arg1, Object... arg2) { if (arg0.equals(Event.SERVER_CREATED) && (arg2[0] instanceof Server)) { Server server = (Server)arg2[0]; if (server.getEndpoint().getEndpointInfo().getBinding(). getBindingId().equals("http://apache.org/cxf/binding/jaxrs")) { initialize(server, bus); } } } });
@Override public void handleEvent(Event arg0, AbstractServiceFactoryBean arg1, Object... arg2) { if (arg0.equals(Event.SERVER_CREATED) && (arg2[0] instanceof Server)) { Server server = (Server)arg2[0]; if (server.getEndpoint().getEndpointInfo().getBinding(). getBindingId().equals("http://apache.org/cxf/binding/jaxrs")) { initialize(server, bus); } } } });
final void createBinding(BindingInfo bi) throws EndpointException { if (null != bi) { String namespace = bi.getBindingId(); BindingFactory bf = null; try { bf = bus.getExtension(BindingFactoryManager.class).getBindingFactory(namespace); if (null == bf) { Message msg = new Message("NO_BINDING_FACTORY", BUNDLE, namespace); throw new EndpointException(msg); } binding = bf.createBinding(bi); } catch (BusException ex) { throw new EndpointException(ex); } } }
final void createBinding(BindingInfo bi) throws EndpointException { if (null != bi) { String namespace = bi.getBindingId(); BindingFactory bf = null; try { bf = bus.getExtension(BindingFactoryManager.class).getBindingFactory(namespace); if (null == bf) { Message msg = new Message("NO_BINDING_FACTORY", BUNDLE, namespace); throw new EndpointException(msg); } binding = bf.createBinding(bi); } catch (BusException ex) { throw new EndpointException(ex); } } }
final void createBinding(BindingInfo bi) throws EndpointException { if (null != bi) { String namespace = bi.getBindingId(); BindingFactory bf = null; try { bf = bus.getExtension(BindingFactoryManager.class).getBindingFactory(namespace); if (null == bf) { Message msg = new Message("NO_BINDING_FACTORY", BUNDLE, namespace); throw new EndpointException(msg); } binding = bf.createBinding(bi); } catch (BusException ex) { throw new EndpointException(ex); } } }
final void createBinding(BindingInfo bi) throws EndpointException { if (null != bi) { String namespace = bi.getBindingId(); BindingFactory bf = null; try { bf = bus.getExtension(BindingFactoryManager.class).getBindingFactory(namespace); if (null == bf) { Message msg = new Message("NO_BINDING_FACTORY", BUNDLE, namespace); throw new EndpointException(msg); } binding = bf.createBinding(bi); } catch (BusException ex) { throw new EndpointException(ex); } } }
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); } } } }
public static void fillCallContext(CallContext callContext, SoapMessage message) { if (callContext.getOperationName() == null) { callContext.setOperationName((QName) message.get(Message.WSDL_OPERATION)); } callContext.setPortTypeName((QName) message.get(Message.WSDL_INTERFACE)); callContext.setServiceName((QName) message.get(Message.WSDL_SERVICE)); final BindingInfo bi = message.getExchange().getBinding().getBindingInfo(); callContext.setBindingId(bi == null ? "http://schemas.xmlsoap.org/wsdl/soap/" : bi.getBindingId()); URL wsdlLocation = resolveCallbackWsdlLocation(callContext.getServiceName(), message); if (wsdlLocation != null) { callContext.setWsdlLocation(wsdlLocation); } String flowId = FlowIdHelper.getFlowId(message); if (flowId != null && !flowId.isEmpty()) { callContext.setFlowId(flowId); } }