Examples of push()


Examples of org.eclipse.jgit.blame.BlameGenerator.push()

        gen.setFollowFileRenames(followFileRenames.booleanValue());

      if (reverseEndCommits != null)
        gen.reverse(startCommit, reverseEndCommits);
      else if (startCommit != null)
        gen.push(null, startCommit);
      else {
        gen.push(null, repo.resolve(Constants.HEAD));
        if (!repo.isBare()) {
          DirCache dc = repo.readDirCache();
          int entry = dc.findEntry(path);

Examples of org.eclipse.jgit.transport.Transport.push()

    Transport t = Transport.open(db, remoteURI);
    ((TransportHttp) t).setUseSmartHttp(false);
    try {
      try {
        t.push(NullProgressMonitor.INSTANCE, push(src, Q));
        fail("push incorrectly completed against a smart server");
      } catch (NotSupportedException nse) {
        String exp = "smart HTTP push disabled";
        assertEquals(exp, nse.getMessage());
      }

Examples of org.exolab.castor.util.Stack.push()

                           
                        String elemQName = elemName;
                        if ((nsPrefix != null) && (nsPrefix.length() > 0)) {
                            elemQName = nsPrefix + ':' + elemName;
                        }
                        wrappers.push(new WrapperInfo(elemName, elemQName, currentLoc));
                       
                       
                        _attributes.clear();
                        if (nestedAttCount > 0) {
                            for (int na = 0; na < nestedAtts.length; na++) {

Examples of org.geotools.graph.util.IndexedStack.push()

    //create a map to maintain iterator state
    HashMap node2related = new HashMap();
   
    //create the stack and place start node on
    IndexedStack stack = new IndexedStack();
    stack.push(from);
   
    int iterations = 0;
O: while(!stack.isEmpty() && (iterations++ < m_maxitr)) {
      //peek the stack
      Node top = (Node)stack.peek();

Examples of org.gocha.text.IndentStackWriter.push()

            FileOutputStream fout = new FileOutputStream(target);
            OutputStreamWriter strW = new OutputStreamWriter(fout, cs);
            IndentStackWriter writer = new IndentStackWriter(strW);
           
            HashMap<String,String> t = new HashMap<String, String>();
            writer.push();
            for(Map.Entry<String,String> kv : props.entrySet()){
                t.put( "key", TextUtil.htmlEncode(kv.getKey()) );
                t.put( "value", TextUtil.htmlEncode(kv.getValue()) );
                writer.println(TextUtil.template(metaTmpl, t));
            }

Examples of org.grails.web.encoder.OutputEncodingStack.push()

            Map<String, Object> defaultEncodeAs = gspTagLibraryLookup.getEncodeAsForTag(namespace, tagName);
            Map<String, Object> codecSettings = createCodecSettings(namespace, tagName, attrs, defaultEncodeAs);

            OutputEncodingStackAttributes.Builder builder = WithCodecHelper.createOutputStackAttributesBuilder(codecSettings, webRequest.getAttributes().getGrailsApplication());
            builder.topWriter(tagOutput);
            outputStack.push(builder.build());

            Object tagLibProp = tagLib.getProperty(tagName); // retrieve tag lib and create wrapper writer
            if (tagLibProp instanceof Closure) {
                Closure tag = (Closure) ((Closure) tagLibProp).clone();
                Object bodyResult;

Examples of org.icepush.PushContext.push()

  public String firePushEventAction(HttpServletRequest request, HttpServletResponse response) {
    String dataSourceId = null;
    try {
      dataSourceId = request.getParameter("dataSourceId");
      PushContext pushContext = PushContext.getInstance(request.getSession().getServletContext());
      pushContext.push(dataSourceId);
      response.setStatus(HttpServletResponse.SC_OK);
    } catch (Exception e) {
      log.error("error while firing Push Event for dataSourceId: " + dataSourceId, e);
      response.setStatus(HttpServletResponse.SC_CONFLICT);
    }

Examples of org.ictclas4j.bean.Queue.push()

        for (SegNode seg : colSgs) {
          preNode = seg.getRow();
          weight = seg.getWeight();

          if (preNode == 0) {
            queWork.push(new QueueNode(preNode, 0, weight));

          } else {
            if (pathWeight[preNode][0] != Utility.INFINITE_VALUE)
              queWork.push(new QueueNode(preNode, 0, weight + pathWeight[preNode][0]));
          }

Examples of org.jakstab.solver.Solver.push()

        SignState post = new SignState(s);
        for (RTLVariable v : assumption.getUsedVariables()) {
          // Check if we can restrict this variable
          if (s.getValue(v).isTop()) {

            solver.push();
            RTLExpression f = ExpressionFactory.createLessOrEqual(v, ExpressionFactory.createNumber(0, v.getBitWidth()));
            solver.addAssertion(f);
            if (!solver.isSatisfiable()) {
              post.setValue(v, SignElement.POSITIVE);
              logger.debug("Restricting state from " + s + " through " + assumption + " to " + post);

Examples of org.jboss.aerogear.android.unifiedpush.Registrations.push()

   
    @Test
    public void testDefaultConfig() throws URISyntaxException {
        Registrations reg = new Registrations();
        PushConfig config = new PushConfig(new URI("http://testreg.com"), "TestID");
        reg.push(PUSH, config);
        PushRegistrar registrar = reg.get(PUSH);
        assertNotNull(registrar);
        assertTrue(registrar instanceof AeroGearGCMPushRegistrar);        
    }
   
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.