Class UrlResource
URL resource implementation.
Implements
Inherited Members
Namespace: Tangosol.IO.Resources
Assembly: Coherence.dll
Syntax
public class UrlResource : AbstractResource, IResource
Remarks
This IResource implementation can be used to access resources on remote servers over HTTP or FTP.
Constructors
UrlResource(string)
Constructor that takes a resource name and creates resource.
Declaration
public UrlResource(string resourceName)
Parameters
Type | Name | Description |
---|---|---|
string | resourceName | Resource name of the URL resource. |
Remarks
You can use http://www.mycompany.com/services.txt, ftp://user:pass@ftp.myserver.com/dir/file.xml or similar URL as a resource name.
Methods
GetStream()
Gets a stream for this IResource.
Declaration
public override Stream GetStream()
Returns
Type | Description |
---|---|
Stream | A System.IO.Stream. |
Overrides
Exceptions
Type | Condition |
---|---|
IOException | If the stream could not be opened. |