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
Nested Classes Modifier and Type Class Description static class
PerSessionCoreProvider.Ref
-
Field Summary
-
Fields inherited from class org.nuxeo.ecm.webengine.jaxrs.session.CoreSessionProvider
sessions
-
-
Constructor Summary
Constructors Constructor Description PerSessionCoreProvider()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PerSessionCoreProvider.Ref
createSessionRef(CoreSession session)
protected void
destroy()
SessionRef
getSessionRef(javax.servlet.http.HttpServletRequest request, String repoName)
SessionRef[]
getSessions()
boolean
hasSessions()
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
-
-
-
-
Method Detail
-
install
public static void install(javax.servlet.http.HttpServletRequest request)
-
createSessionRef
protected PerSessionCoreProvider.Ref createSessionRef(CoreSession session)
- 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
public SessionRef[] getSessions()
- Overrides:
getSessions
in classCoreSessionProvider<PerSessionCoreProvider.Ref>
-
getSessionRef
public SessionRef getSessionRef(javax.servlet.http.HttpServletRequest request, String repoName)
- 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>
-
-