The GAS is able to delegate the start of a web application or a web service to another
Genero REST service in order to perform some controls before granting access and starting the
application.
What is delegation?
The delegation mechanism introduces an additional step in the Genero Application Server workflow that manages the launch of a Web application or Web service.
How delegation works
The steps that occur when an application is configured for delegation.
Configure delegation for an application or service
To delegate the start of an application or service to a Genero REST service, specify a DELEGATE element in the EXECUTION component of your application or service.
From the user agent to the REST service
Each request of the form /wa/r, /ja/r and /ws/r coming from the user agent are delegated to the Genero REST service via its entry point.
From the REST service to the proxy
The delegation REST service must notify the dispatcher when it approves the start of an application or service.
REST service example
In this example, the REST service returns an HTTP error code 404 to the browser until the query string contains the string ByPass.
Delegation use cases
Three examples of possible uses for the delegation mechanism.