public class DestinationsRequestContextListener extends AbstractRequestContextListener
AbstractRequestContextListener
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 |
Constructor and Description |
---|
DestinationsRequestContextListener() |
Modifier and Type | Method and Description |
---|---|
int |
getPriority()
Returns the priority that defines the order in which listeners are invoked.
|
protected Map<String,Property<?>> |
getProperties(RequestContext requestContext) |
void |
requestContextDestroyed(RequestContext requestContext)
Invoked when destroying a
RequestContext . |
requestContextInitialized
public static final String PROPERTY_HTTP_CLIENTS
public int getPriority()
RequestContextListener
@Nonnull protected Map<String,Property<?>> getProperties(@Nonnull RequestContext requestContext)
getProperties
in class AbstractRequestContextListener
public void requestContextDestroyed(@Nonnull RequestContext requestContext)
RequestContextListener
RequestContext
.requestContextDestroyed
in interface RequestContextListener
requestContextDestroyed
in class AbstractRequestContextListener
Copyright © 2019 SAP SE. All rights reserved.