|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.guiseframework.platform.AbstractPlatform
com.guiseframework.platform.web.AbstractWebPlatform
public abstract class AbstractWebPlatform
An abstract implementation of a web platform for Guise. This class registers no depictors.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.guiseframework.platform.web.WebPlatform |
|---|
WebPlatform.PollCommand |
| Field Summary | |
|---|---|
static int |
DEFAULT_POLL_INTERVAL
The default polling interval in milleseconds. |
protected static java.lang.String |
DEPICT_ID_STRING_PREFIX
The prefix used for creating depict ID strings on this platform. |
| Constructor Summary | |
|---|---|
AbstractWebPlatform(GuiseApplication application)
Application. |
|
| Method Summary | |
|---|---|
boolean |
discontinuePollInterval(DepictedObject depictedObject)
Indicates that a depicted object no longer requests a particular polling interval. |
long |
getDepictID(java.lang.String depictIDString)
Returns the depicted object ID represented by the given platform-specific ID string. |
java.lang.String |
getDepictIDString(long depictID)
Generates an ID for the given depicted object appropriate for using on the platform. |
Environment |
getEnvironment()
|
int |
getPollInterval()
|
java.util.Queue<WebPlatformMessage> |
getSendMessageQueue()
|
boolean |
requestPollInterval(DepictedObject depictedObject,
int pollInterval)
Requests a polling interval for a given depicted object. |
void |
setPollInterval(int newPollInterval)
Sets the polling interval in millseconds. |
| Methods inherited from class com.guiseframework.platform.AbstractPlatform |
|---|
generateDepictID, getApplication, getDepictedObject, getDepictLock, getDepictor, getDepictorClass, getRegisteredDepictorClass, registerDepictedObject, registerDepictorClass, unregisterDepictedObject |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.guiseframework.platform.web.WebPlatform |
|---|
getClientProduct, getDepictContext |
| Methods inherited from interface com.guiseframework.platform.Platform |
|---|
generateDepictID, getApplication, getDepictedObject, getDepictLock, getDepictor, registerDepictedObject, selectPlatformFiles, sendResource, sendResource, sendResource, sendResource, unregisterDepictedObject |
| Field Detail |
|---|
protected static final java.lang.String DEPICT_ID_STRING_PREFIX
public static final int DEFAULT_POLL_INTERVAL
| Constructor Detail |
|---|
public AbstractWebPlatform(GuiseApplication application)
application - The Guise application running on this platform.
java.lang.NullPointerException - if the given application is null.| Method Detail |
|---|
public Environment getEnvironment()
getEnvironment in interface Platformpublic java.util.Queue<WebPlatformMessage> getSendMessageQueue()
getSendMessageQueue in interface PlatformgetSendMessageQueue in interface WebPlatformgetSendMessageQueue in class AbstractPlatformpublic int getPollInterval()
getPollInterval in interface WebPlatformpublic void setPollInterval(int newPollInterval)
setPollInterval in interface WebPlatformnewPollInterval - The polling interval in millseconds.
java.lang.IllegalArgumentException - if the given polling interval is less than zero.
public boolean requestPollInterval(DepictedObject depictedObject,
int pollInterval)
requestPollInterval in interface WebPlatformdepictedObject - The depicted object requesting a polling interval.pollInterval - The polling interval in milleseconds.
true if the polling interval changed as a result of this request.
java.lang.NullPointerException - if the given depicted object is null.
java.lang.IllegalArgumentException - if the value is less than zero.discontinuePollInterval(DepictedObject),
getPollInterval(),
#setPollInterval()public boolean discontinuePollInterval(DepictedObject depictedObject)
discontinuePollInterval in interface WebPlatformdepictedObject - The depicted object that is relinquishing a polling interval.
true if the polling interval changed as a result of this relinquishment.
java.lang.NullPointerException - if the given depicted object is null.requestPollInterval(DepictedObject, int),
getPollInterval(),
#setPollInterval()public java.lang.String getDepictIDString(long depictID)
getDepictIDString in interface WebPlatformdepictID - The depict ID to be converted to a platform ID.
public long getDepictID(java.lang.String depictIDString)
getDepictID in interface WebPlatformdepictIDString - The platform-specific form of the depict ID.depictID - The depict ID to be converted to a platform ID.
java.lang.NullPointerException - if the given string is null.
java.lang.IllegalArgumentException - if the given string does not represent the correct string form of a depict ID on this platform.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||