@classmethod
def from_hops(cls, route_hops):
    """Build a route string from a list of route hops.

        :param route_hops: route hops
        :type route_hops: ``list`` of :class:`SAPRouterRouteHop`

        :return: route string
        :rtype: C{string}
        """
    result = ''
    for route_hop in route_hops:
        result += '/H/{}'.format(route_hop.hostname)
        if route_hop.port:
            result += '/S/{}'.format(route_hop.port)
        if route_hop.password:
            result += '/W/{}'.format(route_hop.password)
    return result
