Class TenancyRoutePredicateFactory
java.lang.Object
com.broadleafcommerce.metadata.route.predicate.AbstractRoutePredicateFactory<TenancyRoutePredicateFactory.Config>
com.broadleafcommerce.metadata.route.predicate.TenancyRoutePredicateFactory
- All Implemented Interfaces:
RoutePredicateFactory<TenancyRoutePredicateFactory.Config>
public class TenancyRoutePredicateFactory
extends AbstractRoutePredicateFactory<TenancyRoutePredicateFactory.Config>
A
RoutePredicateFactory
implementation that is used for restricting routes to certain
tenant contexts.- Author:
- Nick Crum (ncrum)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
protected static class
A simple POJO for representing the de-serialized X-Context-Request header. -
Constructor Summary
ConstructorsConstructorDescriptionTenancyRoutePredicateFactory
(com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescriptionPredicate<org.springframework.web.context.request.WebRequest>
getContextRequest
(org.springframework.web.context.request.WebRequest request) name()
void
setHeaderName
(String headerName) Methods inherited from class com.broadleafcommerce.metadata.route.predicate.AbstractRoutePredicateFactory
getConfigClass, newConfig
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.broadleafcommerce.metadata.route.predicate.RoutePredicateFactory
apply
-
Constructor Details
-
TenancyRoutePredicateFactory
public TenancyRoutePredicateFactory(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
name
-
apply
public Predicate<org.springframework.web.context.request.WebRequest> apply(TenancyRoutePredicateFactory.Config config) -
getContextRequest
protected TenancyRoutePredicateFactory.ContextRequest getContextRequest(org.springframework.web.context.request.WebRequest request) -
setHeaderName
-