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

How to use
getBinding0
method
in
org.kaazing.gateway.transport.Bindings

Best Java code snippets using org.kaazing.gateway.transport.Bindings.getBinding0 (Showing top 12 results out of 315)

origin: kaazing/gateway

@Override
public Binding getBinding(ResourceAddress address) {
  return super.getBinding0(address);
}
origin: kaazing/gateway

public NextProtocolBinding getProtocolBinding(ResourceAddress bindAddress) {
  return super.getBinding0(bindAddress);
}
origin: org.kaazing/gateway.transport.wsr

@Override
public Binding getBinding(ResourceAddress address) {
  return super.getBinding0(address);
}
origin: kaazing/gateway

@Override
public Binding getBinding(ResourceAddress address) {
  NextProtocolBinding nextBinding = super.getBinding0(address);
  if (nextBinding != null) {
    return nextBinding.getBinding(address);
  }
  return null;
}
origin: org.kaazing/gateway.transport.wsr

@Override
public boolean removeBinding(ResourceAddress address, Binding binding) {
  WsrBinding wsrBinding = super.getBinding0(address);
  return wsrBinding != null && removeBinding0(address, wsrBinding);
}
origin: kaazing/gateway

@Override
public boolean removeBinding(ResourceAddress address, Binding binding) {
  WsnBinding wsnBinding = super.getBinding0(address);
  return wsnBinding != null && removeBinding0(address, wsnBinding);
}
origin: kaazing/gateway

@Override
public Binding getBinding(ResourceAddress address) {
  
  HttpBinding httpBinding = super.getBinding0(address);
  if (httpBinding != null) {
    URI location = address.getResource();
    String path = location.getPath();
    return httpBinding.get(path);
  }
  
  return null;
}
origin: kaazing/gateway

@Override
public final boolean removeBinding(ResourceAddress address, Binding oldBinding) {
  NextProtocolBinding nextBinding = super.getBinding0(address);
  if (nextBinding != null) {
    if (nextBinding.removeBinding(address, oldBinding) && nextBinding.getNextProtocolNames().size() == 0) {
      removeBinding1(address, nextBinding);
      return true;
    }
  }
  return false;
}
origin: kaazing/gateway

protected final boolean removeBinding0(ResourceAddress address, B binding) {
  B binding0 = getBinding0(address);
  if ( binding0 != null && binding.equals(binding0)) {  // we are going to remove, so decrement is OK
    if ( binding.decrementReferenceCount() == 0) {
      return bindings.remove(address, binding);
    }
  }
  return false;
}
origin: kaazing/gateway

@Override
public final Binding addBinding(Binding newBinding) {
  ResourceAddress bindAddress = newBinding.bindAddress();
  NextProtocolBinding nextBinding = super.getBinding0(bindAddress);
  if (nextBinding == null) {
    NextProtocolBinding newNextBinding = new NextProtocolBinding(bindAddress);
    nextBinding = addBinding1(newNextBinding);
    if (nextBinding == null) {
      nextBinding = newNextBinding;
    }
  }
  return nextBinding.addBinding(newBinding);
}
origin: kaazing/gateway

@Override
public boolean removeBinding(ResourceAddress address, Binding oldBinding) {
  HttpBinding httpBinding = super.getBinding0(address);
  if ( httpBinding != null ) {
    URI location = address.getResource();
    String path = location.getPath();
    if (httpBinding.remove(path, oldBinding)) {
      unbindAdditionalAddressesIfNecessary(address, httpBinding);
      if (httpBinding.isEmpty()) {
        return super.removeBinding0(address, httpBinding);
      }
    }
  }
  return false;
}
origin: kaazing/gateway

NextProtocolBinding sslBinding = bindings.getBinding0(sslAddress);
if (sslBinding == null) {
org.kaazing.gateway.transportBindingsgetBinding0

Popular methods of Bindings

  • getBinding
  • entrySet
  • addBinding0
  • addBinding
  • removeBinding
  • removeBinding0
  • equivalent
  • isEmpty

Popular in Java

  • Reactive rest calls using spring rest template
  • findViewById (Activity)
  • getContentResolver (Context)
  • setContentView (Activity)
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Top 15 Vim Plugins
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