Codota Logo
ClientSession.getId
Code IndexAdd Codota to your IDE (free)

How to use
getId
method
in
com.canoo.platform.server.client.ClientSession

Best Java code snippets using com.canoo.platform.server.client.ClientSession.getId (Showing top 19 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: com.canoo.dolphin-platform/dolphin-platform-rpm-server

  @Override
  public void call(final ClientSession dolphinSession) {
    onSessionEnds(dolphinSession.getId());
  }
});
origin: com.canoo.dolphin-platform/dolphin-platform-remoting-server

  @Override
  public void call(final ClientSession dolphinSession) {
    onSessionEnds(dolphinSession.getId());
  }
});
origin: com.canoo.dolphin-platform/dolphin-platform-remoting-server

public String getId() {
  return clientSession.getId();
}
origin: com.canoo.dolphin-platform/dolphin-platform-rpm-server

public String getId() {
  return clientSession.getId();
}
origin: com.canoo.dolphin-platform/dolphin-platform-server

@Override
public void sessionDestroyed(final ClientSession clientSession) {
  Assert.requireNonNull(clientSession, "clientSession");
  sessionMutexMap.remove(clientSession.getId());
}
origin: com.canoo.dolphin-platform/dolphin-platform-rpm-server

@Override
public String getDolphinSessionId() {
  return getSession().getId();
}
origin: com.canoo.dolphin-platform/dolphin-platform-server-spring

@Override
public String getConversationId() {
  return getClientSession().getId();
}
origin: com.canoo.dolphin-platform/dolphin-platform-remoting-server

@Override
public String getDolphinSessionId() {
  return getSession().getId();
}
origin: com.canoo.dolphin-platform/dolphin-platform-server

private void add(HttpSession httpSession, ClientSession clientSession) {
  Lock lock = getOrCreateClientSessionLockForHttpSession(httpSession);
  lock.lock();
  try {
    getOrCreateClientSessionMapInHttpSession(httpSession).put(clientSession.getId(), clientSession);
  } finally {
    lock.unlock();
  }
}
origin: com.canoo.dolphin-platform/dolphin-platform-server

public String createClientSession(HttpSession httpSession) throws MaxSessionCountReachedException {
  if (!canAddInSession(httpSession)) {
    throw new MaxSessionCountReachedException();
  }
  final ClientSession clientSession = new HttpClientSessionImpl(httpSession);
  add(httpSession, clientSession);
  lifecycleHandler.onSessionCreated(clientSession);
  LOG.trace("Created new DolphinContext {} in http session {}", clientSession.getId(), httpSession.getId());
  return clientSession.getId();
}
origin: com.canoo.dolphin-platform/dolphin-platform-remoting-server

private void add(final ClientSession clientSession, final DolphinContext context) {
  Assert.requireNonNull(clientSession, "clientSession");
  Assert.requireNonNull(context, "context");
  clientSession.setAttribute(DOLPHIN_CONTEXT_ATTRIBUTE_NAME, context);
  weakContextMap.put(clientSession.getId(), new WeakReference<>(context));
}
origin: com.canoo.dolphin-platform/dolphin-platform-rpm-server

private void add(final ClientSession clientSession, final DolphinContext context) {
  Assert.requireNonNull(clientSession, "clientSession");
  Assert.requireNonNull(context, "context");
  clientSession.setAttribute(DOLPHIN_CONTEXT_ATTRIBUTE_NAME, context);
  weakContextMap.put(clientSession.getId(), new WeakReference<>(context));
}
origin: com.canoo.dolphin-platform/dolphin-platform-server

@Override
public void sessionCreated(final ClientSession clientSession) {
  Assert.requireNonNull(clientSession, "clientSession");
  final Mutex mutex = new Mutex();
  clientSession.setAttribute(SESSION_MUTEX_ATTRIBUTE, mutex);
  sessionMutexMap.put(clientSession.getId(), new WeakReference<>(mutex));
}
origin: com.canoo.dolphin-platform/dolphin-platform-rpm-server

public void executeTasks() {
  final ClientSession currentSession = sessionProvider.getCurrentClientSession();
  if (currentSession == null || !dolphinSessionId.equals(currentSession.getId())) {
    throw new IllegalStateException("Not in Dolphin Platform session " + dolphinSessionId);
origin: com.canoo.dolphin-platform/dolphin-platform-remoting-server

public void executeTasks() {
  final ClientSession currentSession = sessionProvider.getCurrentClientSession();
  if (currentSession == null || !dolphinSessionId.equals(currentSession.getId())) {
    throw new IllegalStateException("Not in Dolphin Platform session " + dolphinSessionId);
origin: com.canoo.dolphin-platform/dolphin-platform-rpm-server

LOG.trace("receiving RPM request for client session {} in http session {} from client with user-agent {}", clientSession.getId(), httpSession.getId(), userAgent);
} catch (Exception e) {
  response.setStatus(HttpServletResponse.SC_BAD_REQUEST);
  LOG.error("Can not parse request! (DolphinContext " + clientSession.getId() + ")", e);
  return;
LOG.trace("Request for DolphinContext {} in http session {} contains {} commands", clientSession.getId(), httpSession.getId(), commands.size());
origin: com.canoo.dolphin-platform/dolphin-platform-remoting-server

LOG.trace("receiving RPM request for client session {} in http session {} from client with user-agent {}", clientSession.getId(), httpSession.getId(), userAgent);
} catch (Exception e) {
  response.setStatus(HttpServletResponse.SC_BAD_REQUEST);
  LOG.error("Can not parse request! (DolphinContext " + clientSession.getId() + ")", e);
  return;
LOG.trace("Request for DolphinContext {} in http session {} contains {} commands", clientSession.getId(), httpSession.getId(), commands.size());
origin: com.canoo.dolphin-platform/dolphin-platform-rpm-server

taskQueue = new DolphinContextTaskQueue(clientSession.getId(), clientSessionProvider, manager, configuration.getMaxPollTime(), TimeUnit.MILLISECONDS);
mBeanRegistry = new DolphinContextMBeanRegistry(clientSession.getId());
origin: com.canoo.dolphin-platform/dolphin-platform-remoting-server

taskQueue = new DolphinContextTaskQueue(clientSession.getId(), clientSessionProvider, manager, configuration.getMaxPollTime(), TimeUnit.MILLISECONDS);
mBeanRegistry = new DolphinContextMBeanRegistry(clientSession.getId());
com.canoo.platform.server.clientClientSessiongetId

Javadoc

Returns the unique id of this Dolphin Platform session.

Popular methods of ClientSession

  • setAttribute
    Binds the given object to this Dolphin Platform session, using the given name.
  • getAttribute
    Returns the object that is bound to this Dolphin Platform session with the given name or null.
  • getAttributeNames
    Returns a unmodifiable Set of all attribute names that defines objects that are bound to this sessio
  • removeAttribute
    Removes the object bound with the given name from this Dolphin Platform session.

Popular in Java

  • Making http requests using okhttp
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • onRequestPermissionsResult (Fragment)
  • getSystemService (Context)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
  • TimerTask (java.util)
    A task that can be scheduled for one-time or repeated execution by a Timer.
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
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