public static QName getService(Exchange exchange) { return exchange.getProperty(SERVICE_NAME_PROP, QName.class); } }
public void activate() { nmr.getEndpointRegistry().register(this, properties); }
public void deactivate() { nmr.getEndpointRegistry().unregister(this, properties); }
public void process(Exchange exchange) { if (exchange.getProperty(ServiceEndpoint.class) == null) { exchange.setProperty(ServiceEndpoint.class, this); } try { queue.offer(exchange, Long.MAX_VALUE, TimeUnit.NANOSECONDS); } catch (InterruptedException e) { throw new ServiceMixException(e); } }
public Reference lookup(Document xml) { return registry.lookup(xml); }
public NMRConduitOutputStream(Message m, NMR nmr, EndpointReferenceType target, NMRConduit conduit) { message = m; this.channel = nmr.createChannel(); this.conduit = conduit; this.target = target; }
public Map<String, ?> getProperties(Endpoint service) { return registry.getProperties(service); }
public WireRegistry getWireRegistry() { return nmr.getWireRegistry(); }
public void setContent(Source content) throws MessagingException { message.setBody(content); }
public Set<Endpoint> getServices() { return registry.getServices(); } }
public Subject getSecuritySubject() { return message.getSecuritySubject(); } }
public String toString() { return "Exchange failed: " + exchange.getId(); } }
public void setProperty(String s, Object o) { exchange.setProperty(s, o); }
public String getId() { return nmr.getId(); } }
public Exception getError() { return exchange.getError(); }
public ListenerRegistry getListenerRegistry() { return nmr.getListenerRegistry(); }
public Channel createChannel() { return nmr.createChannel(); }
public static QName getInterfaceName(Exchange exchange) { return exchange.getProperty(INTERFACE_NAME_PROP, QName.class); }
public void setService(QName service) { exchange.setProperty(SERVICE_NAME_PROP, service); }
public Object getProperty(String s) { return exchange.getProperty(s); }