|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.zk.ui.impl.Attributes
public class Attributes
Attributes of desktops, pages and components that are used internally.
| Field Summary | |
|---|---|
static java.lang.String |
ID_TO_UUID_PREFIX
A library property to indicate that UUID shall be generated by prefixing ID with the value stored in this property. |
static java.lang.String |
NO_CACHE
A request attribute to indicate whether "no-cache" header is generated for the current desktop. |
static java.lang.String |
RENEW_NATIVE_SESSION
A session attribute used to denote that the invalidation of a native session (such as HttpSession and PortletSession) does not invalidate ZK session. |
static java.lang.String |
RESEND_DELAY
A library property to indicate the default resend delay (an integer in milliseconds). |
static java.lang.String |
UPLOAD_PERCENT
A desktop attribute to indicate the completeness percentage of the current file upload. |
static java.lang.String |
UPLOAD_SIZE
A desktop attribute to indicate the number of bytes of the current file upload. |
| Constructor Summary | |
|---|---|
Attributes()
|
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String UPLOAD_PERCENT
public static final java.lang.String UPLOAD_SIZE
public static final java.lang.String NO_CACHE
This attribute is set if ZK loader sets Cache-Control=no-cache. However, if a ZUML page is included by other servlet (such as JSP and DSP), this attribute won't be set. If you set Cache-Control manually, you might also set this attribute to save the use of memroy.
request.setAttribute(Attributes.NO_CACHE, Boolean.TRUE);
public static final java.lang.String RESEND_DELAY
Configuration.getResendDelay()
will use it as the default. Otherwise, -1 is assumed.
public static final java.lang.String RENEW_NATIVE_SESSION
A typical case is so-called Session Fixation Protection.
hsess.setAttribute(Attributes.RENEW_NATIVE_SESSION, Boolean.True);
hsess.invalidate();
hsess.removeAttribute(Attributes.RENEW_NATIVE_SESSION);
public static final java.lang.String ID_TO_UUID_PREFIX
Note: An empty string means no prefix, while null means UUID is independent of ID (which is the default).
| Constructor Detail |
|---|
public Attributes()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||