Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractResource.GetResourceNameWithoutProtocol Method

Strips any protocol name from the supplied resourceName.

[Visual Basic]
Protected Shared Sub GetResourceNameWithoutProtocol( _
   ByVal resourceName As String _
)
[C#]
protected static string GetResourceNameWithoutProtocol(
   string resourceName
);

Parameters

resourceName
The name of the resource.

Return Value

The name of the resource without the protocol name.

Remarks

If the supplied resourceName does not have any protocol associated with it, then the supplied resourceName will be returned as-is.

Example

GetResourceNameWithoutProtocol("http://www.mycompany.com/resource.txt");
    // returns www.mycompany.com/resource.txt

See Also

AbstractResource Class | Spring.Core.IO Namespace