Package org.apache.tomcat

Examples of org.apache.tomcat.Interceptor


     */
    public void addInterceptor(Interceptor interceptor) {

  synchronized (interceptors) {
      interceptor.setContainer(container)// May throw IAE
      Interceptor temp[] = new Interceptor[interceptors.length + 1];
      for (int i = 0; i < interceptors.length; i++)
    temp[i] = interceptors[i];
      temp[interceptors.length] = interceptor;
      interceptors = temp;
  }
View Full Code Here


     * Return the set of Interceptors associated with this Valve.
     */
    public Interceptor[] findInterceptors() {

  synchronized (interceptors) {
      Interceptor results[] = new Interceptor[interceptors.length];
      for (int i = 0; i < interceptors.length; i++)
    results[i] = interceptors[i];
      return (results);
  }

View Full Code Here

  throws IOException, ServletException {

  // Acquire a private copy of the current Interceptor list
  // IMPLEMENTATION NOTE:  Not required if configuration can only
  // occur at startup time
  Interceptor list[] = findInterceptors();

  // Call the preService() method of all defined Interceptors
  boolean done = false;
  int last = -1;
  Throwable t = null;
View Full Code Here

     */
    public void removeInterceptor(Interceptor interceptor) {

  synchronized (interceptors) {
      boolean found = false;
      Interceptor temp[] = new Interceptor[interceptors.length - 1];
      for (int i = 0; i < interceptors.length; i++) {
    if (!found) {
        if (interceptors[i] == interceptor) {
      found = true;
      try {
View Full Code Here

TOP

Related Classes of org.apache.tomcat.Interceptor

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.