AU Extensions"

From Documentation
m ((via JWB))
m ((via JWB))
Line 5: Line 5:
 
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.
 
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 <tt>WEB-INF/web.xml</tt>. For more information, please refer to [[ZK Configuration Reference/web.xml/ZK AU Engine|ZK Configuration Reference]].
+
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.
 
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.

Revision as of 14:11, 12 January 2022

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.

Version History

Last Update : 2022/01/12


Version Date Content
     



Last Update : 2022/01/12

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.