Codota Logo
IWebSocketConnectionRegistry.removeConnection
Code IndexAdd Codota to your IDE (free)

How to use
removeConnection
method
in
org.apache.wicket.protocol.ws.api.registry.IWebSocketConnectionRegistry

Best Java code snippets using org.apache.wicket.protocol.ws.api.registry.IWebSocketConnectionRegistry.removeConnection (Showing top 6 results out of 315)

  • Common ways to obtain IWebSocketConnectionRegistry
private void myMethod () {
IWebSocketConnectionRegistry i =
  • Codota IconWebSocketSettings webSocketSettings;webSocketSettings.getConnectionRegistry()
  • Smart code suggestions by Codota
}
origin: apache/wicket

@Override
public void onClose(int closeCode, String message)
{
  IKey key = getRegistryKey();
  broadcastMessage(new ClosedMessage(getApplication(), getSessionId(), key));
  connectionRegistry.removeConnection(getApplication(), getSessionId(), key);
}
origin: org.apache.wicket/wicket-native-websocket-core

@Override
public void onClose(int closeCode, String message)
{
  IKey key = getRegistryKey();
  broadcastMessage(new ClosedMessage(getApplication(), getSessionId(), key));
  connectionRegistry.removeConnection(getApplication(), getSessionId(), key);
}
origin: theonedev/onedev

@Override
public void onClose(int closeCode, String message)
{
  IKey key = getRegistryKey();
  broadcastMessage(new ClosedMessage(getApplication(), getSessionId(), key));
  connectionRegistry.removeConnection(getApplication(), getSessionId(), key);
}
origin: org.apache.wicket/wicket-native-websocket-core

/**
 * A helper that registers the opened connection in the application-level registry.
 *
 * @param connection
 *            the web socket connection to use to communicate with the client
 * @see #onOpen(Object)
 */
protected final void onConnect(final IWebSocketConnection connection) {
  IKey key = getRegistryKey();
  connectionRegistry.setConnection(getApplication(), getSessionId(), key, connection);
  if (connectionFilter != null)
  {
    ConnectionRejected connectionRejected = connectionFilter.doFilter(servletRequest);
    if (connectionRejected != null)
    {
      broadcastMessage(new AbortedMessage(getApplication(), getSessionId(), key));
      connectionRegistry.removeConnection(getApplication(), getSessionId(), key);
      connection.close(connectionRejected.getCode(), connectionRejected.getReason());
      return;
    }
  }
  broadcastMessage(new ConnectedMessage(getApplication(), getSessionId(), key));
}
origin: apache/wicket

/**
 * A helper that registers the opened connection in the application-level registry.
 *
 * @param connection
 *            the web socket connection to use to communicate with the client
 * @see #onOpen(Object)
 */
protected final void onConnect(final IWebSocketConnection connection) {
  IKey key = getRegistryKey();
  connectionRegistry.setConnection(getApplication(), getSessionId(), key, connection);
  if (connectionFilter != null)
  {
    ConnectionRejected connectionRejected = connectionFilter.doFilter(servletRequest);
    if (connectionRejected != null)
    {
      broadcastMessage(new AbortedMessage(getApplication(), getSessionId(), key));
      connectionRegistry.removeConnection(getApplication(), getSessionId(), key);
      connection.close(connectionRejected.getCode(), connectionRejected.getReason());
      return;
    }
  }
  broadcastMessage(new ConnectedMessage(getApplication(), getSessionId(), key));
}
origin: theonedev/onedev

/**
 * A helper that registers the opened connection in the application-level registry.
 *
 * @param connection
 *            the web socket connection to use to communicate with the client
 * @see #onOpen(Object)
 */
protected final void onConnect(final IWebSocketConnection connection) {
  IKey key = getRegistryKey();
  connectionRegistry.setConnection(getApplication(), getSessionId(), key, connection);
  if (connectionFilter != null)
  {
    ConnectionRejected connectionRejected = connectionFilter.doFilter(servletRequest);
    if (connectionRejected != null)
    {
      broadcastMessage(new AbortedMessage(getApplication(), getSessionId(), key));
      connectionRegistry.removeConnection(getApplication(), getSessionId(), key);
      connection.close(connectionRejected.getCode(), connectionRejected.getReason());
      return;
    }
  }
  broadcastMessage(new ConnectedMessage(getApplication(), getSessionId(), key));
}
org.apache.wicket.protocol.ws.api.registryIWebSocketConnectionRegistryremoveConnection

Javadoc

Removes a web socket connection from the registry at the specified coordinates (application+session+page)

Popular methods of IWebSocketConnectionRegistry

  • getConnections
  • getConnection
  • setConnection
    Adds a new connection into the registry at the specified coordinates (application+session+page)

Popular in Java

  • Finding current android device location
  • putExtra (Intent)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • addToBackStack (FragmentTransaction)
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Permission (java.security)
    Abstract class for representing access to a system resource. All permissions have a name (whose inte
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Properties (java.util)
    The Properties class represents a persistent set of properties. The Properties can be saved to a st
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
  • JOptionPane (javax.swing)
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