Examples of post()


Examples of com.dragontek.mygpoclient.http.HttpClient.POST()

  public boolean authenticate(String username, String password) {
    if (username != null && password != null) {
      HttpClient tempClient = new HttpClient(username, password);
      try {
        tempClient.POST(_locator.loginUri(), null);
        for (Cookie c : tempClient.getCookieStore().getCookies()) {
          if (c.getName().equals("sessionid"))
            ;
          _authToken = c.getValue().toString();
        }
View Full Code Here

Examples of com.ensifera.animosity.craftirc.RelayedMessage.post()

        } else {
            final CraftIRC craftirc = (CraftIRC) plugin;
            craftirc.registerEndPoint(this.exampletag, this);
            final RelayedMessage rm = craftirc.newMsg(this, null, "generic");
            rm.setField("message", "I'm aliiive!");
            rm.post();
        }
    }

    @Override
    public void onDisable() {
View Full Code Here

Examples of com.google.common.eventbus.AsyncEventBus.post()

    bind(EventBus.class).toInstance(eventBus);

    EventSink eventSink = new EventSink() {
      @Override
      public void post(PubsubEvent event) {
        eventBus.post(event);
      }
    };
    bind(EventSink.class).toInstance(eventSink);

    // Ensure at least an empty binding is present.
View Full Code Here

Examples of com.google.common.eventbus.EventBus.post()

    bind(EventBus.class).toInstance(eventBus);

    EventSink eventSink = new EventSink() {
      @Override
      public void post(PubsubEvent event) {
        eventBus.post(event);
      }
    };
    bind(EventSink.class).toInstance(eventSink);

    // Ensure at least an empty binding is present.
View Full Code Here

Examples of com.ibm.sbt.services.client.ClientService.post()

            params.put("root", "dropbox");
            rowId = URLDecoder.decode(rowId, "UTF-8");
            params.put("path", rowId);
            ClientService svc = createClientService(authBean, ExtLibUtil.concatPath(getDropBoxApiVersion(authBean), "fileops/delete", '/'));

            svc.post(getDropBoxApiVersion(authBean)+"/fileops/delete", params,null);

        } catch (ClientServicesException e) {
            throw new FacesExceptionEx(e, "Failed to delete file with ID \'{0}\'", rowId);
        } catch (UnsupportedEncodingException e) {
            throw new FacesExceptionEx(e, "Failed to delete file with ID \'{0}\'", rowId);
View Full Code Here

Examples of com.ibm.xsp.extlib.sbt.services.client.DropboxService.post()

            DropboxService svc = (DropboxService)createClientService(endpoint, ExtLibUtil.concatPath(getDropBoxApiVersion(endpoint), "fileops/create_folder", '/'));
            HashMap<String, String> params = new HashMap<String, String>();
            params.put("root", "dropbox");
            params.put("path", folderName);

            svc.post(getDropBoxApiVersion(endpoint)+"/fileops/create_folder", params,null);
           
        } catch (ClientServicesException e) {
            throw new FacesExceptionEx(e, "Failed to create folder named \'{0}\'", folderName);
        }
    }
View Full Code Here

Examples of com.ibm.xsp.extlib.sbt.services.client.SmartCloudService.post()

          try {
        is = new FileInputStream(serverFile);
        ContentStream contentFile = new ContentStream(is,serverFile.length(), name);
        SmartCloudService svc = new SmartCloudService(authBean);

        svc.post(SERVICE_URL, params, contentFile);
        
          } catch (ClientServicesException e) {
              e.printStackTrace();
          } catch (FileNotFoundException e) {
        // TODO Auto-generated catch block
View Full Code Here

Examples of com.jbidwatcher.util.http.ClientHttpRequest.post()

          form.delInput("upload");
          String url = form.getAction();
          ClientHttpRequest chr = new ClientHttpRequest(JConfig.getURL(url));
          chr.setParameters(form.getCGIMap());
          chr.setParameter("file", f);
          HttpURLConnection huc = chr.post();
          InputStream resp = http().getStream(huc);
          result = StringTools.cat(resp);
//          JConfig.log().logDebug(result);
          resp.close();
        }
View Full Code Here

Examples of com.jcabi.github.Comments.post()

     * @throws Exception If some problem inside
     */
    @Test
    public void iteratesComments() throws Exception {
        final Comments comments = this.comments();
        comments.post("hello, dude!");
        comments.post("hello again");
        MatcherAssert.assertThat(
            comments.iterate(),
            Matchers.<Comment>iterableWithSize(2)
        );
View Full Code Here

Examples of com.jcabi.github.PullComments.post()

     * @throws Exception If something goes wrong.
     */
    @Test
    public void fetchesPullComment() throws Exception {
        final PullComments comments = this.comments();
        final PullComment comment = comments.post("comment", "commit", "/", 1);
        MatcherAssert.assertThat(
            comments.get(comment.number()).number(),
            Matchers.equalTo(comment.number())
        );
    }
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.