C# Class SonarLint.VisualStudio.Integration.Connection.UriValidator

Show file Open project: SonarSource-VisualStudio/sonarlint-visualstudio Class Usage Examples

Public Methods

Method Description
IsInsecureScheme ( Uri uri ) : bool

True if uri's scheme is one of insecureSchemes, false otherwise.

IsSupportedScheme ( Uri uri ) : bool

True if uri's scheme is one of supportedSchemes, false otherwise.

IsValidUri ( Uri uri ) : bool

Whether or not uri is considered to be a valid URI.

Valid URIs must have a scheme listed in supportedSchemes and be absolute.

IsValidUri ( string uriString ) : bool

Whether or not uriString is considered to be a valid URI.

Valid URIs cannot be null, must have a scheme listed in supportedSchemes, and be absolute.

UriValidator ( ) : System
UriValidator ( ISet supportedSchemes ) : System
UriValidator ( ISet supportedSchemes, ISet insecureSchemes ) : System

Method Details

IsInsecureScheme() public method

True if uri's scheme is one of insecureSchemes, false otherwise.
public IsInsecureScheme ( Uri uri ) : bool
uri System.Uri to check, must not be null.
return bool

IsSupportedScheme() public method

True if uri's scheme is one of supportedSchemes, false otherwise.
public IsSupportedScheme ( Uri uri ) : bool
uri System.Uri to check, must not be null.
return bool

IsValidUri() public method

Whether or not uri is considered to be a valid URI.
Valid URIs must have a scheme listed in supportedSchemes and be absolute.
public IsValidUri ( Uri uri ) : bool
uri System.Uri to check, must not be null.
return bool

IsValidUri() public method

Whether or not uriString is considered to be a valid URI.
Valid URIs cannot be null, must have a scheme listed in supportedSchemes, and be absolute.
public IsValidUri ( string uriString ) : bool
uriString string URI to check
return bool

UriValidator() public method

public UriValidator ( ) : System
return System

UriValidator() public method

public UriValidator ( ISet supportedSchemes ) : System
supportedSchemes ISet
return System

UriValidator() public method

public UriValidator ( ISet supportedSchemes, ISet insecureSchemes ) : System
supportedSchemes ISet
insecureSchemes ISet
return System