Examples of post()


Examples of com.knowgate.dfs.HttpRequest.post()

      oReq = new HttpRequest(sBaseUrl+"login.jsp", null, "post",
                   new NameValuePair[]{new NameValuePair("email", oUsr.getEmail()),
                                   new NameValuePair("passw", sUsrPwd),
                                   new NameValuePair("format", "session")});
      oReq.post();
      ArrayList<NameValuePair> aCookies = oReq.getCookies();

      NameValuePair[] aCachedPages = new NameValuePair[] {
        new NameValuePair("acctaxpayers", "ListTaxPayers.action"),
        new NameValuePair("accsuppliers", "ListClients.action"),
View Full Code Here

Examples of com.metamx.http.client.HttpClient.post()

  @Test
  public void testRun() throws Exception
  {
    HttpClient httpClient = EasyMock.createMock(HttpClient.class);
    RequestBuilder requestBuilder = new RequestBuilder(httpClient, HttpMethod.POST, new URL("http://foo.com"));
    EasyMock.expect(httpClient.post(EasyMock.<URL>anyObject())).andReturn(requestBuilder).atLeastOnce();

    SettableFuture futureException = SettableFuture.create();

    SettableFuture<InputStream> futureResult = SettableFuture.create();
    EasyMock.expect(httpClient.go(EasyMock.<Request>anyObject())).andReturn(futureResult).times(1);
View Full Code Here

Examples of com.myjavatools.web.ClientHttpRequest.post()

      chr.setParameter(SCREEN, screenInfo);     
      String blockInfo = Integer.toString(block.getWidth()) + "x" + Integer.toString(block.getHeight());
      chr.setParameter(BLOCK, blockInfo);
      chr.setParameter(EVENT, CaptureEvents.CAPTURE_START.getEvent());
      chr.setParameter(USE_SVC2, Boolean.toString(useSVC2));
      chr.post();
    } catch (IOException e) {
      e.printStackTrace();
      throw new ConnectionException("IOException while sending capture start event.");
    }
View Full Code Here

Examples of com.openshift.client.IHttpClient.post()

  public void shouldEncodeParametersCorrectly() throws HttpClientException, FileNotFoundException, IOException,
      OpenShiftException {
    // pre-conditions
    IHttpClient httpClient = new PayLoadReturningHttpClientFake(IHttpClient.MEDIATYPE_APPLICATION_JSON, "1.0");
    // operation
    String response = httpClient.post(serverFake.getUrl(),
        new FormUrlEncodedMediaType(),
        IHttpClient.NO_TIMEOUT,
        new StringParameter("adietish", "redhat"),
        new StringParameter("xcoulon", "redhat"));
View Full Code Here

Examples of com.openshift.client.fakes.PayLoadReturningHttpClientFake.post()

  public void shouldEncodeParametersCorrectly() throws HttpClientException, FileNotFoundException, IOException,
      OpenShiftException {
    // pre-conditions
    IHttpClient httpClient = new PayLoadReturningHttpClientFake(IHttpClient.MEDIATYPE_APPLICATION_JSON, "1.0");
    // operation
    String response = httpClient.post(serverFake.getUrl(),
        new FormUrlEncodedMediaType(),
        IHttpClient.NO_TIMEOUT,
        new StringParameter("adietish", "redhat"),
        new StringParameter("xcoulon", "redhat"));
View Full Code Here

Examples of com.rackspacecloud.blueflood.http.RouteMatcher.post()

            return;
        }
       
        RouteMatcher router = new RouteMatcher();
        router.get("/v1.0", new DefaultHandler());
        router.post("/v1.0/multitenant/experimental/metrics", new HttpMultitenantMetricsIngestionHandler(defaultProcessorChain, timeout));
        router.post("/v1.0/:tenantId/experimental/metrics", new HttpMetricsIngestionHandler(defaultProcessorChain, timeout));
        router.post("/v1.0/:tenantId/experimental/metrics/statsd", new HttpStatsDIngestionHandler(statsdProcessorChain, timeout));

        router.get("/v2.0", new DefaultHandler());
        router.post("/v2.0/:tenantId/ingest/multi", new HttpMultitenantMetricsIngestionHandler(defaultProcessorChain, timeout));
View Full Code Here

Examples of com.ramforth.webserver.http.templates.IWebTemplate.post()

                    case GET:
                    case HEAD:
                        template.get();
                        break;
                    case POST:
                        template.post();
                        break;
                }

                if (template instanceof WebFileTemplate) {
                    switch (httpContext.getRequest().getMethod()) {
View Full Code Here

Examples of com.rop.client.ClientRequest.post()

        Telephone telephone = new Telephone();
        telephone.setZoneCode("010");
        telephone.setTelephoneCode("12345678");
        cr2.addParam("telephone", telephone);

        response = cr2.post(CreateUserResponse.class, "user.add", "1.0");
        assertNotNull(response);
        assertTrue(response.isSuccessful());
        assertTrue(response.getSuccessResponse() instanceof CreateUserResponse);
    }
View Full Code Here

Examples of com.saasovation.collaboration.domain.model.forum.Discussion.post()

                            new DiscussionId(aDiscussionId));

        Author author =
                this.collaboratorService().authorFrom(new Tenant(aTenantId), anAuthorId);

        Post post = discussion.post(this.forumIdentityService(), author, aSubject, aBodyText);

        this.postRepository().save(post);

        aDiscussionCommandResult.resultingDiscussionId(aDiscussionId);
        aDiscussionCommandResult.resultingPostId(post.postId().id());
View Full Code Here

Examples of com.sonymobile.tools.gerrit.gerritevents.Handler.post()

            handler = api.getHandler();
        } catch (GerritTriggerException ex) {
            fail(ex.getMessage());
        }
        assertNotNull(handler);
        handler.post(Setup.createPatchsetCreated(gerritServerName));
        TestUtils.waitForBuilds(project, 1);

        FreeStyleBuild buildOne = project.getLastCompletedBuild();
        assertSame(Result.SUCCESS, buildOne.getResult());
        assertEquals(1, project.getLastCompletedBuild().getNumber());
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.