Class PerSessionCoreProvider
java.lang.Object
org.nuxeo.ecm.webengine.jaxrs.session.CoreSessionProvider<PerSessionCoreProvider.Ref>
org.nuxeo.ecm.webengine.jaxrs.session.impl.PerSessionCoreProvider
- All Implemented Interfaces:
EventListener
,javax.servlet.http.HttpSessionBindingListener
public class PerSessionCoreProvider
extends CoreSessionProvider<PerSessionCoreProvider.Ref>
implements javax.servlet.http.HttpSessionBindingListener
- Author:
- Bogdan Stefanescu
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.nuxeo.ecm.webengine.jaxrs.session.CoreSessionProvider
sessions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected PerSessionCoreProvider.Ref
createSessionRef
(CoreSession session) protected void
destroy()
getSessionRef
(javax.servlet.http.HttpServletRequest request, String repoName) boolean
static void
install
(javax.servlet.http.HttpServletRequest request) void
onRequestDone
(javax.servlet.http.HttpServletRequest request) The HTTP request was consumed.void
valueBound
(javax.servlet.http.HttpSessionBindingEvent event) void
valueUnbound
(javax.servlet.http.HttpSessionBindingEvent event) Methods inherited from class org.nuxeo.ecm.webengine.jaxrs.session.CoreSessionProvider
createSession, getSession
-
Constructor Details
-
PerSessionCoreProvider
public PerSessionCoreProvider()
-
-
Method Details
-
install
public static void install(javax.servlet.http.HttpServletRequest request) -
createSessionRef
- Specified by:
createSessionRef
in classCoreSessionProvider<PerSessionCoreProvider.Ref>
-
onRequestDone
public void onRequestDone(javax.servlet.http.HttpServletRequest request) Description copied from class:CoreSessionProvider
The HTTP request was consumed. Do any request level cleanup now.- Specified by:
onRequestDone
in classCoreSessionProvider<PerSessionCoreProvider.Ref>
-
valueBound
public void valueBound(javax.servlet.http.HttpSessionBindingEvent event) - Specified by:
valueBound
in interfacejavax.servlet.http.HttpSessionBindingListener
-
valueUnbound
public void valueUnbound(javax.servlet.http.HttpSessionBindingEvent event) - Specified by:
valueUnbound
in interfacejavax.servlet.http.HttpSessionBindingListener
-
getSessions
- Overrides:
getSessions
in classCoreSessionProvider<PerSessionCoreProvider.Ref>
-
getSessionRef
- Overrides:
getSessionRef
in classCoreSessionProvider<PerSessionCoreProvider.Ref>
-
hasSessions
public boolean hasSessions()- Overrides:
hasSessions
in classCoreSessionProvider<PerSessionCoreProvider.Ref>
-
destroy
protected void destroy()- Overrides:
destroy
in classCoreSessionProvider<PerSessionCoreProvider.Ref>
-