Пример #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;
 }
Пример #3
0
 // -------------------------------------------------------------------
 public static String getAddress() {
   return BackendServiceFactory.getBackendService().getBackendAddress(BACKEND_ID);
 }