Writing Application Arbortext PEs in ACL
An Application Arbortext PE written in ACL is an ACL subroutine which takes no parameters. The Arbortext PE Request Manager processes requests for ACL applications by passing requests whose f parameters have the value acl to the Request Function com.arbortext.e3.FunctionAcl. The request function allocates an Sous-processus Arbortext PE and passes the request to the Application Arbortext PE Context The Sous-processus Arbortext PE Application Context). The Application Arbortext PE context allocates request and response objects, as for a Java application, and stores references to them in global variables. Then it calls the ACL function indicated by the query’s function parameter. The function must have been defined in a .acl file in a custom\init directory or in an .acl file in a custom\scripts directory which is loaded from custom\init. For example, to invoke the ACL function test::abc, the HTTP query would include the parameter function=test::abc.
The ACL Application Arbortext PE is called without any parameters. It obtains request and sets response information by invoking methods in the packages PEAppRequest and PEAppResponse, which access the request and response objects allocated by the Application Arbortext PE Context.
The return value of the ACL Application Arbortext PE function is ignored. Whether it succeeds or produces an error response, everything to be returned to the client must be stored in the response object.
Unlike Java Application Arbortext PEs, ACL applications have no initialization or termination components.
Est-ce que cela a été utile ?