TTMSMCPResources.FindByURI Method
Looks up the entry published at one exact address.
API unit family: TMS.MCP.Resources
Declaring type: TTMSMCPResources
Syntax
function FindByURI(const URI: string): TTMSMCPResource;
Remarks
Template entries are skipped; match those with the template lookup instead. A read that matches neither is reported to the client as a resource that was not found, error code -32002.
Parameters
| Name | Description |
|---|---|
URI |
Address to look for, compared case-sensitively. |
Returns
The matching entry, which stays owned by the collection and must not be freed, or nil when no fixed-address entry carries that address.
Exceptions
| Exception | Description |
|---|---|
EJsonRpcException |
Raised with invalid-parameters, error code -32602, when the address is empty. |