public class UserAgents extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
add(String uaid,
org.jboss.aerogear.io.netty.handler.codec.sockjs.SockJsSessionContext session)
Adds the a new UserAgent "session".
|
Collection<UserAgent<org.jboss.aerogear.io.netty.handler.codec.sockjs.SockJsSessionContext>> |
all()
Returns all the
UserAgents. |
boolean |
contains(String uaid)
Determines if a
UserAgent exists for the passed-in user agent identifier. |
UserAgent<org.jboss.aerogear.io.netty.handler.codec.sockjs.SockJsSessionContext> |
get(String uaid)
Returns the
UserAgent for the specified user agent identifier. |
static UserAgents |
getInstance()
Returns the singleton instance.
|
void |
updateAccessedTime(String uaid)
Updates the timestamp for the UserAgent matching the passed-in user agent identifier.
|
public static UserAgents getInstance()
UserAgents the singleton instance.public void add(String uaid, org.jboss.aerogear.io.netty.handler.codec.sockjs.SockJsSessionContext session)
uaid - the unique identifier for the UserAgent.session - the SockJsSessionContext for the connected UserAgent.public UserAgent<org.jboss.aerogear.io.netty.handler.codec.sockjs.SockJsSessionContext> get(String uaid)
UserAgent for the specified user agent identifier.uaid - the UserAgent id.UserAgent matching the passed in user agent identifier.public Collection<UserAgent<org.jboss.aerogear.io.netty.handler.codec.sockjs.SockJsSessionContext>> all()
UserAgents.Collection<UserAgent> all the UserAgent.public boolean contains(String uaid)
UserAgent exists for the passed-in user agent identifier.uaid - the user agent identifier.true if a UserAgent exists, or false otherwise.Copyright © 2014 JBoss by Red Hat. All Rights Reserved.