EMS.ResourceTypes.TEMSResourceEndPointSuffix.DoAuthorizeRequest

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: protected
Source:
EMS.ResourceTypes.pas
EMS.ResourceTypes.hpp
Unit: EMS.ResourceTypes
Parent: TEMSResourceEndPointSuffix

Delphi

procedure DoAuthorizeRequest(const AContext: TEndpointContext); override;

C++

virtual void __fastcall DoAuthorizeRequest(Ems::Resourceapi::TEndpointContext* const AContext);

Description

Determines whether or not the access control lists of the EMS Server authorize the request of the specified endpoint context, and raises an exception if the EMS Server does not authorize the request.

If the EMS Server does not authorize the request, DoAuthorizeRequest calls RaiseUnauthorized on the Response property of the endpoint context.

TEMSCommonResource.HandleRequest calls DoAuthorizeRequest on one of its endpoint objects that can handle the specified endpoint context. After TEMSCommonResource.HandleRequest calls DoAuthorizeRequest, TEMSCommonResource.HandleRequest calls DoHandleRequest on that same endpoint object.

See Also