'Get an endpoint for the given URI, using C{self._endpointFactory}.
@param uri: The URI of the request.
@type uri: L{URI}
@return: An endpoint which can be used to connect to given address.'

def _getEndpoint(self, uri):

    return self._endpointFactory.endpointForURI(uri)
