Namespace: Consultingwerk.OERA.RestResource
Class 
RestResourceService Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object
Implements: Consultingwerk.OERA.RestResource.IRestResourceService

File:RestResourceService
Purpose:Maintains a list of REST Resources
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Mon Jul 24 04:36:20 CEST 2017



Top Method Summary
Options Name Purpose
+ DeregisterBusinessTaskRestMethod () Deregisters REST Business Tasks
+ DeregisterRestAddress (character) Deregisters a REST Address
+ DeregisterRestMethod (character) Deregisters a REST Method
+ dispose () Destroy/Shutdown/Anti-Initializer
+ Consultingwerk.OERA.RestResource.ListRestMethod GetBusinessTaskRestMethods () Returns the list of registered REST Business Task Methods
# GetClassNames (Class) Populates the ttClassNames temp-table
+ Consultingwerk.OERA.RestResource.ListRestAddress GetRestAddresses () Returns the list of registered REST Addresses
+ Consultingwerk.OERA.RestResource.ListRestMethod GetRestMethods () Returns the list of registered REST Invokable Methods
+ initialize () Initializer/Startup
# RegisterBusinessTaskMethods () Registers Business Task methods as REST resources
+ RegisterBusinessTaskRestMethod (IRestMethod) Registers a REST Method
# RegisterBusinessTaskRestMethods (ListRestMethod) Registers a list of REST Addresses
# RegisterEntities () Registers Business Entities as REST resources
# RegisterMethods () Registers Business Entities methods and Business Tasks as REST resources
+ RegisterRestAddress (IRestAddress) Registers a REST Address
+ RegisterRestAddresses (ListRestAddress) Registers a list of REST Addresses
+ RegisterRestMethod (IRestMethod) Registers a REST Method
# RegisterRestMethods (ListRestMethod) Registers a list of REST Addresses
+ Consultingwerk.OERA.RestResource.IRestRequest ResolveAddressForRequest (character, character) Resolves the current REST request to an IRestAddress and Values

Top Constructor Summary
Options Name Purpose
+ RestResourceService () Constructor for the RestResourceService class


Method Detail
Top

PUBLIC DeregisterBusinessTaskRestMethod ()

Purpose: Deregisters REST Business Tasks
Notes:

Top

PUBLIC DeregisterRestAddress (character)

Purpose: Deregisters a REST Address
Notes:

Parameters:
pcAddress CHARACTER
The Address to deregister
Top

PUBLIC DeregisterRestMethod (character)

Purpose: Deregisters a REST Method
Notes:

Parameters:
pcAddress CHARACTER
The Address of the method to deregister
Top

PUBLIC dispose ()

Purpose: Destroy/Shutdown/Anti-Initializer
Notes:

Top

PUBLIC Consultingwerk.OERA.RestResource.ListRestMethod GetBusinessTaskRestMethods ()

Purpose: Returns the list of registered REST Business Task Methods
Notes:

Returns Consultingwerk.OERA.RestResource.ListRestMethod
The list of registered IRestMethod's
Top

PROTECTED GetClassNames (Class)

Purpose: Populates the ttClassNames temp-table
Notes:

Parameters:
poType Progress.Lang.Class
The classes to look for (ISupportsRestAddress or ISupportsRestMethods)
Top

PUBLIC Consultingwerk.OERA.RestResource.ListRestAddress GetRestAddresses ()

Purpose: Returns the list of registered REST Addresses
Notes:

Returns Consultingwerk.OERA.RestResource.ListRestAddress
The list of registered IRestAddress'es
Top

PUBLIC Consultingwerk.OERA.RestResource.ListRestMethod GetRestMethods ()

Purpose: Returns the list of registered REST Invokable Methods
Notes:

Returns Consultingwerk.OERA.RestResource.ListRestMethod
The list of registered IRestMethod's
Top

PUBLIC initialize ()

Purpose: Initializer/Startup
Notes: Locates a list of classes that implement the ISupportsRestAddress
and registers their REST Addresses

Top

PROTECTED RegisterBusinessTaskMethods ()

Purpose: Registers Business Task methods as REST resources
Notes:

Top

PUBLIC RegisterBusinessTaskRestMethod (IRestMethod)

Purpose: Registers a REST Method
Notes:

Parameters:
poRestMethod Consultingwerk.OERA.RestResource.IRestMethod
The RestMethod structure to register
Top

PROTECTED RegisterBusinessTaskRestMethods (ListRestMethod)

Purpose: Registers a list of REST Addresses
Notes:

Parameters:
poRestMethods Consultingwerk.OERA.RestResource.ListRestMethod
The ListRestMethod with the rest methods to register
Top

PROTECTED RegisterEntities ()

Purpose: Registers Business Entities as REST resources
Notes:

Top

PROTECTED RegisterMethods ()

Purpose: Registers Business Entities methods and Business Tasks
as REST resources
Notes:

Top

PUBLIC RegisterRestAddress (IRestAddress)

Purpose: Registers a REST Address
Notes:

Parameters:
poRestAddress Consultingwerk.OERA.RestResource.IRestAddress
The RestAddress structure to register
Top

PUBLIC RegisterRestAddresses (ListRestAddress)

Purpose: Registers a list of REST Addresses
Notes:

Parameters:
poRestAddresses Consultingwerk.OERA.RestResource.ListRestAddress
The ListRestAddress with the rest addresses to register
Top

PUBLIC RegisterRestMethod (IRestMethod)

Purpose: Registers a REST Method
Notes:

Parameters:
poRestMethod Consultingwerk.OERA.RestResource.IRestMethod
The RestMethod structure to register
Top

PROTECTED RegisterRestMethods (ListRestMethod)

Purpose: Registers a list of REST Addresses
Notes:

Parameters:
poRestMethods Consultingwerk.OERA.RestResource.ListRestMethod
The ListRestMethod with the rest methods to register
Top

PUBLIC Consultingwerk.OERA.RestResource.IRestRequest ResolveAddressForRequest (character, character)

Purpose: Resolves the current REST request to an IRestAddress and Values
Notes:

Parameters:
pcUri CHARACTER
The request URI
pcRequestMethod CHARACTER
The request method
Returns Consultingwerk.OERA.RestResource.IRestRequest
The IRestRequest structure with the resolved request address and values


Constructor Detail
Top

PUBLIC RestResourceService ()

Purpose: Constructor for the RestResourceService class
Notes:



©2006-2023 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       15.04.2024 05:53:03