public Optional < URL > getRoute ( String routeName ) { Route route = getClient ( ) . routes ( ) . inNamespace ( namespace ) . withName ( routeName ) . get ( ) ; return route != null ? Optional . ofNullable ( createUrlFromRoute ( route ) ) : Optional . empty ( ) ; }
Gets the URL of the route with given name .