示例#1
0
  @Override
  public void visitRemote(Remote remote) {
    String role = remote.getRole();
    String ip = remote.getIp();

    if (ip == null) {
      ip = remote.getId();

      if (ip.endsWith(":Caller") && role.endsWith("Caller")) {
        ip = ip.substring(0, ip.indexOf(":Caller"));
      }
    }
    String app = remote.getApp();

    if (projectContains(m_remoteProject, app, ip, role) || m_remoteIp.equals(ip)) {
      m_currentRole = role;
      super.visitRemote(remote);
    }
  }
示例#2
0
 @Override
 public void visitType(Type type) {
   m_currentType = type.getId();
   super.visitType(type);
 }
示例#3
0
 @Override
 public void visitLocal(Local local) {
   if (m_clientIp.equalsIgnoreCase("All") || m_clientIp.equalsIgnoreCase(local.getId())) {
     super.visitLocal(local);
   }
 }