Interface RouteExtractor<A,B extends Route<A>>

Type Parameters:
A - the resource type
B - the route type
All Known Subinterfaces:
AcceptContentRoute.Extractor<A,B,C>, AcceptLanguageRoute.Extractor<A,B,C>, AuthorityRoute.Extractor<A,B,C>, ContentRoute.Extractor<A,B,C>, ErrorRoute.Extractor<A,B,C>, HeadersRoute.Extractor<A,B,C>, MethodRoute.Extractor<A,B,C>, PathRoute.Extractor<A,B,C>, QueryParametersRoute.Extractor<A,B,C>, URIRoute.Extractor<A,B,C>, WebSocketSubprotocolRoute.Extractor<A,B,C>
All Known Implementing Classes:
AbstractRouteExtractor

public interface RouteExtractor<A,B extends Route<A>>

a route extractor is used internally in an AbstractRouter to extract routes defined in the routing chain.

Since:
1.12
Author:
Jeremy Kuhn
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the set of extracted routes.
    void
    set(A resource, boolean disabled)
    Sets the resource extracted from the routing chain and stores the extracted routes.
  • Method Details

    • set

      void set(A resource, boolean disabled)

      Sets the resource extracted from the routing chain and stores the extracted routes.

      Parameters:
      resource - a resource
      disabled - true if the corresponding route is disabled, false otherwise
    • getRoutes

      Set<B> getRoutes()

      Returns the set of extracted routes.

      Returns:
      a set of routes