Code example for URI

Methods: toString

0
  } 
 
  public static IProxyData[] selectProxy(URI uri) {
    LOG.debug("Searching proxy for uri [" + uri + "]");
 
    if ((null == uri) || ("".equals(uri.toString()))) {
      return new IProxyData[0]; 
    } 
 
    BundleContext context = plugin.getBundle().getBundleContext();
 
    ServiceReference proxyServiceReference = context.getServiceReference(IProxyService.class.getName());
    if (proxyServiceReference == null) {
      return new IProxyData[0]; 
    } 
 
    @SuppressWarnings("unchecked") 
    IProxyService service = (IProxyService) context.getService(proxyServiceReference);
    return service.select(uri);
  } 
} 
Experience pair programming with AI  Get Codota for Java