TXDataResourceInfo Class
Resolves the URL of a request against the XData model, identifying the resource the request addresses.
Remarks
After Solve is called, ResourceType tells the kind of resource addressed, and the other properties provide its details, such as the entity set, the property or the matching service operations. When the URL cannot be resolved, the resource type is Error and ErrorCode and ErrorMessage describe the reason.
Syntax
Unit: XData.Module.ResourceInfo
TXDataResourceInfo = class(TObject);
Constructors
| Name | Description |
|---|---|
| Create | Creates the resource information for the segments of a request URL. |
Methods
| Name | Description |
|---|---|
| Solve | Resolves the URL segments, filling the properties that describe the addressed resource. |
Properties
| Name | Description |
|---|---|
| Actions | Gets the service operations that match the URL. |
| EntitySet | Gets the entity set addressed by the URL. |
| ErrorCode | Gets the HTTP status code that describes why the URL could not be resolved. |
| ErrorMessage | Gets the message that describes why the URL could not be resolved. |
| FinalCollection | Gets the navigation property of the collection addressed by the URL. |
| FinalProp | Gets the simple property addressed by the URL. |
| HttpMethod | Gets or sets the HTTP method of the request, used to match service operations. |
| IsCount | Indicates whether the URL requests the number of items, using the $count segment. |
| IsRoot | Indicates whether the URL addresses the root of the module. |
| Path | Gets the key and navigation path of the entity addressed by the URL. |
| ReferenceNavProp | Gets the navigation property whose reference is addressed by a $ref URL. |
| ResourceType | Gets the kind of resource addressed by the URL. |
| ServiceFirst | Gets or sets whether service operations are looked up before entity sets when resolving the URL. |
| Solved | Indicates whether the URL has already been resolved by Solve. |