OW2 Consortium joram

Rev

Rev 6542 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6542 Rev 6550
Line 357... Line 357...
357
  protected static void removeValidCC(ClientContext cc) {
357
  protected static void removeValidCC(ClientContext cc) {
358
    validCC.remove(new CCUID(cc.getProxyId(), cc.getId()));
358
    validCC.remove(new CCUID(cc.getProxyId(), cc.getId()));
359
  }
359
  }
360
  
360
  
361
  public static boolean isValidCC(AgentId ua, int ctxid) {
361
  public static boolean isValidCC(AgentId ua, int ctxid) {
362
    return validCC.contains(new CCUID(ua, ctxid));
-
 
-
 
362
    if ((ua != null) && ua.isLocal())
-
 
363
        return validCC.contains(new CCUID(ua, ctxid));
-
 
364
    // If the requested UserAgent is not local we consider the context as active.
-
 
365
    return true;
363
  }
366
  }
364

367

365
  /**
368
  /**
366
   * Table holding the <code>ClientSubscription</code> instances.
369
   * Table holding the <code>ClientSubscription</code> instances.
367
   * <p>
370
   * <p>