コード例 #1
0
 public String getBackendAddress(String backend) {
   for (BackendsXml.Backend bb : backends) {
     if (bb.matches(backend)) {
       BackendService bs = BackendServiceFactory.getBackendService();
       return bs.getBackendAddress(backend);
     }
   }
   return null;
 }
コード例 #2
0
 public Map<String, Object> getAttributes() {
   if (isProduction() == false
       && attributes.containsKey(BackendService.DEVAPPSERVER_PORTMAPPING_KEY) == false) {
     Map<String, String> portMap = new HashMap<String, String>();
     for (BackendsXml.Backend bb : backends) {
       portMap.put(bb.getName(), getDefaultVersionHostname());
     }
     attributes.put(BackendService.DEVAPPSERVER_PORTMAPPING_KEY, portMap);
   }
   return attributes;
 }