public class TenancyRoutePredicateFactory extends AbstractRoutePredicateFactory<TenancyRoutePredicateFactory.Config>
RoutePredicateFactory
implementation that is used for restricting routes to certain
tenant contexts.Modifier and Type | Class and Description |
---|---|
static class |
TenancyRoutePredicateFactory.Config |
protected static class |
TenancyRoutePredicateFactory.ContextRequest
A simple POJO for representing the de-serialized X-Context-Request header.
|
Constructor and Description |
---|
TenancyRoutePredicateFactory(com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
Modifier and Type | Method and Description |
---|---|
Predicate<org.springframework.web.context.request.WebRequest> |
apply(TenancyRoutePredicateFactory.Config config) |
protected TenancyRoutePredicateFactory.ContextRequest |
getContextRequest(org.springframework.web.context.request.WebRequest request) |
String |
name() |
void |
setHeaderName(String headerName) |
getConfigClass, newConfig
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply
public TenancyRoutePredicateFactory(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
public String name()
public Predicate<org.springframework.web.context.request.WebRequest> apply(TenancyRoutePredicateFactory.Config config)
protected TenancyRoutePredicateFactory.ContextRequest getContextRequest(org.springframework.web.context.request.WebRequest request)
public void setHeaderName(String headerName)
Copyright © 2021. All rights reserved.