Codota Logo
OnWebSocketClose
Code IndexAdd Codota to your IDE (free)

How to use
OnWebSocketClose
in
org.eclipse.jetty.websocket.api.annotations

Best Java code snippets using org.eclipse.jetty.websocket.api.annotations.OnWebSocketClose (Showing top 20 results out of 369)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: spring-projects/spring-framework

@OnWebSocketClose
public void onWebSocketClose(int statusCode, String reason) {
  CloseStatus closeStatus = new CloseStatus(statusCode, reason);
  try {
    this.webSocketHandler.afterConnectionClosed(this.wsSession, closeStatus);
  }
  catch (Throwable ex) {
    if (logger.isWarnEnabled()) {
      logger.warn("Unhandled exception after connection closed for " + this, ex);
    }
  }
}
origin: gocd/gocd

@OnWebSocketClose
public void onClose(int closeCode, String closeReason) {
  LOG.debug("{} closed. code: {}, reason: {}", webSocketSessionHandler.getSessionName(), closeCode, closeReason);
}
origin: gocd/gocd

@OnWebSocketClose
public void onClose(int status, String reason) {
  socketHealthService.deregister(this);
}
origin: spring-projects/spring-framework

@OnWebSocketClose
public void onWebSocketClose(int statusCode, String reason) {
  if (this.delegateSession != null) {
    this.delegateSession.handleClose(new CloseStatus(statusCode, reason));
  }
}
origin: igniterealtime/Openfire

@OnWebSocketClose
public void onClose(int statusCode, String reason)
{
  closeSession();
}
origin: jphp-group/jphp

@OnWebSocketClose
public void onClose(Session session, int statusCode, String reason) {
  if (param.onClose != null) {
    param.onClose.callAny(session, statusCode, reason);
  }
}
origin: konsoletyper/teavm

@OnWebSocketClose
public void close(int code, String reason) {
  closed = true;
  if (!target.closed) {
    target.closed = true;
    session.close(code, reason);
  }
}
origin: konsoletyper/teavm

@OnWebSocketClose
public void close(Session session, int code, String reason) {
  ProgressHandlerImpl handler = progressHandlerMap.remove(session);
  servlet.removeProgressHandler(handler);
}
origin: gocd/gocd

@OnWebSocketClose
public void onClose(int closeCode, String closeReason) {
  LOGGER.debug("{} closed. code: {}, reason: {}", sessionName(), closeCode, closeReason);
  handler.remove(this);
}
origin: andsel/moquette

@OnWebSocketClose
public void onClose(int statusCode, String reason) {
  System.out.printf("Connection closed: %d - %s%n", statusCode, reason);
}
origin: opensourceBIM/BIMserver

@OnWebSocketClose
public void onClose(int statusCode, String reason) {
  this.session = null;
}
origin: jamesagnew/hapi-fhir

@OnWebSocketClose
public void onClose(int statusCode, String reason) {
  ourLog.info("Received CLOSE status={} reason={}", statusCode, reason);
}
origin: biezhi/java-library-examples

@OnWebSocketClose
public void onClose(int closeCode, String closeReasonPhrase) {
  this.session = null;
}
origin: io.mindmaps/mindmaps-graql-shell

@OnWebSocketClose
public void onClose(int statusCode, String reason) throws IOException, ExecutionException, InterruptedException {
  // 1000 = Normal close, 1001 = Going away
  if (statusCode != 1000 && statusCode != 1001) {
    System.err.println("Websocket closed, code: " + statusCode + ", reason: " + reason);
  }
}
origin: apache/karaf

@OnWebSocketClose
public void onClose(Session session, int statusCode, String reason) {
  sessions.remove(session);
}
origin: org.apache.karaf.examples/karaf-websocket-example

@OnWebSocketClose
public void onClose(Session session, int statusCode, String reason) {
  sessions.remove(session);
}
origin: dremio/dremio-oss

@OnWebSocketClose
public void onClose(Session session, int statusCode, String reason) {
 logger.debug("Socket closed with code {}", statusCode);
 sockets.remove(socketId);
}
origin: Fanping/iveely.search

@OnWebSocketClose
public void onClose(int statusCode, String reason) {
 System.out.printf("Connection closed: %d - %s%n", statusCode, reason);
 this.session = null;
 this.closeLatch.countDown();
}
origin: geogebra/geogebra

@OnWebSocketClose
public void onClose(int statusCode, String reason) {
  System.out.printf("Connection closed: %d - %s%n", Integer.valueOf(statusCode), reason);
  //this.session = null;
}
 
origin: Kurento/kurento-java

@OnWebSocketClose
public void onClose(int statusCode, String closeReason) {
 log.debug("Websocket disconnected because '{}' (status code {})", closeReason, statusCode);
 handleReconnectDisconnection(statusCode, closeReason);
}
org.eclipse.jetty.websocket.api.annotationsOnWebSocketClose

Most used methods

  • <init>

Popular in Java

  • Reading from database using SQL prepared statement
  • onRequestPermissionsResult (Fragment)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • setContentView (Activity)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • Collectors (java.util.stream)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now