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 String
anonymousKey
protected String
anonymousUser
protected SyncopeClient
client
protected ConfigurableApplicationContext
ctx
protected static Logger
LOG
protected List<SRARouteTO>
routeTOs
protected ServiceOps
serviceOps
protected boolean
useGZIPCompression
-
Constructor Summary
Constructors Constructor Description RouteProvider(ServiceOps serviceOps, 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<SRARouteTO>
getRouteTOs()
protected org.springframework.cloud.gateway.filter.GatewayFilter
toFilter(SRARouteTO route, SRARouteFilter gwfilter)
protected org.springframework.cloud.gateway.handler.AsyncPredicate<ServerWebExchange>
toPredicate(SRARoutePredicate gwpredicate, boolean negate)
protected org.springframework.cloud.gateway.route.Route.AsyncBuilder
toRoute(SRARouteTO gwroute)
-
-
-
Field Detail
-
LOG
protected static final Logger LOG
-
serviceOps
protected final ServiceOps serviceOps
-
ctx
protected final ConfigurableApplicationContext ctx
-
anonymousUser
protected final String anonymousUser
-
anonymousKey
protected final String anonymousKey
-
useGZIPCompression
protected final boolean useGZIPCompression
-
client
protected SyncopeClient client
-
routeTOs
protected final List<SRARouteTO> routeTOs
-
-
Constructor Detail
-
RouteProvider
public RouteProvider(ServiceOps serviceOps, ConfigurableApplicationContext ctx, String anonymousUser, String anonymousKey, boolean useGZIPCompression)
-
-
Method Detail
-
toFilter
protected org.springframework.cloud.gateway.filter.GatewayFilter toFilter(SRARouteTO route, SRARouteFilter gwfilter) throws ClassNotFoundException, NumberFormatException
-
toPredicate
protected org.springframework.cloud.gateway.handler.AsyncPredicate<ServerWebExchange> toPredicate(SRARoutePredicate gwpredicate, boolean negate) throws ClassNotFoundException, NumberFormatException
-
toRoute
protected org.springframework.cloud.gateway.route.Route.AsyncBuilder toRoute(SRARouteTO gwroute)
-
fetch
public List<org.springframework.cloud.gateway.route.Route.AsyncBuilder> fetch()
-
getRouteTOs
public List<SRARouteTO> getRouteTOs()
-
-