Examples of post()


Examples of HTTPClient.HTTPConnection.Post()

      if (xmlRqst != null && xmlRqst.length() > MP_FORM_DATA_TRESHOLD)
      {
        // multipart form data (faster?)
        NVPair[] ct_hdr = new NVPair[1];
        byte[] data = Codecs.mpFormDataEncode(formData,null,ct_hdr);
        httpResponse = httpConnection.Post(url.getFile(),data,ct_hdr);
      }
      else
      {
        // urlencoded (slow?)
        httpResponse = httpConnection.Post(url.getFile(),formData);
View Full Code Here

Examples of appeng.core.api.IIMCHandler.post()

    {
      try
      {
        IIMCHandler handler = IMCHandlers.get( m.key );
        if ( handler != null )
          handler.post( m );
        else
          throw new RuntimeException( "Invalid IMC Called: " + m.key );
      }
      catch (Throwable t)
      {
View Full Code Here

Examples of br.com.maplink.util.XMLPoster.Post()

    String geocodeXML = t.Geocode(address);
    XMLPoster poster = new XMLPoster();
    try {
      poster.urlAddress = urlDecartaServer;
      poster.data = geocodeXML;
      httpResponse = poster.Post();
    } catch (Exception e) {
      System.out.println(e.getMessage());
      e.printStackTrace();
    }
    return httpResponse;
View Full Code Here

Examples of ch.ethz.inf.vs.californium.CoapClient.post()

    System.out.println(response.advanced().getType() + "-" + response.getCode());
    System.out.println(response.getResponseText());
   
    System.out.println("===============\nCC04");
    System.out.println("---------------\nPOST /test\n---------------");
    response = client.post("non-empty", MediaTypeRegistry.TEXT_PLAIN);
    System.out.println(response.advanced().getType() + "-" + response.getCode());
    System.out.println(response.getResponseText());
   
    client.useNONs();
   
View Full Code Here

Examples of com.atlauncher.evnt.LogEvent.post()

    public void run() {
        try {
            while (true) {
                LogEvent next = this.queue.take();
                if (next != null) {
                    next.post(this.writer);
                }
            }
        } catch (Exception ex) {
            ex.printStackTrace(System.err);
        }
View Full Code Here

Examples of com.createsend.util.JerseyClient.post()

      body = null;
    }
     
      // TODO: Use a custom error deserialiser in the following post

      OAuthTokenDetails result = oauthClient.post(
          Configuration.Current.getOAuthBaseUri(), OAuthTokenDetails.class, body,
          MediaType.APPLICATION_FORM_URLENCODED_TYPE, "token");
      return result;
    }
View Full Code Here

Examples of com.createsend.util.JerseyClientImpl.post()

      body = null;
    }
     
      // TODO: Use a custom error deserialiser in the following post

      OAuthTokenDetails result = oauthClient.post(
          Configuration.Current.getOAuthBaseUri(), OAuthTokenDetails.class, body,
          MediaType.APPLICATION_FORM_URLENCODED_TYPE, "token");
      return result;
    }
View Full Code Here

Examples of com.cumulocity.me.http.WebRequestBuilder.post()

    public ResourceRepresentation post(String path, CumulocityMediaType mediaType, ResourceRepresentation representation) {
        WebRequestBuilder builder = authorizedRequest(path).type(mediaType);
        if (platformParameters.isRequireResponseBody()) {
            builder.accept(mediaType);
        }
        return builder.post(representation, HttpConnection.HTTP_CREATED, representation.getClass());
    }

    public ResourceRepresentation put(String path, CumulocityMediaType mediaType, ResourceRepresentation representation) {
        WebRequestBuilder builder = authorizedRequest(path).type(mediaType);
        if (platformParameters.isRequireResponseBody()) {
View Full Code Here

Examples of com.davfx.ninio.common.Queue.post()

      }
    } else {
      a = address;
    }

    q.post(new Runnable() {
      @Override
      public void run() {
        ByteBufferAllocator allocator = new OnceByteBufferAllocator();
        Ready ready = readyFactory.create(q, allocator);
        ready.connect(a, new ReadyConnection() {
View Full Code Here

Examples of com.davfx.ninio.http.util.SimpleHttpClient.post()

        JsonObject r = request.getAsJsonObject();
        SimpleHttpClient c = new SimpleHttpClient().on(client);
        c.withMethod(HttpRequest.Method.valueOf(getString(r, "method", "GET").toUpperCase()));
        String post = getString(r, "post", null);
        if (post != null) {
          c.post(ByteBuffer.wrap(post.getBytes(Http.UTF8_CHARSET)));
        }
       
        String path = getString(r, "path", null);
        String host = getString(r, "host", "localhost");
        Integer port = getInt(r, "port", null);
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.