public Document getServiceDescription(ServiceEndpoint endpoint) { logger.debug("Querying service description for {}", endpoint); String key = EndpointSupport.getKey(endpoint); Endpoint ep = this.registry.getEndpoint(key); if (ep != null) { Document doc = ep.getDescription(); if (doc == null) { logger.debug("No description found for {}", key); } return doc; } else { logger.debug("No endpoint found for {}", key); return null; } }
public Document getServiceDescription(ServiceEndpoint endpoint) { logger.debug("Querying service description for {}", endpoint); String key = EndpointSupport.getKey(endpoint); Endpoint ep = this.registry.getEndpoint(key); if (ep != null) { Document doc = ep.getDescription(); if (doc == null) { logger.debug("No description found for {}", key); } return doc; } else { logger.debug("No endpoint found for {}", key); return null; } }
public boolean isExchangeWithConsumerOkay(ServiceEndpoint endpoint, MessageExchange exchange) { String key = EndpointSupport.getKey(endpoint); Endpoint ep = this.registry.getEndpoint(key); if (ep != null) { if (ep.getRole() != Role.PROVIDER) { logger.debug("Endpoint {} is a consumer. Refusing exchange with consumer.", key); return false; } else { return ep.isExchangeOkay(exchange); } } else { logger.debug("No endpoint found for {}. Refusing exchange with consumer.", key); return false; } }
public boolean isExchangeWithConsumerOkay(ServiceEndpoint endpoint, MessageExchange exchange) { String key = EndpointSupport.getKey(endpoint); Endpoint ep = this.registry.getEndpoint(key); if (ep != null) { if (ep.getRole() != MessageExchange.Role.PROVIDER) { logger.debug("Endpoint {} is a consumer. Refusing exchange with consumer.", key); return false; } else { return ep.isExchangeOkay(exchange); } } else { logger.debug("No endpoint found for {}. Refusing exchange with consumer.", key); return false; } }
ServiceEndpoint endpoint = exchange.getEndpoint(); String key = EndpointSupport.getKey(exchange.getEndpoint()); Endpoint ep = this.component.getRegistry().getEndpoint(key); if (ep == null) { if (endpoint.getServiceName().equals(getEPRServiceName())) { if (exchange.getProperty(JbiConstants.SENDER_ENDPOINT) != null) { String key = exchange.getProperty(JbiConstants.SENDER_ENDPOINT).toString(); ep = this.component.getRegistry().getEndpoint(key);