public RouteMatch find ( HttpMethod httpMethod , String path , String acceptType ) { List < RouteEntry > routeEntries = this . findTargetsForRequestedRoute ( httpMethod , path ) ; RouteEntry entry = findTargetWithGivenAcceptType ( routeEntries , acceptType ) ; return entry != null ? new RouteMatch ( entry . target , entry . path , path , acceptType ) : null ; }
finds target for a requested route