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

How to use
ResponseEvent
in
net.java.client.slee.resource.http.event

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

origin: org.mobicents.servers.jainslee.enablers/mobicents-slee-enabler-rest-client-sbb

public void onResponseEvent(ResponseEvent event,
    ActivityContextInterface aci) {
  // get local object
  RESTClientEnablerChildSbbLocalObject child = (RESTClientEnablerChildSbbLocalObject) this.sbbContext
      .getSbbLocalObject();
  // get parent
  RESTClientEnablerParent parent = (RESTClientEnablerParent) child
      .getParent();
  // build response
  RESTClientEnablerResponse response = new RESTClientEnablerResponse(
      (RESTClientEnablerRequest) event.getRequestApplicationData(),
      event.getHttpResponse(), event.getException());
  // pass it to parent
  parent.onResponse(child, response);
}
origin: org.mobicents.applications/charging-server-sbb

public void onResponseEvent(ResponseEvent event, ActivityContextInterface aci) {
  HttpResponse response = event.getHttpResponse();
  if (tracer.isInfoEnabled()) {
    tracer.info("[<<] Received HTTP Response. Status Code = " + response.getStatusLine().getStatusCode());
    if (tracer.isFineEnabled()) {
      try {
        tracer.fine("[<<] Received HTTP Response. Response Body = [" + EntityUtils.toString(response.getEntity()) + "]");
      }
      catch (Exception e) {
        tracer.severe("[xx] Failed reading response body", e);
      }
    }
  }
  // end http activity
  ((HttpClientActivity) aci.getActivity()).endActivity();
  // call back parent
  HashMap params = (HashMap) event.getRequestApplicationData();
  RatingInfo ratInfo = buildRatingInfo(response, params);
  final DiameterChargingServer parent = (DiameterChargingServer) sbbContext.getSbbLocalObject().getParent();
  parent.getRateForServiceResult(ratInfo);
}
origin: org.restcomm.camelgw/sbbs

public void onResponseEvent(net.java.client.slee.resource.http.event.ResponseEvent event,
    ActivityContextInterface aci) {
  HttpResponse response = event.getHttpResponse();
  HttpClientActivity httpClientActivity = ((HttpClientActivity) aci.getActivity());
origin: org.mobicents.servers.jainslee.enablers/restcomm-slee-enabler-rest-client-sbb

public void onResponseEvent(ResponseEvent event,
    ActivityContextInterface aci) {
  // get local object
  RESTClientEnablerChildSbbLocalObject child = (RESTClientEnablerChildSbbLocalObject) this.sbbContext
      .getSbbLocalObject();
  // get parent
  RESTClientEnablerParent parent = (RESTClientEnablerParent) child
      .getParent();
  // build response
  RESTClientEnablerResponse response = new RESTClientEnablerResponse(
      (RESTClientEnablerRequest) event.getRequestApplicationData(),
      event.getHttpResponse(), event.getException());
  // pass it to parent
  parent.onResponse(child, response);
}
net.java.client.slee.resource.http.eventResponseEvent

Javadoc

Service sending Request asynchronously will receive net.java.client.slee.resource.http.event.ResponseEvent as soon as the Resource Adaptor receives the Response and emits ResponseEvent.
ResponseEvent carries either the Response if everything went fine else Exception if there was any problem

Most used methods

  • getHttpResponse
    The response to the HTTP Request.
  • getRequestApplicationData
    The application data included in the HTTP Request.
  • getException
    The exception which occurred when sending the HTTP Request, if any.

Popular in Java

  • Updating database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • addToBackStack (FragmentTransaction)
  • getExternalFilesDir (Context)
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • ImageIO (javax.imageio)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Join (org.hibernate.mapping)
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top 12 Jupyter Notebook Extensions
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