'Does some basic validation for web service params.'

def _validate_params(self, scheme, host, port):

    if ((host is None) or (port is None) or (scheme is None)):
        msg = _('One    of    the    required    inputs    from    host,    port    or    scheme    was    not    found.')
        raise exception.InvalidInput(reason=msg)
    if (scheme not in ('http', 'https')):
        raise exception.InvalidInput(reason=_('Invalid    transport    type.'))
