public class SseSession extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
SseSession(SseSessionManager sessionManager,
javax.servlet.AsyncContext asyncContext) |
protected |
SseSession(SseSessionManager sessionManager,
javax.servlet.AsyncContext asyncContext,
boolean keepAlive) |
| Modifier and Type | Method and Description |
|---|---|
void |
closeSession()
Closes this sseSession
|
boolean |
equals(Object obj) |
javax.servlet.http.Cookie |
getCookie(String cookieName) |
javax.servlet.http.Cookie[] |
getCookies()
Get the SseSession cookies
|
String |
getCookieValue(String cookieName) |
int |
hashCode() |
void |
pushEvent(SseEvent event)
Pushes an event to this SseSession
|
String |
toString() |
protected SseSession(SseSessionManager sessionManager, javax.servlet.AsyncContext asyncContext)
sessionManager - asyncContext - protected SseSession(SseSessionManager sessionManager, javax.servlet.AsyncContext asyncContext, boolean keepAlive)
sessionManager - asyncContext - keepAlive - public void pushEvent(SseEvent event)
event - public void closeSession()
public javax.servlet.http.Cookie[] getCookies()
throws javax.ws.rs.WebApplicationException
javax.ws.rs.WebApplicationExceptionpublic javax.servlet.http.Cookie getCookie(String cookieName) throws javax.ws.rs.WebApplicationException
cookieName - the name of the cookiejavax.ws.rs.WebApplicationException - if the cookie is not foundpublic String getCookieValue(String cookieName) throws javax.ws.rs.WebApplicationException
cookieName - the cookie we are searching forjavax.ws.rs.WebApplicationExceptionpublic boolean equals(Object obj)
Copyright © 2018. All rights reserved.