Interface RouteContinuation


  • public interface RouteContinuation
    Methods for continuing a route.
    • Method Detail

      • andPathEquals

        RouteContinuation andPathEquals​(java.lang.String path)
        Extends the current route such that it matches requests where the path is equal to path.
        Parameters:
        path - the path to match.
        Returns:
        RouteContinuation for the next steps of building a route.
      • andPathIsOneOf

        RouteContinuation andPathIsOneOf​(java.lang.String... paths)
        Extends the current route such that it matches requests where the path is equal to any of the specified paths.
        Parameters:
        paths - the paths to match.
        Returns:
        RouteContinuation for the next steps of building a route.
      • andPathStartsWith

        RouteContinuation andPathStartsWith​(java.lang.String pathPrefix)
        Extends the current route such that it matches requests where the path starts with pathPrefix.
        Parameters:
        pathPrefix - the path prefix to match.
        Returns:
        RouteContinuation for the next steps of building a route.
      • andPathMatches

        RouteContinuation andPathMatches​(java.lang.String pathRegex)
        Extends the current route such that it matches requests where the path matches the regex pathRegex.
        Parameters:
        pathRegex - the regex to match against the request path.
        Returns:
        RouteContinuation for the next steps of building a route.
      • andPathMatches

        RouteContinuation andPathMatches​(java.util.regex.Pattern pathRegex)
        Extends the current route such that it matches requests where the path matches the regex pathRegex.
        Parameters:
        pathRegex - the regex to match against the request path.
        Returns:
        RouteContinuation for the next steps of building a route.
      • andQueryParam

        StringMultiValueMatcher andQueryParam​(java.lang.String name)
        Extends the current route with a StringMultiValueMatcher that matches against the value(s) of the request parameter name.
        Parameters:
        name - the request parameter name that must be present in the request in order to continue evaluation of this route.
        Returns:
        StringMultiValueMatcher for the next steps of building a route.
      • andHeader

        StringMultiValueMatcher andHeader​(java.lang.CharSequence name)
        Extends the current route with a StringMultiValueMatcher that matches against the value(s) of the name headers.
        Parameters:
        name - The header name that must be present in the request in order to continue evaluation of this route.
        Returns:
        StringMultiValueMatcher for the next steps of building a route.
      • andCookie

        CookieMatcher andCookie​(java.lang.String name)
        Extends the current route with a CookieMatcher that matches against HttpSetCookies with the name name.
        Parameters:
        name - the cookie name that must be present in the request in order to continue evaluation of this route.
        Returns:
        CookieMatcher for the next steps of building a route.
      • andIsSsl

        RouteContinuation andIsSsl()
        Extends the current route such that it matches requests that are over SSL/TLS.
        Returns:
        RouteContinuation for the next steps of building a route.
      • andIsNotSsl

        RouteContinuation andIsNotSsl()
        Extends the current route such that it matches requests that are not over SSL/TLS.
        Returns:
        RouteContinuation for the next steps of building a route.
      • thenRouteTo

        RouteStarter thenRouteTo​(HttpService service)
        Completes the route by specifying the HttpService to route requests to that match the previously specified criteria. Each call to thenRouteTo resets the criteria, prior to building the next route.
        Parameters:
        service - the HttpService to route requests to.
        Returns:
        RouteStarter for building another route.