AU Extensions"
(Created page with '{{ZKDevelopersReferencePageHeader}} =Version History= {{LastUpdated}} {| border='1px' | width="100%" ! Version !! Date !! Content |- | | | |} {{ZKDeveloper…') |
m (remove empty version history (via JWB)) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ZKDevelopersReferencePageHeader}} | {{ZKDevelopersReferencePageHeader}} | ||
− | = | + | An AU extension (<javadoc type="interface">org.zkoss.zk.au.http.AuExtension</javadoc>) is a small program that can be plugged into ZK Update Engine (<javadoc>org.zkoss.zk.au.http.DHtmlUpdateServlet</javadoc>) and extend its functionality. Actually our file upload and multimedia viewing are implemented as an AU extension that you can replace with your implementation. |
− | + | ||
− | + | An AU extension is associated with a name starting with slash, such as "/upload". Then each time a request targeting /zkau/upload will be forwarded to this extension for service. | |
− | + | ||
− | | | + | To register an AU extension, you could specify the name and the class name as the initial parameter of the declaration of ZK Update Engine in <code>WEB-INF/web.xml</code>. For more information, please refer to [[ZK Configuration Reference/web.xml/ZK AU Engine|ZK Configuration Reference]]. |
− | + | ||
− | + | If you want to register it in Java, you could use <javadoc method="addAuExtension(java.lang.String, org.zkoss.zk.au.http.AuExtension)">org.zkoss.zk.au.http.DHtmlUpdateServlet</javadoc> instead. | |
− | + | ||
− | + | ||
{{ZKDevelopersReferencePageFooter}} | {{ZKDevelopersReferencePageFooter}} |
Latest revision as of 04:33, 5 February 2024
An AU extension (AuExtension) is a small program that can be plugged into ZK Update Engine (DHtmlUpdateServlet) and extend its functionality. Actually our file upload and multimedia viewing are implemented as an AU extension that you can replace with your implementation.
An AU extension is associated with a name starting with slash, such as "/upload". Then each time a request targeting /zkau/upload will be forwarded to this extension for service.
To register an AU extension, you could specify the name and the class name as the initial parameter of the declaration of ZK Update Engine in WEB-INF/web.xml
. For more information, please refer to ZK Configuration Reference.
If you want to register it in Java, you could use DHtmlUpdateServlet.addAuExtension(String, AuExtension) instead.