congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
WsnSession.getCloseException
Code IndexAdd Tabnine to your IDE (free)

How to use
getCloseException
method
in
org.kaazing.gateway.transport.wsn.WsnSession

Best Java code snippets using org.kaazing.gateway.transport.wsn.WsnSession.getCloseException (Showing top 3 results out of 315)

origin: kaazing/gateway

@Override
protected void doSessionClosed(IoSessionEx session) throws Exception {
  WsnSession wsnSession = SESSION_KEY.remove(session);
  if (wsnSession != null && !wsnSession.isClosing()) {
    wsnSession.reset(new IOException(LoggingUtils.EARLY_TERMINATION_OF_IOSESSION_MESSAGE, wsnSession.getCloseException())
             .fillInStackTrace());
  }
}
origin: kaazing/gateway

Throwable cause = wsnSession == null ? null : wsnSession.getCloseException();
WsCloseMessage closeMessage;
if (cause != null) {
origin: kaazing/gateway

@Override
protected void doSessionClosed(IoSessionEx session) throws Exception {
  WsnSession wsnSession = SESSION_KEY.remove(session);
  if (wsnSession != null && !wsnSession.isClosing()) {
    boolean isWsx = !wsnSession.getLocalAddress().getOption(CODEC_REQUIRED);
    if (isWsx) {
      wsnSession.getProcessor().remove(wsnSession);
    } else {
      wsnSession.reset(
          new IOException(LoggingUtils.NETWORK_CONNECTIVITY_ERROR_MESSAGE,
              wsnSession.getCloseException()).fillInStackTrace());
    }
  }
  IoFilterChain filterChain = session.getFilterChain();
  removeBridgeFilters(filterChain);
}
org.kaazing.gateway.transport.wsnWsnSessiongetCloseException

Popular methods of WsnSession

  • close
  • getParent
  • isBalanceSupported
  • getBalanceeURIs
  • getBufferAllocator
  • getCloseFuture
  • getFilterChain
  • getHandler
  • getLocalAddress
  • getParentHttpRequestURI
  • getProcessor
  • getVersion
  • getProcessor,
  • getVersion,
  • isClosing,
  • reset,
  • setBalanceeURIs,
  • setCloseException,
  • setLoginContext,
  • startupScheduledCommands

Popular in Java

  • Creating JSON documents from java classes using gson
  • startActivity (Activity)
  • getExternalFilesDir (Context)
  • putExtra (Intent)
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top plugins for Android Studio
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