@WebListener public class DestinationsRequestContextListener extends AbstractRequestContextListener
RequestContextListener
that enables the correct use of Destination
s when working
with non-container managed threads on all supported Cloud platforms. In particular, it initializes a
HttpClient
cache that is maintained per destination.RequestContextListener.DefaultPriorities
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_HTTP_CLIENTS |
naturalOrdering, reverseOrdering
Constructor and Description |
---|
DestinationsRequestContextListener() |
Modifier and Type | Method and Description |
---|---|
int |
getPriority()
Returns the priority that defines the order in which listeners are invoked.
|
void |
requestContextDestroyed(RequestContext requestContext)
Invoked when destroying a
RequestContext . |
contextDestroyed, contextInitialized, requestContextInitialized
public static final String PROPERTY_HTTP_CLIENTS
public int getPriority()
RequestContextListener
0
as default.public void requestContextDestroyed(RequestContext requestContext)
RequestContextListener
RequestContext
.requestContextDestroyed
in interface RequestContextListener
requestContextDestroyed
in class AbstractRequestContextListener
Copyright © 2018 SAP SE. All rights reserved.