@WebListener public class DestinationsRequestContextListener extends Object implements RequestContextListener, javax.servlet.ServletContextListener
RequestContextListener
that enables the correct use of Destination
s when working
with non-container managed threads on all supported Cloud platforms.Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_HTTP_CLIENTS |
naturalOrdering, reverseOrdering
Constructor and Description |
---|
DestinationsRequestContextListener() |
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_HTTP_CLIENTS
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.