Class InboundAcceptContentRoutingLink<A,B,C extends AcceptContentRoute<A>,D extends AcceptContentRoute.Extractor<A,C,D>>

java.lang.Object
io.inverno.mod.http.base.router.RoutingLink<A,B,C,D>
io.inverno.mod.http.base.router.link.InboundAcceptContentRoutingLink<A,B,C,D>
Type Parameters:
A - the resource type
B - the input type
C - the inbound accept content route type
D - the inbound accept content route extractor type

public abstract class InboundAcceptContentRoutingLink<A,B,C extends AcceptContentRoute<A>,D extends AcceptContentRoute.Extractor<A,C,D>> extends RoutingLink<A,B,C,D>

A RoutingLink implementation resolving resources by matching the accepted content types in an input.

When considering an HTTP client, it allows to select all resources (e.g. interceptors) that match the content types accepted in the request.

Since:
1.12
Author:
Jeremy Kuhn
See Also:
  • Constructor Details

    • InboundAcceptContentRoutingLink

      public InboundAcceptContentRoutingLink()

      Creates a terminal inbound accept content routing link.

    • InboundAcceptContentRoutingLink

      public InboundAcceptContentRoutingLink(Supplier<RoutingLink<A,B,C,D>> nextLinkFactory)

      Creates an inbound accept content routing link in a routing chain.

      Parameters:
      nextLinkFactory - the next routing link factory
  • Method Details