public class LocalClientSession extends Object implements org.cometd.bayeux.client.ClientSession
ClientSession
local to the server for LocalSession
.Constructor and Description |
---|
LocalClientSession() |
Modifier and Type | Method and Description |
---|---|
void |
addExtension(org.cometd.bayeux.client.ClientSession.Extension extension) |
void |
batch(Runnable batch) |
void |
disconnect() |
boolean |
endBatch() |
Object |
getAttribute(String name) |
Set<String> |
getAttributeNames() |
org.cometd.bayeux.client.ClientSessionChannel |
getChannel(String channelName) |
List<org.cometd.bayeux.client.ClientSession.Extension> |
getExtensions() |
String |
getId() |
void |
handshake() |
void |
handshake(Map<String,Object> template) |
boolean |
isConnected() |
boolean |
isHandshook() |
Object |
removeAttribute(String name) |
void |
removeExtension(org.cometd.bayeux.client.ClientSession.Extension extension) |
void |
setAttribute(String name,
Object value) |
void |
startBatch() |
public String getId()
getId
in interface org.cometd.bayeux.Session
public boolean isConnected()
isConnected
in interface org.cometd.bayeux.Session
public boolean isHandshook()
isHandshook
in interface org.cometd.bayeux.Session
public void disconnect()
disconnect
in interface org.cometd.bayeux.Session
public void setAttribute(String name, Object value)
setAttribute
in interface org.cometd.bayeux.Session
public Object getAttribute(String name)
getAttribute
in interface org.cometd.bayeux.Session
public Set<String> getAttributeNames()
getAttributeNames
in interface org.cometd.bayeux.Session
public Object removeAttribute(String name)
removeAttribute
in interface org.cometd.bayeux.Session
public void batch(Runnable batch)
batch
in interface org.cometd.bayeux.Session
public void startBatch()
startBatch
in interface org.cometd.bayeux.Session
public boolean endBatch()
endBatch
in interface org.cometd.bayeux.Session
public void addExtension(org.cometd.bayeux.client.ClientSession.Extension extension)
addExtension
in interface org.cometd.bayeux.client.ClientSession
public void removeExtension(org.cometd.bayeux.client.ClientSession.Extension extension)
removeExtension
in interface org.cometd.bayeux.client.ClientSession
public List<org.cometd.bayeux.client.ClientSession.Extension> getExtensions()
getExtensions
in interface org.cometd.bayeux.client.ClientSession
public void handshake()
handshake
in interface org.cometd.bayeux.client.ClientSession
public void handshake(Map<String,Object> template)
handshake
in interface org.cometd.bayeux.client.ClientSession
public org.cometd.bayeux.client.ClientSessionChannel getChannel(String channelName)
getChannel
in interface org.cometd.bayeux.client.ClientSession
Copyright © 2005–2016. All rights reserved.