Examples of Head()


Examples of HTTPClient.HTTPConnection.Head()

  URI url = new URI(args[0]);

  DefaultAuthHandler.setAuthorizationPrompter(new MyAuthPrompter(pa_name, pa_pass));
  HTTPConnection con = new HTTPConnection(url);
  HTTPResponse   rsp = con.Head(url.getPathAndQuery());

  int sts = rsp.getStatusCode();
  if (sts < 300)
      System.out.println("No authorization required to access " + url);
  else if (sts >= 400  &&  sts != 401  &&  sts != 407)
View Full Code Here

Examples of com.bergerkiller.bukkit.tc.controller.MinecartGroup.head()

        station.waitTrain(Long.MAX_VALUE);
      }
    } else {
      //Launch
      group.getActions().clear();
      MinecartMember<?> head = group.head();

      if (station.hasDelay() || (head.isMoving() && !info.getMember().isDirectionTo(station.getInstruction()))) {
        //Reversing or has delay, need to center it in the middle first
        station.centerTrain();
      }
View Full Code Here

Examples of com.ebuddy.cassandra.Path.head()

    }

    @SuppressWarnings("unchecked")
    private void merge(Map.Entry<Path,Object> simpleEntry, Map<String,Object> compositionMap) {
        Path path = simpleEntry.getKey();
        String head = path.head();
        assert head != null;
        Object nextLevelComposition = compositionMap.get(head);
        Path tail = path.tail();
        Object simpleValue = simpleEntry.getValue();
        if (nextLevelComposition == null) {
View Full Code Here

Examples of com.gistlabs.mechanize.cache.api.CacheEntry.head()

  public HttpResponse executeHEAD(final HttpUriRequest request, final HttpContext context, final MechanizeFilter chain) {
    String uri = request.getURI().toString();
    CacheEntry previous = cache.get(uri);

    if (previous!=null && previous.isValid())
      return previous.head();

    if (previous!=null)
      previous.prepareConditionalGet(request);

    HttpResponse response = chain.execute(request, context); // call the chain
View Full Code Here

Examples of com.googlecode.totallylazy.regex.Matches.head()

    @Override
    public Result<String> parse(Segment<Character> characters) throws Exception {
        CharacterSequence sequence = charSequence(characters);
        Matches matches = regex.findMatches(sequence);
        if (matches.isEmpty()) return fail(regex, sequence);
        return success(matches.head().group(), sequence.remainder());
    }
}
View Full Code Here

Examples of com.opengamma.timeseries.date.localdate.LocalDateDoubleTimeSeries.head()

    if (start.isAfter(timeSeries.getLatestTime()) || end.isBefore(timeSeries.getEarliestTime())) {
      return new SimpleHistoricalTimeSeries(hts.getUniqueId(), ImmutableLocalDateDoubleTimeSeries.EMPTY_SERIES);
    }
    timeSeries = timeSeries.subSeries(start, true, end, true);
    if (((maxPoints != null) && (Math.abs(maxPoints) < timeSeries.size()))) {
      timeSeries = maxPoints >= 0 ? timeSeries.head(maxPoints) : timeSeries.tail(-maxPoints);
    }
    return new SimpleHistoricalTimeSeries(hts.getUniqueId(), timeSeries);
  }

  //-------------------------------------------------------------------------
View Full Code Here

Examples of com.sun.jersey.api.client.WebResource.head()

    public void testCreateCancelPurge() throws Exception {
        Client c = new Client();
        String url = "http://localhost:" + getJettyPort() + "/shop";

        WebResource wr = c.resource(url);
        ClientResponse response = wr.head();
        Map<String, Link> shoppingLinks = processLinkHeaders(response);

        Link customers = shoppingLinks.get("customers");
        System.out.println("** Create a customer through this URL: " + customers.getHref());

View Full Code Here

Examples of com.sun.tools.doclets.formats.html.HtmlDocletWriter.head()

      throws Exception {
    super.generateOtherFiles(rootDoc, classTree);
    HtmlDocletWriter writer = new HtmlDocletWriter(configuration, "jsdoc.html");

    writer.html();
    writer.head();
    writer.link("rel='stylesheet' type='text/css' href='jsdoc.css'");
    writer.headEnd();
    writer.body("white", true);

    writer.h1("Exported JavaScript-API: Index of Classes");
View Full Code Here

Examples of com.wolfram.jlink.Expr.head()

    int length = dimensions[0];
    /* If every element is a Rule, it's
     * a rule list */
    for (int i = 1; i <= length; i++) {
      Expr e = expr.part(i);
      if (!e.head().equals(RULE)) {
        return false;
      }
    }
    return true;
  }
View Full Code Here

Examples of erjang.ECons.head()

  private static void collectList(EObject list, ECons iol, OutputStream barr) throws IOException {
    EObject tail;
    ECons cons;
    for (tail=iol; (cons = tail.testNonEmptyList()) != null; tail = cons.tail()) {
      EObject hd = cons.head();

      ESmall sm;
      EBinary bi;
      ECons co;
      if ((sm = hd.testSmall()) != null) {
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.