@WebListener public class UserRequestContextListener extends Object implements RequestContextListener, javax.servlet.ServletContextListener
RequestContextListener
that ensures the correct initialization of User
s when
working with non-container managed threads on all supported Cloud platforms.Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_USER |
naturalOrdering, reverseOrdering
Constructor and Description |
---|
UserRequestContextListener() |
Modifier and Type | Method and Description |
---|---|
void |
contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent) |
void |
contextInitialized(javax.servlet.ServletContextEvent servletContextEvent) |
int |
getPriority()
Returns the priority that defines the order in which listeners are invoked.
|
void |
requestContextDestroyed(RequestContext requestContext)
Invoked when destroying a
RequestContext . |
void |
requestContextInitialized(RequestContext requestContext)
Invoked when initializing a
RequestContext . |
public static final String PROPERTY_USER
public int getPriority()
RequestContextListener
0
as default.getPriority
in interface RequestContextListener
public void requestContextInitialized(RequestContext requestContext)
RequestContextListener
RequestContext
.requestContextInitialized
in interface RequestContextListener
public void requestContextDestroyed(RequestContext requestContext)
RequestContextListener
RequestContext
.requestContextDestroyed
in interface RequestContextListener
public void contextInitialized(javax.servlet.ServletContextEvent servletContextEvent)
contextInitialized
in interface javax.servlet.ServletContextListener
public void contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent)
contextDestroyed
in interface javax.servlet.ServletContextListener
Copyright © 2017 SAP SE. All rights reserved.