The org.zkoss.zk.ui.util.URIInterceptor interface

From Documentation
Revision as of 02:26, 6 December 2010 by Char (talk | contribs) (Created page with ' {{ZKConfigurationReferencePageHeader}} <javadoc type="interface">org.zkoss.zk.ui.util.URIInterceptor</javadoc> is implemented by a listener class that will be used to intercept…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


DocumentationZK Configuration Referencezk.xmlThe listener ElementThe org.zkoss.zk.ui.util.URIInterceptor interface
The org.zkoss.zk.ui.util.URIInterceptor interface


URIInterceptor is implemented by a listener class that will be used to intercept the retrieving of ZUML pages with the associated URI. Once registered, an instance of the specified class is created and shared within the whole application. Then, the request method is invoked, each time the application wants to retrieve the page definition of a page based on an URI.

A typical use of this interface is to ensure the current user has the authority to access the certain URI.

You can register any number of URI interceptors (URIInterceptor).

Note:

  1. Unlike ExecutionInit and many other listeners, an instance of the registered URIInterceptor is created at the time of registration, and then it is shared by the whole application. Thus, you have to make sure it can be accessed concurrently.



Last Update : 2010/12/06

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