EMS.ResourceAPI.TEndpointResponse

From RAD Studio API Documentation
Jump to: navigation, search

System.TObjectTEndpointResponse

Delphi

TEndpointResponse = class

C++

class PASCALIMPLEMENTATION TEndpointResponse : public System::TObject

Properties

Type Visibility Source Unit Parent
class public
EMS.ResourceAPI.pas
EMS.ResourceAPI.hpp
EMS.ResourceAPI EMS.ResourceAPI

Description

Represents the response of an EMS resource after handling a request context.

TEndpointResponse provides the following properties to define the response data:

If as a result of the handling of the request context your EMS resource creates a new REST resource, use SetCreated to define the location where EMS client applications can access that new REST resource.

TEndpointResponse provides aliases for many of the methods of the EEMSHTTPError exception type. If you cannot provide a response for the specified request context, use one of these methods to raise a matching exception:

TEndpointResponse Method EEMSHTTPError Method
RaiseBadRequest RaiseBadRequest
RaiseDuplicate RaiseDuplicate
RaiseError RaiseError
RaiseForbidden RaiseForbidden
RaiseNotFound RaiseNotFound
RaiseUnauthorized RaiseUnauthorized

See Also