Interface ContentRoute.Extractor<A,B extends ContentRoute<A>,C extends ContentRoute.Extractor<A,B,C>>

Type Parameters:
A - the resource type
B - the content route type
C - the content route extractor
All Superinterfaces:
RouteExtractor<A,B>
Enclosing interface:
ContentRoute<A>

public static interface ContentRoute.Extractor<A,B extends ContentRoute<A>,C extends ContentRoute.Extractor<A,B,C>> extends RouteExtractor<A,B>

A content route extractor.

Since:
1.12
Author:
Jeremy Kuhn
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    contentType(String mediaRange)
    Sets the extractor to extract routes defined to accept the specified content.

    Methods inherited from interface io.inverno.mod.http.base.router.RouteExtractor

    getRoutes, set
  • Method Details

    • contentType

      C contentType(String mediaRange)

      Sets the extractor to extract routes defined to accept the specified content.

      Parameters:
      mediaRange - a media range
      Returns:
      a route extractor