Ejemplo n.º 1
0
 // -------------------------------------------------------------------
 public static boolean isBackendHost(String host) {
   BackendService bs = BackendServiceFactory.getBackendService();
   try {
     return bs.getBackendAddress(BACKEND_ID).equals(host);
   } catch (Exception ex) {
   }
   return false;
 }
 public String getBackendAddress(String backend) {
   for (BackendsXml.Backend bb : backends) {
     if (bb.matches(backend)) {
       BackendService bs = BackendServiceFactory.getBackendService();
       return bs.getBackendAddress(backend);
     }
   }
   return null;
 }