Package org.apache.syncope.sra
Class RouteProvider
- java.lang.Object
-
- org.apache.syncope.sra.RouteProvider
-
public class RouteProvider extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected StringanonymousKeyprotected StringanonymousUserprotected org.apache.syncope.client.lib.SyncopeClientclientprotected org.springframework.context.ConfigurableApplicationContextctxprotected static org.slf4j.LoggerLOGprotected List<org.apache.syncope.common.lib.to.SRARouteTO>routeTOsprotected ServiceOpsserviceOpsprotected booleanuseGZIPCompression
-
Constructor Summary
Constructors Constructor Description RouteProvider(ServiceOps serviceOps, org.springframework.context.ConfigurableApplicationContext ctx, String anonymousUser, String anonymousKey, boolean useGZIPCompression)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<org.springframework.cloud.gateway.route.Route.AsyncBuilder>fetch()List<org.apache.syncope.common.lib.to.SRARouteTO>getRouteTOs()protected org.springframework.cloud.gateway.filter.GatewayFiltertoFilter(org.apache.syncope.common.lib.to.SRARouteTO route, org.apache.syncope.common.lib.types.SRARouteFilter gwfilter)protected org.springframework.cloud.gateway.handler.AsyncPredicate<org.springframework.web.server.ServerWebExchange>toPredicate(org.apache.syncope.common.lib.types.SRARoutePredicate gwpredicate, boolean negate)protected org.springframework.cloud.gateway.route.Route.AsyncBuildertoRoute(org.apache.syncope.common.lib.to.SRARouteTO gwroute)
-
-
-
Field Detail
-
LOG
protected static final org.slf4j.Logger LOG
-
serviceOps
protected final ServiceOps serviceOps
-
ctx
protected final org.springframework.context.ConfigurableApplicationContext ctx
-
anonymousUser
protected final String anonymousUser
-
anonymousKey
protected final String anonymousKey
-
useGZIPCompression
protected final boolean useGZIPCompression
-
client
protected org.apache.syncope.client.lib.SyncopeClient client
-
routeTOs
protected final List<org.apache.syncope.common.lib.to.SRARouteTO> routeTOs
-
-
Constructor Detail
-
RouteProvider
public RouteProvider(ServiceOps serviceOps, org.springframework.context.ConfigurableApplicationContext ctx, String anonymousUser, String anonymousKey, boolean useGZIPCompression)
-
-
Method Detail
-
toFilter
protected org.springframework.cloud.gateway.filter.GatewayFilter toFilter(org.apache.syncope.common.lib.to.SRARouteTO route, org.apache.syncope.common.lib.types.SRARouteFilter gwfilter) throws ClassNotFoundException, NumberFormatException
-
toPredicate
protected org.springframework.cloud.gateway.handler.AsyncPredicate<org.springframework.web.server.ServerWebExchange> toPredicate(org.apache.syncope.common.lib.types.SRARoutePredicate gwpredicate, boolean negate) throws ClassNotFoundException, NumberFormatException
-
toRoute
protected org.springframework.cloud.gateway.route.Route.AsyncBuilder toRoute(org.apache.syncope.common.lib.to.SRARouteTO gwroute)
-
fetch
public List<org.springframework.cloud.gateway.route.Route.AsyncBuilder> fetch()
-
getRouteTOs
public List<org.apache.syncope.common.lib.to.SRARouteTO> getRouteTOs()
-
-