Examples of GetRequest


Examples of org.apache.hadoop.hbase.hbql.statement.select.GetRequest

        else {
            // Use Get if no server filter is used
            if (withArgs.getServerExpressionTree() == null) {
                final Get get = new Get(lowerBytes);
                withArgs.setGetArgs(get, columnAttribs);
                return new GetRequest(get);
            }
            else {
                // TODO This is temporay until Get is fixed for Filters
                final Scan scan = new Scan();
View Full Code Here

Examples of org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetRequest

    RegionSpecifier regionSpecifier = regionSpecifierBuilder.build();
    getRequestBuilder.setRegion(regionSpecifier);
    Get.Builder getBuilder = Get.newBuilder();
    getBuilder.setRow(ByteString.copyFrom("somerow".getBytes()));
    getRequestBuilder.setGet(getBuilder.build());
    GetRequest getRequest = getRequestBuilder.build();
    RequestHeader header = headerBuilder.build();
    HRegion mockRegion = Mockito.mock(HRegion.class);
    HRegionServer mockRS = Mockito.mock(HRegionServer.class);
    HRegionInfo mockRegionInfo = Mockito.mock(HRegionInfo.class);
    Mockito.when(mockRS.getRegion((RegionSpecifier)Mockito.any())).thenReturn(mockRegion);
View Full Code Here

Examples of org.apache.muse.ws.resource.properties.get.impl.GetRequest

    }
   
    public Element[] getResourceProperty(QName qname)
        throws SoapFault
    {
        GetRequest get = new GetRequest(qname);
        Element response = invoke(WsrpConstants.GET_RESOURCE_PROPERTY_URI, get.toXML());
        return XmlUtils.getAllElements(response);
    }
View Full Code Here

Examples of org.dmd.dmp.server.extended.GetRequest

  @Override
  public GetResponseDMO get(GetRequestDMO getRequest) {
    // All requests are immediately wrapped for use on the server. This includes
    // associating the request with the originating HttpServletRequest.
    GetRequest  request = new GetRequest(getRequest, getThreadLocalRequest());
    GetResponse response = null;
   
    // If tracking is enabled dump a trace log
    if (request.isTrackingEnabled())
      logger.trace("Received by DMP servlet:\n" + request.toOIF());
   
    try {
      // Ensure that the session is valid - if it isn't, an error reponse
      // will be returned.
      response = (GetResponse) securityManager.validateSession(request);
      if (response == null){
        // All activity takes place against the session
        SessionRI session = securityManager.getSession(request);
        response = session.handleGetRequest(request);
       
//        response = request.getResponse();
//        response.setLastResponse(true);
      }
    } catch (DmcValueException e) {
      response = (GetResponse) request.getErrorResponse();
      response.setResponseText(e.toString());
      logger.error(e.toString());
    } catch (Exception ex){
      logger.error(DebugInfo.extractTheStack(ex));
      response = (GetResponse) request.getErrorResponse();
      response.setResponseText(DebugInfo.extractTheStack(ex));
    }
   
    logger.trace("Sending single response to original get request");
View Full Code Here

Examples of org.eclipse.ecf.internal.bulletinboard.commons.webapp.GetRequest

    return sessionId;
  }

  public List<IForum> getForums() {
    if (cachedForums.isEmpty()) {
      GetRequest request = new GetRequest(httpClient, url, "");
      try {
        request.execute();
        String resp = request.getResponseBodyAsString();
        request.releaseConnection();
        cachedForums = getParser().parseForums(resp);
        for (Forum forum : cachedForums.values()) {
          forum.setBulletinBoard(this);
        }
      } catch (IOException e) {
View Full Code Here

Examples of org.elasticsearch.action.get.GetRequest

     * @param index The index to get the JSON source from
     * @return The get request
     * @see org.elasticsearch.client.Client#get(org.elasticsearch.action.get.GetRequest)
     */
    public static GetRequest getRequest(String index) {
        return new GetRequest(index);
    }
View Full Code Here

Examples of org.hbase.async.GetRequest

      super(conf, options, status);
    }

    @Override
    void testRow(final int i) throws IOException {
      final GetRequest get = new GetRequest(tableName, getRandomRow(this.rand, this.totalRows));
      get.family(FAMILY_NAME).qualifier(QUALIFIER_NAME);

      client().get(get).addCallback(readCallback).addErrback(errback);
    }
View Full Code Here

Examples of org.xlightweb.GetRequest

   
    @Test
    public void testSSL() throws Exception {
    HttpClient httpClient = new HttpClient(SSLTestContextFactory.getSSLContext());
   
    IHttpResponse response = httpClient.call(new GetRequest("https://localhost:" + proxySslServer.getLocalPort() + "/test"));
    Assert.assertEquals(200, response.getStatus());
    Assert.assertEquals("isSecured=true", response.getBody().readString());
   
    httpClient.close();
  }
View Full Code Here

Examples of org.xlightweb.GetRequest

   
    @Test
    public void testPlain() throws Exception {
        HttpClient httpClient = new HttpClient(SSLTestContextFactory.getSSLContext());
       
        IHttpResponse response = httpClient.call(new GetRequest("http://localhost:" + proxyServer.getLocalPort() + "/test"));
        Assert.assertEquals(200, response.getStatus());
        Assert.assertEquals("isSecured=false", response.getBody().readString());
       
        httpClient.close();
    }
View Full Code Here

Examples of org.xlightweb.GetRequest

    server.start();
   
   
    HttpClient httpClient = new HttpClient();
   
    IHttpResponse response = httpClient.call(new GetRequest("http://localhost:" + server.getLocalPort() + "/site/" + testFile.getName()));
    Assert.assertEquals(200, response.getStatus());
    Assert.assertEquals("application/octet-stream", response.getContentType());
    Assert.assertTrue(response.hasBody());
   
    response = httpClient.call(new GetRequest("http://localhost:" + server.getLocalPort() + "/rpc/getCustomers"));
    Assert.assertEquals(200, response.getStatus());
    Assert.assertTrue(response.getContentType().startsWith("text/plain"));
    Assert.assertTrue(response.hasBody());
   
    httpClient.close();
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.