Writing Applicazione Arbortext PEs in ACL
An Applicazione 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 Sottoprocesso Arbortext PE and passes the request to the Applicazione Arbortext PE Context The Sottoprocesso Arbortext PE Application Context). The Applicazione 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 Applicazione 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 Applicazione Arbortext PE Context.
The return value of the ACL Applicazione 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 Applicazione Arbortext PEs, ACL applications have no initialization or termination components.
È stato utile?