Tabnine Logo
OperationContext.getGlobalErrorReceivingResponseEventHandler
Code IndexAdd Tabnine to your IDE (free)

How to use
getGlobalErrorReceivingResponseEventHandler
method
in
com.microsoft.azure.storage.OperationContext

Best Java code snippets using com.microsoft.azure.storage.OperationContext.getGlobalErrorReceivingResponseEventHandler (Showing top 4 results out of 315)

origin: com.microsoft.azure/azure-storage

/**
 * Fires events representing that an error occurred when receiving the response.
 */
private static void fireErrorReceivingResponseEvent(OperationContext opContext, HttpURLConnection request,
    RequestResult result) {
  if (opContext.getErrorReceivingResponseEventHandler().hasListeners()
      || OperationContext.getGlobalErrorReceivingResponseEventHandler().hasListeners()) {
    ErrorReceivingResponseEvent event = new ErrorReceivingResponseEvent(opContext, request, result);
    opContext.getErrorReceivingResponseEventHandler().fireEvent(event);
    OperationContext.getGlobalErrorReceivingResponseEventHandler().fireEvent(event);
  }
}
origin: Azure/azure-storage-android

/**
 * Fires events representing that an error occurred when receiving the response.
 */
private static void fireErrorReceivingResponseEvent(OperationContext opContext, HttpURLConnection request,
    RequestResult result) {
  if (opContext.getErrorReceivingResponseEventHandler().hasListeners()
      || OperationContext.getGlobalErrorReceivingResponseEventHandler().hasListeners()) {
    ErrorReceivingResponseEvent event = new ErrorReceivingResponseEvent(opContext, request, result);
    opContext.getErrorReceivingResponseEventHandler().fireEvent(event);
    OperationContext.getGlobalErrorReceivingResponseEventHandler().fireEvent(event);
  }
}
origin: Azure/azure-storage-android

OperationContext.getGlobalErrorReceivingResponseEventHandler().addListener(globalResponseReceivedListener);
OperationContext.getGlobalErrorReceivingResponseEventHandler().removeListener(globalResponseReceivedListener);
origin: Azure/azure-storage-android

OperationContext.getGlobalErrorReceivingResponseEventHandler().addListener(new StorageEvent<ErrorReceivingResponseEvent>() {
  @Override
  public void eventOccurred(ErrorReceivingResponseEvent eventArg) {
com.microsoft.azure.storageOperationContextgetGlobalErrorReceivingResponseEventHandler

Javadoc

Gets a global event multi-caster that is triggered when a network error occurs before the HTTP response status and headers are received. It allows event listeners to be dynamically added and removed.

Popular methods of OperationContext

  • <init>
    Creates an instance of the OperationContext class.
  • getSendingRequestEventHandler
    Gets an event multi-caster that is triggered before sending a request. It allows event listeners to
  • getResponseReceivedEventHandler
    Gets an event multi-caster that is triggered when a response is received. It allows event listeners
  • getErrorReceivingResponseEventHandler
    Gets an event multi-caster that is triggered when a network error occurs before the HTTP response st
  • getRequestResults
    Returns the set of request results that the current operation has created.
  • setUserHeaders
    Sets any additional headers for the request, for example, for proxy or logging information.
  • getClientRequestID
    Gets the client side trace ID.
  • getGlobalRequestCompletedEventHandler
    Gets a global event multi-caster that is triggered when a request is completed. It allows event list
  • getGlobalResponseReceivedEventHandler
    Gets a global event multi-caster that is triggered when a response is received. It allows event list
  • getGlobalRetryingEventHandler
    Gets a global event multi-caster that is triggered when a request is retried. It allows event listen
  • getGlobalSendingRequestEventHandler
    Gets a global event multi-caster that is triggered before sending a request. It allows event listene
  • getRequestCompletedEventHandler
    Gets an event multi-caster that is triggered when a request is completed. It allows event listeners
  • getGlobalSendingRequestEventHandler,
  • getRequestCompletedEventHandler,
  • getRetryingEventHandler,
  • setDefaultProxy,
  • setProxy,
  • appendRequestResult,
  • getDefaultProxy,
  • getLastResult,
  • getProxy

Popular in Java

  • Finding current android device location
  • onCreateOptionsMenu (Activity)
  • getResourceAsStream (ClassLoader)
  • onRequestPermissionsResult (Fragment)
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • JOptionPane (javax.swing)
  • Runner (org.openjdk.jmh.runner)
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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