MethodDispatcher dispatcher = (MethodDispatcher)endpoint.getService().get( MethodDispatcher.class .getName());
/** * Obtain handler chain from annotations. * @param server * */ private void buildHandlerChain(Server server) { AnnotationHandlerChainBuilder builder = new AnnotationHandlerChainBuilder(); @SuppressWarnings("rawtypes") List<Handler> chain = new ArrayList<>(handlers); chain.addAll(builder.buildHandlerChainFromClass(getServiceBeanClass(), server.getEndpoint().getEndpointInfo().getName(), server.getEndpoint().getService().getName(), this.getBindingId())); for (Handler<?> h : chain) { injectResources(h); } ((JaxWsEndpointImpl)server.getEndpoint()).getJaxwsBinding().setHandlerChain(chain); }
builder.serviceName(ep.getService().getName()); builder.endpointName(ep.getEndpointInfo().getName()); URI wsdlDescription = ep.getEndpointInfo().getProperty("URI", URI.class);
/** * Get the Executor for this invocation. * @param endpoint */ private Executor getExecutor(final Endpoint endpoint) { return endpoint.getService().getExecutor(); }
/** * Get the Executor for this invocation. * @param endpoint */ private Executor getExecutor(final Endpoint endpoint) { return endpoint.getService().getExecutor(); }
configureObject(endpoint.getService()); configureObject(endpoint); this.service = endpoint.getService();
public RMEndpoint findReliableEndpoint(QName qn) { for (RMEndpoint rpe : reliableEndpoints.values()) { if (qn.equals(rpe.getApplicationEndpoint().getService().getName())) { return rpe; } } return null; }
private static void writeEndpointProperty(StringBuilder buffer, Endpoint ep) { String serviceName = ObjectName.quote(ep.getService().getName().toString()); buffer.append(","); buffer.append(ManagementConstants.SERVICE_NAME_PROP).append('=').append(serviceName).append(','); String endpointName = ObjectName.quote(ep.getEndpointInfo().getName().toString()); buffer.append(ManagementConstants.PORT_NAME_PROP).append('=').append(endpointName).append(','); // Added the instance id to make the ObjectName unique buffer.append(ManagementConstants.INSTANCE_ID_PROP).append('=').append(ep.hashCode()); }
public void invoke(ClientCallback callback, String operationName, Object... params) throws Exception { QName q = new QName(getEndpoint().getService().getName().getNamespaceURI(), operationName); invoke(callback, q, params); }
public void invoke(ClientCallback callback, String operationName, Object... params) throws Exception { QName q = new QName(getEndpoint().getService().getName().getNamespaceURI(), operationName); invoke(callback, q, params); }
public void invokeWrapped(ClientCallback callback, String operationName, Object... params) throws Exception { QName q = new QName(getEndpoint().getService().getName().getNamespaceURI(), operationName); invokeWrapped(callback, q, params); }
public void invoke(ClientCallback callback, String operationName, Object... params) throws Exception { QName q = new QName(getEndpoint().getService().getName().getNamespaceURI(), operationName); invoke(callback, q, params); }
@Override public void initialize(Client client, Bus bus) { Service service = client.getEndpoint().getService(); setProperties(service); }
protected BindingOperationInfo getBindingOperationFromEndpoint(Endpoint ep, final String operationName) { QName q = new QName(ep.getService().getName().getNamespaceURI(), operationName); BindingOperationInfo bop = ep.getBinding().getBindingInfo().getOperation(q); return bop; }
public Server getServerForService(QName serviceName) throws WSDLException { ServerRegistry svrMan = bus.getExtension(ServerRegistry.class); for (Server s : svrMan.getServers()) { Service svc = s.getEndpoint().getService(); if (svc.getName().equals(serviceName)) { return s; } } return null; }
public void startServer(Server serv) { if (serv.getEndpoint().getBinding() instanceof SoapBinding) { QName qn = serv.getEndpoint().getService().getName(); if (!"http://mex.ws.cxf.apache.org/".equals(qn.getNamespaceURI())) { serv.getEndpoint().getInInterceptors().add(new MEXInInterceptor(serv)); } } }
@Override protected void configureInterceptors(Client client) { super.configureInterceptors(client); client.getInInterceptors().add(new InPayloadExtractorInterceptor(SOAP_BODY)); client.getInInterceptors().add(new InNamespaceMergeInterceptor()); client.getInInterceptors().add(new InPayloadInjectorInterceptor(0)); client.getEndpoint().getService().setDataBinding(new PlainXmlDataBinding()); } }
public void setExchangeProperties(Exchange exchange, Endpoint ep) { exchange.put(Endpoint.class, ep); exchange.put(Service.class, ep.getService()); exchange.put(Binding.class, ep.getBinding()); exchange.put(Bus.class, bus == null ? BusFactory.getDefaultBus(false) : bus); } }
private MessageImpl createMessage(Endpoint e, Bus b) { MessageImpl m = new MessageImpl(); Exchange ex = new ExchangeImpl(); m.setExchange(ex); ex.put(Endpoint.class, e); ex.put(Bus.class, b); ex.put(Service.class, e.getService()); return m; }
protected void removeFaultInInterceptorFromClient(Client client) { removeInterceptors(client.getInFaultInterceptors(), REMOVING_FAULT_IN_INTERCEPTORS); removeInterceptors(client.getEndpoint().getService().getInFaultInterceptors(), REMOVING_FAULT_IN_INTERCEPTORS); removeInterceptors(client.getEndpoint().getInFaultInterceptors(), REMOVING_FAULT_IN_INTERCEPTORS); removeInterceptors(client.getEndpoint().getBinding().getInFaultInterceptors(), REMOVING_FAULT_IN_INTERCEPTORS); }