Examples of header()


Examples of br.com.caelum.seleniumdsl.table.Table.header()

  @Test
  public void testTableHeaderLabel() {
    Table table = browser.currentPage()
        .table("table");
    // indexes start at 1
    Assert.assertEquals(table.header()
        .cell(1)
        .headerValue(), "First Column");
  }

  @Test
View Full Code Here

Examples of com.facebook.presto.jdbc.internal.jetty.client.HttpRequest.header()

        jettyRequest.getHeaders().remove(HttpHeader.USER_AGENT);

        jettyRequest.method(finalRequest.getMethod());

        for (Entry<String, String> entry : finalRequest.getHeaders().entries()) {
            jettyRequest.header(entry.getKey(), entry.getValue());
        }

        BodyGenerator bodyGenerator = finalRequest.getBodyGenerator();
        if (bodyGenerator != null) {
            if (bodyGenerator instanceof StaticBodyGenerator) {
View Full Code Here

Examples of com.facebook.presto.jdbc.internal.jetty.client.api.Request.header()

            // Remove authorization headers
            if (HttpHeader.AUTHORIZATION == header.getHeader() ||
                    HttpHeader.PROXY_AUTHORIZATION == header.getHeader())
                continue;

            newRequest.header(header.getName(), header.getValue());
        }
        return newRequest;
    }

    protected HttpRequest newHttpRequest(HttpConversation conversation, URI uri)
View Full Code Here

Examples of com.github.kevinsawicki.http.HttpRequest.header()

      vHttpRequest = new HttpRequest(pBankRequest.generateUri(), pMethod);
    }
    vHttpRequest.userAgent(USER_AGENT);
    modifyRequest(pBankRequest);
    for (Entry<String, String> header : pBankRequest.getHeaders().entrySet()) {
      vHttpRequest.header(header.getKey(), header.getValue());
    }
    return vHttpRequest;
  }

  @Override
View Full Code Here

Examples of com.google.appengine.api.taskqueue.TaskOptions.header()

    t.param("run_as_a_service", Boolean.TRUE.toString());
   
    t.param("queue", queueName);
   
    t.method(Method.GET);
    t.header("Host", BackendServiceFactory.getBackendService().getBackendAddress(AH_BUILTIN_PYTHON_BUNDLE));
   
    return t;
  }
}
View Full Code Here

Examples of com.google.gwt.user.cellview.client.AbstractCellTable.Style.header()

    Column<?, ?> sortedColumn = (sortedInfo == null) ? null : sortedInfo.getColumn();
    boolean isSortAscending = (sortedInfo == null) ? false : sortedInfo.isAscending();

    // Get the common style names.
    Style style = getTable().getResources().style();
    String className = isBuildingFooter() ? style.footer() : style.header();
    String sortableStyle = " " + style.sortableHeader();
    String sortedStyle =
        " " + (isSortAscending ? style.sortedHeaderAscending() : style.sortedHeaderDescending());

    // Setup the first column.
View Full Code Here

Examples of com.google.sitebricks.headless.Request.header()

  @Override
  public boolean isMootoolsAjax() {
    // http://davidwalsh.name/mootools-history
    Request request = requestProvider.get();
    String header = request.header("X-Requested-With");

    return header != null && header.toLowerCase().equals("xmlhttprequest");
  }

}
View Full Code Here

Examples of com.jayway.restassured.response.Response.header()

            .when()
                .post("/group");

        // Determine location from response
        // and compare id with the found group below
        String location = created.header("Location");
        int createdId = Integer.parseInt(location.substring(location.lastIndexOf("/")+1));

        // Search for it
        Response response =
        given()
View Full Code Here

Examples of com.joshondesign.xml.XMLWriter.header()

        }
        private void saveSymbols() throws FileNotFoundException, UnsupportedEncodingException {
            u.p("persisting symbol set to: " + asset.getFile().getName());
            XMLWriter out = new XMLWriter(new PrintWriter(new OutputStreamWriter(new FileOutputStream(asset.getFile()), "UTF-8")),
                    asset.getFile().toURI());
            out.header();
            out.start("sketchy","version","-1");
            ExportProcessor.processFragment(new NativeExport(), out, getSymbols());
            out.end();
            out.close();
        }
View Full Code Here

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

        WebResource resource = service.path(entities.path)
                .path(entityType).path(entityName);
        if (colo != null) {
            resource = resource.queryParam("colo", colo);
        }
        ClientResponse clientResponse = resource.header(REMOTE_USER, USER)
                .accept(entities.mimeType).type(MediaType.TEXT_XML)
                .method(entities.method, ClientResponse.class);

        checkIfSuccessfull(clientResponse);
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.