Interface WebPlatform

All Superinterfaces:
Platform
All Known Implementing Classes:
AbstractWebPlatform, HTTPServletWebPlatform

public interface WebPlatform extends Platform
The web platform for Guise.
Author:
Garret Wilson
  • Field Details

    • CKEDITOR_VERSION

      static final String CKEDITOR_VERSION
      The version of CKEditor in use.
      See Also:
    • GUISE_ML_NAMESPACE_URI

      static final URI GUISE_ML_NAMESPACE_URI
      The namespace of the Guise markup language to be used with XHTML.
    • GUISE_ML_NAMESPACE_PREFIX

      static final String GUISE_ML_NAMESPACE_PREFIX
      The standard prefix to use with the Guise markup language namespace.
      See Also:
    • GUISE_XHTML_DTD_PUBLIC_ID

      static final String GUISE_XHTML_DTD_PUBLIC_ID
      The public ID of the Guise XHTML DTD.
      See Also:
    • GUISE_SESSION_UUID_URI_QUERY_PARAMETER

      static final String GUISE_SESSION_UUID_URI_QUERY_PARAMETER
      The URI query parameter used to specify a Guise session by UUID, overriding the Guise session based upon the HTTP session identified by the request.
      See Also:
    • GUISE_VERSION_URI_QUERY_PARAMETER

      static final String GUISE_VERSION_URI_QUERY_PARAMETER
      The URI query parameter used to indicate the Guise version to prevent caching between versions.
      See Also:
    • GUISE_AJAX_REQUEST_MEDIA_TYPE

      static final com.globalmentor.net.MediaType GUISE_AJAX_REQUEST_MEDIA_TYPE
      The media type of a Guise AJAX request, application/x-guise-ajax-request.
    • GUISE_AJAX_RESPONSE_MEDIA_TYPE

      static final com.globalmentor.net.MediaType GUISE_AJAX_RESPONSE_MEDIA_TYPE
      The media type of a Guise AJAX response, application/x-guise-ajax-response.
    • HTML_EDITOR

      static final WebPlatform.HTMLEditor HTML_EDITOR
      The editor used by the platform.
    • ELEMENT_IMG_ATTRIBUTE_ORIGINAL_SRC

      static final String ELEMENT_IMG_ATTRIBUTE_ORIGINAL_SRC
      The Guise image attribute indicating the original source location of the image.
      See Also:
    • ELEMENT_IMG_ATTRIBUTE_ROLLOVER_SRC

      static final String ELEMENT_IMG_ATTRIBUTE_ROLLOVER_SRC
      The Guise image attribute indicating the source location of the image to be used for rollovers.
      See Also:
    • ELEMENT_TEXTAREA_ATTRIBUTE_MULTILINE

      static final String ELEMENT_TEXTAREA_ATTRIBUTE_MULTILINE
      The Guise textarea attribute indicating whether the user should be allowed to enter multiple physical lines; value is "true" or "false".
      See Also:
    • ATTRIBUTE_ATTRIBUTE_HASH

      static final String ATTRIBUTE_ATTRIBUTE_HASH
      The Guise attribute containing the hash of the element attributes.
      See Also:
    • ATTRIBUTE_CONTENT_HASH

      static final String ATTRIBUTE_CONTENT_HASH
      The Guise attribute containing the hash of the element content.
      See Also:
    • ATTRIBUTE_CONTENT_TYPE

      static final String ATTRIBUTE_CONTENT_TYPE
      The Guise attribute indicating the content type of an element's contents.
      See Also:
    • ATTRIBUTE_PATCH_TYPE

      static final String ATTRIBUTE_PATCH_TYPE
      The Guise attribute indicating the type of patching that should occur.
      See Also:
    • ATTRIBUTE_PATCH_TYPE_NO_VALUE

      static final String ATTRIBUTE_PATCH_TYPE_NO_VALUE
      The Guise attribute value indicating that no patching should occur on the value.
      See Also:
    • ATTRIBUTE_PATCH_TYPE_NONE

      static final String ATTRIBUTE_PATCH_TYPE_NONE
      The Guise attribute value indicating that no patching should occur.
      See Also:
    • ATTRIBUTE_PATCH_TYPE_TEMP

      static final String ATTRIBUTE_PATCH_TYPE_TEMP
      The Guise attribute value indicating that the element is a temporary element that will be replaced later; functions just like "none" for patching except that this element will be removed from the original hierarchy.
      See Also:
    • ATTRIBUTE_CLASS_CONTENT

      static final String ATTRIBUTE_CLASS_CONTENT
      The HTML class attribute indicating content.
      See Also:
    • BLANK_MP3_PATH

      static final com.globalmentor.net.URIPath BLANK_MP3_PATH
      The path of the blank MP3 file, relative to the application.
    • GUISE_EMPTY_HTML_DOCUMENT_PATH

      static final com.globalmentor.net.URIPath GUISE_EMPTY_HTML_DOCUMENT_PATH
      The path of the empty HTML document, relative to the application.
    • AJAX_JAVASCRIPT_PATH

      static final com.globalmentor.net.URIPath AJAX_JAVASCRIPT_PATH
      The path of the AJAX JavaScript file, relative to the application.
    • AJAX_MIN_JAVASCRIPT_PATH

      static final com.globalmentor.net.URIPath AJAX_MIN_JAVASCRIPT_PATH
      The path of the compressed AJAX JavaScript file, relative to the application.
    • DOM_JAVASCRIPT_PATH

      static final com.globalmentor.net.URIPath DOM_JAVASCRIPT_PATH
      The path of the DOM JavaScript file, relative to the application.
    • DOM_MIN_JAVASCRIPT_PATH

      static final com.globalmentor.net.URIPath DOM_MIN_JAVASCRIPT_PATH
      The path of the compressed DOM JavaScript file, relative to the application.
    • DOMREADY_JAVASCRIPT_PATH

      static final com.globalmentor.net.URIPath DOMREADY_JAVASCRIPT_PATH
      The path of the domready JavaScript file, relative to the application.
    • DOMREADY_MIN_JAVASCRIPT_PATH

      static final com.globalmentor.net.URIPath DOMREADY_MIN_JAVASCRIPT_PATH
      The path of the compressed domready JavaScript file, relative to the application.
    • GOOGLE_GEARS_JAVASCRIPT_PATH

      static final com.globalmentor.net.URIPath GOOGLE_GEARS_JAVASCRIPT_PATH
      The path of the Google Gears JavaScript file, relative to the application.
    • GOOGLE_GEARS_MIN_JAVASCRIPT_PATH

      static final com.globalmentor.net.URIPath GOOGLE_GEARS_MIN_JAVASCRIPT_PATH
      The path of the compressed Google Gears JavaScript file, relative to the application.
    • GUISE_JAVASCRIPT_PATH

      static final com.globalmentor.net.URIPath GUISE_JAVASCRIPT_PATH
      The path of the Guise JavaScript file, relative to the application.
    • GUISE_MIN_JAVASCRIPT_PATH

      static final com.globalmentor.net.URIPath GUISE_MIN_JAVASCRIPT_PATH
      The path of the compressed Guise JavaScript file, relative to the application.
    • JAVASCRIPT_JAVASCRIPT_PATH

      static final com.globalmentor.net.URIPath JAVASCRIPT_JAVASCRIPT_PATH
      The path of the JavaScript JavaScript file, relative to the application.
    • JAVASCRIPT_MIN_JAVASCRIPT_PATH

      static final com.globalmentor.net.URIPath JAVASCRIPT_MIN_JAVASCRIPT_PATH
      The path of the compressed JavaScript JavaScript file, relative to the application.
    • CKEDITOR_JAVASCRIPT_PATH

      static final com.globalmentor.net.URIPath CKEDITOR_JAVASCRIPT_PATH
      The path of the CKEditor JavaScript file, relative to the application.
    • CKEDITOR_MIN_JAVASCRIPT_PATH

      static final com.globalmentor.net.URIPath CKEDITOR_MIN_JAVASCRIPT_PATH
      The path of the compressed CKEditor JavaScript file, relative to the application.
    • TINYMCE_JAVASCRIPT_PATH

      static final com.globalmentor.net.URIPath TINYMCE_JAVASCRIPT_PATH
      The path of the TinyMCE JavaScript file, relative to the application.
    • TINYMCE_MIN_JAVASCRIPT_PATH

      static final com.globalmentor.net.URIPath TINYMCE_MIN_JAVASCRIPT_PATH
      The path of the compressed TinyMCE JavaScript file, relative to the application.
    • GUISE_FLASH_PATH

      static final com.globalmentor.net.URIPath GUISE_FLASH_PATH
      The path of the Guise Flash file, relative to the application.
  • Method Details

    • getDepictIDString

      String getDepictIDString(long depictID)
      Generates an ID for the given depicted object appropriate for using on the platform.
      Parameters:
      depictID - The depict ID to be converted to a platform ID.
      Returns:
      The form of the depict ID appropriate for using on the platform.
    • getDepictID

      long getDepictID(String depictIDString)
      Returns the depicted object ID represented by the given platform-specific ID string.
      Parameters:
      depictIDString - The platform-specific form of the depict ID.
      Returns:
      The depict ID the platform-specific form represents.
      Throws:
      NullPointerException - if the given string is null.
      IllegalArgumentException - if the given string does not represent the correct string form of a depict ID on this platform.
    • getClientProduct

      WebUserAgentProduct getClientProduct()
      Specified by:
      getClientProduct in interface Platform
      Returns:
      The user agent client, such as a browser, used to access Guise on this platform.
    • getDepictContext

      WebDepictContext getDepictContext()
      Retrieves information and functionality related to the current depiction.
      Specified by:
      getDepictContext in interface Platform
      Returns:
      A context for the current depiction.
      Throws:
      IllegalStateException - if no depict context can be returned in the current depiction state.
    • getSendMessageQueue

      Queue<WebPlatformMessage> getSendMessageQueue()
      Specified by:
      getSendMessageQueue in interface Platform
      Returns:
      The thread-safe queue of messages to be delivered to the platform.
    • getPollInterval

      int getPollInterval()
      Returns:
      The current polling interval in milliseconds.
    • setPollInterval

      void setPollInterval(int newPollInterval)
      Sets the polling interval in milliseconds.
      Parameters:
      newPollInterval - The polling interval in milliseconds.
      Throws:
      IllegalArgumentException - if the given polling interval is less than zero.
    • requestPollInterval

      boolean requestPollInterval(DepictedObject depictedObject, int pollInterval)
      Requests a polling interval for a given depicted object. The actual polling interval will be updated if the given polling interval is smaller than the current actual polling interval.
      Parameters:
      depictedObject - The depicted object requesting a polling interval.
      pollInterval - The polling interval in milliseconds.
      Returns:
      true if the polling interval changed as a result of this request.
      Throws:
      NullPointerException - if the given depicted object is null.
      IllegalArgumentException - if the value is less than zero.
      See Also:
    • discontinuePollInterval

      boolean discontinuePollInterval(DepictedObject depictedObject)
      Indicates that a depicted object no longer requests a particular polling interval. The actual polling interval will be updated if the relinquished poll interval is less than or equal to the current poll interval.
      Parameters:
      depictedObject - The depicted object that is relinquishing a polling interval.
      Returns:
      true if the polling interval changed as a result of this relinquishment.
      Throws:
      NullPointerException - if the given depicted object is null.
      See Also: