Interface RouteStarter

    • Method Detail

      • whenPathEquals

        RouteContinuation whenPathEquals​(java.lang.String path)
        Begin a route that 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.
      • whenPathIsOneOf

        RouteContinuation whenPathIsOneOf​(java.lang.String... paths)
        Begin a route that 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.
      • whenPathStartsWith

        RouteContinuation whenPathStartsWith​(java.lang.String pathPrefix)
        Begin a route that 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.
      • whenPathMatches

        RouteContinuation whenPathMatches​(java.lang.String pathRegex)
        Begin a route that 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.
      • whenPathMatches

        RouteContinuation whenPathMatches​(java.util.regex.Pattern pathRegex)
        Begin a route that 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.
      • whenQueryParam

        StringMultiValueMatcher whenQueryParam​(java.lang.String name)
        Begin a 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.
      • whenHeader

        StringMultiValueMatcher whenHeader​(java.lang.CharSequence name)
        Begin a 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.
      • whenCookie

        CookieMatcher whenCookie​(java.lang.String name)
        Begin a route with a CookieMatcher that matches against HttpCookiePairs 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.
      • whenIsNotSsl

        RouteContinuation whenIsNotSsl()
        Begin a route that matches requests that are not over SSL/TLS.
        Returns:
        RouteContinuation for the next steps of building a route.