Examples of fetch()


Examples of com.github.timurstrekalov.saga.core.testfetcher.TestFetcher.fetch()

        return config;
    }

    private List<URI> fetchTests(final URI baseDir) throws IOException {
        final TestFetcher fetcher = TestFetcherFactory.newInstance(baseDir);
        final List<URI> tests = fetcher.fetch(baseDir, config.getIncludes(), config.getExcludes());

        logger.info("{} tests found", tests.size());

        return tests;
    }
View Full Code Here

Examples of com.google.appengine.api.log.LogService.fetch()

    List<Version> appVersions = exporterSet.applicationVersionsToExport();
    if (appVersions != null && appVersions.size() > 0) {
      lq = lq.versions(appVersions);
    }

    Iterable<RequestLogs> logs = ls.fetch(lq);
    return logs;
  }
}
View Full Code Here

Examples of com.google.appengine.api.urlfetch.URLFetchService.fetch()

    URLFetchService ufs = URLFetchServiceFactory.getURLFetchService();
    HTTPRequest req = new HTTPRequest(url, HTTPMethod.POST);
    req.setPayload(getwork.toString().getBytes());
    req.addHeader(new HTTPHeader("Authorization", config.getAuth()));

    HTTPResponse resp = ufs.fetch(req);
    String content = new String(resp.getContent());
    if (resp.getResponseCode() != 200) {
      throw new IOException( //
          "fetchWork Error: " + resp.getResponseCode() + " "
              + content);
View Full Code Here

Examples of com.google.caja.plugin.UriFetcher.fetch()

      UriFetcher fetcher = makeFetcher(uri, container);
      ExternalReference extRef = new ExternalReference(javaUri,
          FilePosition.instance(is, /*lineNo*/ 1, /*charInFile*/ 1, /*charInLine*/ 1));
      // If the fetch fails, a UriFetchException is thrown and serialized as part of the
      // message queue.
      CharProducer cp = fetcher.fetch(extRef, mime).getTextualContent();
      ParseTreeNode ptn = parse(is, cp, mime, mq);
      return rewrite(uri, container, ptn, es53, debug);
    } catch (UnsupportedEncodingException e) {
      LOG.severe("Unexpected inability to recognize mime type: " + mime);
      mq.addMessage(ServiceMessageType.UNEXPECTED_INPUT_MIME_TYPE,
View Full Code Here

Examples of com.google.wave.extensions.tweety.controller.FetchController.fetch()

        new TimelineController(twitterService, wavelet.getRootBlip(),
            twitterWave, robotMessageBundle.getEvents());

    try {
      // Fetch new tweets from Twitter.
      List<Tweet> newTweets = controller.fetch();
      appendTweets(wavelet, newTweets);

      // Update the latest tweet id, and purge the cache.
      WaveSubmittedTweetsCache cache = new WaveSubmittedTweetsCache();
      if (!newTweets.isEmpty()) {
View Full Code Here

Examples of com.infochimps.vayacondios.ItemSets.fetch()

    }

    StringBuilder builder = new StringBuilder();

    List<Item> items = null;
    try { items = org.fetch(topic, id); }
    catch (IOException ex) {
      LOG.warn("error loading " + topic + "." + id + " from vayacondios:", ex);
      return;
    }
View Full Code Here

Examples of com.mongodb.DBRef.fetch()

    DBObject mapValDBObject = new BasicDBObject();
    mapValDBObject.put("_id", BigInteger.ONE);

    DBRef dbRef = mock(DBRef.class);
    when(dbRef.fetch()).thenReturn(mapValDBObject);

    ((DBObject) dbObject.get("map")).put("test", dbRef);

    MapDBRef read = converter.read(MapDBRef.class, dbObject);
View Full Code Here

Examples of com.persistit.Exchange.fetch()

        private String getValueTypeString() {
            try {
                final Exchange ex = setupExchange();
                if (ex.getKey().getEncodedSize() == 0)
                    return "";
                ex.fetch();
                final Value value = ex.getValue();
                if (!value.isDefined())
                    return "undefined";
                return value.getType().getName();
            } catch (final PersistitException de) {
View Full Code Here

Examples of com.projity.pm.graphic.model.cache.GraphicNode.fetch()

              if (model.getCellProperties(node).isCompositeIcon()) {
                finishCurrentOperations();
                selection.getRowSelection().clearSelection();
                boolean change = true;
                if (!node.isFetched()) // for subprojects
                  change = node.fetch();
                if (change)
                  model.changeCollapsedState(row);
                e.consume(); // prevent dbl click treatment below

                // because editor may have already been
View Full Code Here

Examples of com.s3auth.hosts.Host.fetch()

            host,
            Matchers.hasToString(Matchers.equalTo("localhost"))
        );
        MatcherAssert.assertThat(
            ResourceMocker.toString(
                host.fetch(URI.create("/"), Range.ENTIRE, Version.LATEST)
            ),
            Matchers.notNullValue()
        );
    }
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.