Package com.subgraph.vega.internal.http.proxy

Examples of com.subgraph.vega.internal.http.proxy.ProxyTransaction


    final HttpInterceptorLevel level = getInterceptLevel(direction);
    if (level != HttpInterceptorLevel.ENABLED_ALL) {
      if (level != HttpInterceptorLevel.DISABLED) {
        final IHttpConditionSet breakpointSet = getBreakpointSet(direction);
        for (int idx = 0; idx < transactionQueue.size(); idx++) {
          ProxyTransaction transaction = transactionQueue.get(idx);
          if (transaction.hasResponse() == (direction == TransactionDirection.DIRECTION_RESPONSE)) {
            if (interceptOnBreakpointSet(breakpointSet, transaction) == false) {
              transaction.doForward();
            }
          }
        }
      } else {
        for (int idx = 0; idx < transactionQueue.size(); idx++) {
          ProxyTransaction transaction = transactionQueue.get(idx);
          if (transaction.hasResponse() == (direction == TransactionDirection.DIRECTION_RESPONSE)) {
            transaction.doForward();
          }
        }
      }
    }
  }
View Full Code Here


  /**
   * Forward all pending transactions. Must be invoked with interceptorLock synchronized.
   */
  private void forwardAll() {
    for (int idx = 0; idx < transactionQueue.size(); idx++) {
      ProxyTransaction transaction = transactionQueue.get(idx);
      transaction.doDrop();
    }
  }
View Full Code Here

TOP

Related Classes of com.subgraph.vega.internal.http.proxy.ProxyTransaction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.