Examples of head()


Examples of org.jboss.resteasy.client.ClientRequest.head()

   @Test
   public void testPopulateDB() throws Exception
   {
      String url = "http://localhost:9095/shop";
      ClientRequest request = new ClientRequest("http://localhost:8080/ex11_1-war/shop");
      ClientResponse response = request.head();
      Map<String, Link> shoppingLinks = processLinkHeaders(response);

      System.out.println("** Populate Products");
      request = new ClientRequest(shoppingLinks.get("products").getHref());

View Full Code Here

Examples of org.jboss.resteasy.client.ClientRequest.head()

   @Test
   public void testCreateOrder() throws Exception
   {
      String url = "http://localhost:9095/shop";
      ClientRequest request = new ClientRequest("http://localhost:8080/ex11_1-war/shop");
      ClientResponse response = request.head();
      Map<String, Link> shoppingLinks = processLinkHeaders(response);

      System.out.println("** Buy an iPhone for Bill Burke");
      System.out.println();
      System.out.println("** First see if Bill Burke exists as a customer");
View Full Code Here

Examples of org.jboss.resteasy.client.ClientRequest.head()

   public void testCreateCancelPurge() throws Exception
   {
      //RegisterBuiltin.register(ResteasyProviderFactory.getInstance());
      String url = "http://localhost:9095/shop";
      ClientRequest request = new ClientRequest(url);
      ClientResponse response = request.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 org.jboss.resteasy.client.ClientRequest.head()

      response = request.get();
      System.out.println(response.getEntity(String.class));
      Map<String, Link> ordersLinks = processLinkHeaders(response);

      request = new ClientRequest(createdOrderUrl);
      response = request.head();
      Map<String, Link> orderLinks = processLinkHeaders(response);

      Link cancel = orderLinks.get("cancel");
      if (cancel != null)
      {
View Full Code Here

Examples of org.jitterbit.ui.selection.IndexedSelection.head()

    private EntityTestResult getSelectedTestResult() {
        IndexedSelection sel = (IndexedSelection) getSelection();
        if (sel.size() != 1) {
            return null;
        }
        Object head = sel.head();
        return (head instanceof EntityTestResult) ? (EntityTestResult) head : null;
    }

}
View Full Code Here

Examples of org.jitterbit.ui.selection.OrderedSelection.head()

        @Override
        public void selectionChanged(SelectionChangedEvent evt) {
            OrderedSelection selection = (OrderedSelection) evt.getSelection();
            SelectedTables tables = new SelectedTables();
            if (!selection.isEmpty()) {
                DatabaseObject table = (DatabaseObject) selection.head();
                tables.setTableUsage(table, 1);
            }
            model.setUsageCount(tables);
        }
    }
View Full Code Here

Examples of org.jsoup.nodes.Document.head()

  }
 
  @Override
  protected void loadPage() throws Exception {
    Document jsoup = Jsoup.parse(getInputStream(), getContentEncoding(response), getUri());
    setBaseUri(jsoup.head().baseUri());
    this.htmlElements = new HtmlElements(this, jsoup);
  }

  private void setBaseUri(final String baseUri) {
    if (! this.getUri().equals(baseUri))
View Full Code Here

Examples of org.jsoup.nodes.Document.head()

        DocumentType doctype = new DocumentType("html", "", "",
                document.baseUri());
        document.child(0).before(doctype);

        Element head = document.head();
        head.appendElement("meta").attr("http-equiv", "Content-Type")
                .attr("content", "text/html; charset=utf-8");

        /*
         * Enable Chrome Frame in all versions of IE if installed.
View Full Code Here

Examples of org.nlogo.nvm.CompilerResults.head()

          workspace.compiler().compileMoreCode
              (owner.source(), scala.Some.apply(owner.classDisplayName() + " '" + owner.displayName() + "'"),
                  workspace.world.program(), workspace.getProcedures(), workspace.getExtensionManager());

      if (!results.procedures().isEmpty()) {
        results.head().init(workspace);
        results.head().setOwner(owner);
        new org.nlogo.window.Events.CompiledEvent
            (owner, workspace.world.program(), results.head(), null).raise(this);
      }
    } catch (CompilerException error) {
View Full Code Here

Examples of org.opengis.util.GenericName.head()

        assertEquals(SI.METRE,           parameters[4].getUnit());
        assertTrue  (                    parameters[1].getAlias().isEmpty());

        final GenericName alias = parameters[0].getAlias().iterator().next();
        assertEquals("central_meridian",     alias.tip().toString());
        assertEquals("OGC",                  alias.head().toString());
        assertEquals("OGC:central_meridian", alias.toString());
    }
}
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.