Examples of Valve


Examples of org.apache.tomcat.Valve

    (sm.getString("containerBase.notStarted"));
  started = false;
  fireLifecycleEvent(STOP_EVENT, null);

  // Stop the Valves in our pipeline (including the basic), if any
  Valve current = basic;
  if (current == null)
      current = getLast();
  while (current != null) {
      if (current instanceof Lifecycle)
    ((Lifecycle) current).stop();
      current = current.getPrevious();
  }

  // Stop our subordinate components, if any
  if ((resources != null) && (resources instanceof Lifecycle))
      ((Lifecycle) resources).stop();
View Full Code Here

Examples of org.apache.tomcat.Valve

  valve.setContainer((Container) this);
  valve.setNext(basic);

  if (basic == null) {
      Valve last = getLast();
      if (last == null) {
    valve.setPrevious(null);
    first = valve;
      } else {
    valve.setPrevious(last);
    last.setNext(valve);
      }
  } else {
      Valve previous = basic.getPrevious();
      if (previous == null) {
    valve.setPrevious(null);
    first = valve;
      } else {
    valve.setPrevious(previous);
    previous.setNext(valve);
      }
  }

  fireContainerEvent(ADD_VALVE_EVENT, valve);
View Full Code Here

Examples of org.apache.tomcat.Valve

  // FIXME - Synchronize as necessary
  // FIXME - Call valve.stop() if Lifecycle implemented and
  // this Container is already started

  Valve current = first;
  while (current != null) {
      if (current != valve) {
    current = current.getNext();
    continue;
      }
      Valve previous = current.getPrevious();
      Valve next = current.getNext();
      if (previous == null) {
    if (next == null) {
        first = null;
    } else {
        next.setPrevious(null);
        first = next;
    }
      } else {
    previous.setNext(next);
    if (next != null)
        next.setPrevious(previous);
      }
      fireContainerEvent(REMOVE_VALVE_EVENT, valve);
      break;
  }
View Full Code Here

Examples of org.gatein.common.concurrent.Valve

         throw new IllegalArgumentException("No null info is accepted");
      }

      //
      this.info = info;
      this.valve = new Valve();
      this.log = Logger.getLogger("org.gatein.pc.container." + info.getClassName().replace('.', '_'));
      this.started = false;
      this.filters = new HashSet<PortletFilterImpl>();
   }
View Full Code Here

Examples of org.glassfish.web.deployment.runtime.Valve

     * @return the descriptor instance to associate with this XMLNode
     */
    @Override
    public Valve getDescriptor() {
        if (descriptor==null) {
            descriptor = new Valve();
        }
        return descriptor;
    }
View Full Code Here

Examples of org.jboss.portal.common.concurrent.Valve

         throw new IllegalArgumentException("No null info is accepted");
      }

      //
      this.info = info;
      this.valve = new Valve();
      this.log = Logger.getLogger("org.jboss.portal.portlet.container." + info.getClassName().replace('.', '_'));
      this.started = false;
      this.filters = new HashSet<PortletFilterImpl>();
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.