|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.zkoss.zk.device.GenericDevice
org.zkoss.zk.device.AjaxDevice
public class AjaxDevice
Represents a Web browser with the Ajax support.
Field Summary |
---|
Fields inherited from interface org.zkoss.zk.device.Device |
---|
RESEND |
Constructor Summary | |
---|---|
AjaxDevice()
|
Method Summary | |
---|---|
java.lang.String |
getContentType()
Returns text/html |
java.lang.String |
getDocType()
Returns <! |
boolean |
isCacheable()
Return false to indicate it is not cacheable. |
java.lang.Boolean |
isCompatible(java.lang.String userAgent)
Returns null to indicate unknown. |
boolean |
isSupported(int func)
It supports Device.RESEND . |
Methods inherited from class org.zkoss.zk.device.GenericDevice |
---|
addEmbedded, getEmbedded, getServerPushClass, getTimeoutURI, getType, getUnavailableMessage, init, isClient, sessionDidActivate, sessionWillPassivate, setServerPushClass, setTimeoutURI, setUnavailableMessage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AjaxDevice()
Method Detail |
---|
public boolean isSupported(int func)
Device.RESEND
.
isSupported
in interface Device
isSupported
in class GenericDevice
func
- the function. It can be one of Device.RESEND
.public boolean isCacheable()
isCacheable
in interface Device
isCacheable
in class GenericDevice
public java.lang.Boolean isCompatible(java.lang.String userAgent)
GenericDevice
isCompatible
in interface Device
isCompatible
in class GenericDevice
userAgent
- represents a client.
For HTTP clients, It is the user-agent header.
Execution.getUserAgent()
,
Devices.getDeviceByClient(java.lang.String)
public java.lang.String getContentType()
text/html
public java.lang.String getDocType()
<!DOCTYPE html ...XHTML 1.0 Transitional...>
.
getDocType
in interface Device
getDocType
in class GenericDevice
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |