Tabnine Logo
IWebSocketConnectionRegistry.removeConnection
Code IndexAdd Tabnine 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)

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

  • Making http post requests using okhttp
  • scheduleAtFixedRate (Timer)
  • startActivity (Activity)
  • getExternalFilesDir (Context)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • From CI to AI: The AI layer in your organization
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