congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
HttpClientActivity.execute
Code IndexAdd Tabnine to your IDE (free)

How to use
execute
method
in
net.java.client.slee.resource.http.HttpClientActivity

Best Java code snippets using net.java.client.slee.resource.http.HttpClientActivity.execute (Showing top 4 results out of 315)

origin: org.mobicents.applications/charging-server-sbb

public RatingInfo getRateForServiceAsync(HashMap params) {
  String sessionIdFromRequest = params.get("SessionId").toString();
  HttpClientActivity clientActivity = null;
  try {
    clientActivity = raSbbInterface.createHttpClientActivity(true, null);
  } catch (StartActivityException e) {
    tracer.severe("[xx] Failed creating HTTP Client Activity to send HTTP Request to Rating Engine.");
    return new RatingInfo(-1, sessionIdFromRequest);
  }
  ActivityContextInterface clientAci = httpClientAci.getActivityContextInterface(clientActivity);
  clientAci.attach(sbbContext.getSbbLocalObject());
  params.put("startTime", System.currentTimeMillis());
  HttpPost httpPost = buildHTTPRequest(params);
  // Asynchronous call
  clientActivity.execute(httpPost, params);
  tracer.info("[>>] Sent HTTP Request to Rating Client in asynchronous mode.");
  return null;
}
origin: org.mobicents.servers.jainslee.enablers/mobicents-slee-enabler-rest-client-sbb

activity.execute(httpRequest, request);
origin: org.mobicents.servers.jainslee.enablers/restcomm-slee-enabler-rest-client-sbb

activity.execute(httpRequest, request);
origin: org.restcomm.camelgw/sbbs

/**
 * Private methods
 */
private void sendXmlPayload(byte[] data) throws Exception {
  HttpClientActivity httpClientActivity = this.getHTTPClientActivity();
  if (httpClientActivity == null) {
    httpClientActivity = this.httpClientProvider.createHttpClientActivity(false, null);
    this.httpClientActivityContextInterfaceFactory.getActivityContextInterface(httpClientActivity).attach(
        this.sbbContext.getSbbLocalObject());
  }
  this.httpClientActivityContextInterfaceFactory.getActivityContextInterface(httpClientActivity).attach(
      this.sbbContext.getSbbLocalObject());
  String route = this.getNetworkRoutingRule().getRuleUrl();
  HttpPost uriRequest = createRequest(route, null, ACCEPTED_CONTENT_TYPE, null);
  // NOTE: here we assume that its text/xml utf8 encoded... bum.
  pushContent(uriRequest, ACCEPTED_CONTENT_TYPE, CONTENT_ENCODING, data);
  if (logger.isFineEnabled()) {
    logger.fine("Executing HttpPost=" + uriRequest + "\n" + new String(data));
  }
  httpClientActivity.execute(uriRequest, null);
}
net.java.client.slee.resource.httpHttpClientActivityexecute

Popular methods of HttpClientActivity

  • endActivity

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getContentResolver (Context)
  • setScale (BigDecimal)
  • getExternalFilesDir (Context)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • Socket (java.net)
    Provides a client-side TCP socket.
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • 21 Best Atom Packages for 2021
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now