Package java.util

Examples of java.util.Stack.pop()


    private void afterDispatch(GeronimoStandardContext webContext, ServletRequest request, ServletResponse response) {

        BeforeAfter beforeAfter = webContext.getBeforeAfter();
        if (beforeAfter != null) {
            Stack stack = (Stack) currentContext.get();
            Object context[] = (Object[]) stack.pop();

            beforeAfter.after(context, request, response);

            TomcatGeronimoRealm.setRequestWrapperName((String) context[webContext.getContextCount()]);
        }
View Full Code Here


  // Prefixes "xml" and "xmlns" cannot be redefined
  if (prefix.equals(XML_PREFIX)) return;

  Stack stack;
  if ((stack = (Stack)_namespaces.get(prefix)) != null) {
      stack.pop();
      _saxHandler.endPrefixMapping(prefix);
  }
    }

    /**
 
View Full Code Here

    public void removeVariable(QName name) {
  Object existing = _variableScope.get(name);
  if (existing instanceof Stack) {
      Stack stack = (Stack)existing;
      if (!stack.isEmpty()) stack.pop();
      if (!stack.isEmpty()) return;
  }
  _variableScope.remove(name);
    }
View Full Code Here

      return false;
  }

  Stack stack;
  if ((stack = (Stack)_namespaces.get(prefix)) != null) {
      stack.pop();
      return true;
  }
  return false;
    }
View Full Code Here

        while (parent != null) {
            stk.push(parent.getName());
            parent = parent.getParent();
        }
        while (!stk.empty()) {
            buff.append("/" + stk.pop());
        }
        buff.append(getName());
        namingContextName = buff.toString();
        }
    }
View Full Code Here

          indoubt = new Xid[values.size()];
               
          while (!values.empty())
          {
            TransactionImple id = (TransactionImple) values.pop();

            indoubt[index] = id.baseXid();

            index++;
          }
View Full Code Here

          indoubt = new Xid[values.size()];
               
          while (!values.empty())
          {
            com.arjuna.ats.internal.jta.transaction.arjunacore.subordinate.jca.TransactionImple tx = (com.arjuna.ats.internal.jta.transaction.arjunacore.subordinate.jca.TransactionImple) values.pop();
           
            indoubt[index] = tx.baseXid();
            index++;
          }
        }
View Full Code Here

                directories.push( dir );
            }

            while ( !directories.isEmpty() )
            {
                String dir = (String) directories.pop();
                File f;
                if ( baseDir != null )
                {
                    f = new File( baseDir, dir );
                }
View Full Code Here

        while (parent != null) {
            stk.push(parent.getName());
            parent = parent.getParent();
        }
        while (!stk.empty()) {
            buff.append("/" + stk.pop());
        }
        buff.append(getName());
        namingContextName = buff.toString();
        }
    }
View Full Code Here

        contextStack.push( and );
        processElement( resolver,
                        contextStack,
                        and );
        contextStack.pop();
    }

    /**
     * recurse through the rule condition elements updating the declaration objecs
     * @param resolver
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.