|
|||||||||
| 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
com.guiseframework.platform.web.HTTPServletWebPlatform
public class HTTPServletWebPlatform
A web platform based upon an HTTP servlet.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.guiseframework.platform.web.WebPlatform |
|---|
WebPlatform.PollCommand |
| Field Summary |
|---|
| Fields inherited from class com.guiseframework.platform.web.AbstractWebPlatform |
|---|
DEFAULT_POLL_INTERVAL, DEPICT_ID_STRING_PREFIX |
| Constructor Summary | |
|---|---|
HTTPServletWebPlatform(GuiseApplication application,
HttpSession httpSession,
HttpServletRequest httpRequest)
Application and request constructor. |
|
| Method Summary | |
|---|---|
WebUserAgentProduct |
getClientProduct()
|
WebDepictContext |
getDepictContext()
Retrieves information and functionality related to the current depiction. |
HttpSession |
getHTTPSession()
|
Product |
getJavaScriptProduct()
|
void |
selectPlatformFiles(boolean multiple,
ValueSelectListener<java.util.Collection<PlatformFile>> platformFileSelectListener)
Selects one or more files on the platform, using the appropriate selection functionality for the platform. |
void |
sendResource(java.net.URI resourceURI)
Sends a resource to the platform. |
void |
sendResource(java.net.URI resourceURI,
Bookmark bookmark)
Sends a resource to the platform. |
void |
sendResource(com.globalmentor.net.URIPath resourcePath)
Sends a resource to the platform. |
void |
sendResource(com.globalmentor.net.URIPath resourcePath,
Bookmark bookmark)
Sends a resource to the platform with the specified bookmark. |
void |
uploadPlatformFiles(java.lang.String destinationPath,
Bookmark destinationBookmark,
com.globalmentor.event.ProgressListener progressListener,
PlatformFile... platformFiles)
Uploads files from the platform. |
| Methods inherited from class com.guiseframework.platform.web.AbstractWebPlatform |
|---|
discontinuePollInterval, getDepictID, getDepictIDString, getEnvironment, getPollInterval, getSendMessageQueue, requestPollInterval, setPollInterval |
| 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 |
|---|
discontinuePollInterval, getDepictID, getDepictIDString, getPollInterval, getSendMessageQueue, requestPollInterval, setPollInterval |
| Methods inherited from interface com.guiseframework.platform.Platform |
|---|
generateDepictID, getApplication, getDepictedObject, getDepictLock, getDepictor, getEnvironment, registerDepictedObject, unregisterDepictedObject |
| Constructor Detail |
|---|
public HTTPServletWebPlatform(GuiseApplication application,
HttpSession httpSession,
HttpServletRequest httpRequest)
application - The Guise application running on this platform.httpSession - The HTTP servlet session with which this platform is associated.httpRequest - The HTTP servlet request.
java.lang.NullPointerException - if the given application, HTTP session, and/or HTTP request is null.| Method Detail |
|---|
public HttpSession getHTTPSession()
public WebUserAgentProduct getClientProduct()
getClientProduct in interface PlatformgetClientProduct in interface WebPlatformpublic Product getJavaScriptProduct()
null if JavaScript is not supported or the JavaScript support is not yet known.public WebDepictContext getDepictContext()
getDepictContext in interface PlatformgetDepictContext in interface WebPlatformjava.lang.IllegalStateException - if no depict context can be returned in the current depiction state.
public void selectPlatformFiles(boolean multiple,
ValueSelectListener<java.util.Collection<PlatformFile>> platformFileSelectListener)
selectPlatformFiles in interface Platformmultiple - Whether multiple files should be allowed to be selected.platformFileSelectListener - The listener that will be notified when platform files are selected.
java.lang.NullPointerException - if the given listener is null.
public void uploadPlatformFiles(java.lang.String destinationPath,
Bookmark destinationBookmark,
com.globalmentor.event.ProgressListener progressListener,
PlatformFile... platformFiles)
destinationPath - The path representing the destination of the platform files, relative to the application.destinationBookmark - The bookmark to be used in uploading the platform files to the destination path, or null if no bookmark should be used.progressListener - The listener that will be notified when progress is made for a particular platform file upload.platformFiles - Thet platform files to upload.
java.lang.NullPointerException - if the given destination path and/or listener is null.
java.lang.IllegalArgumentException - if the provided path specifies a URI scheme (i.e. the URI is absolute) and/or authority.
java.lang.IllegalArgumentException - if the provided path is absolute.
java.lang.IllegalStateException - if one or more of the specified platform files can no longer be uploaded because, for example, other platform files have since been selected.public void sendResource(com.globalmentor.net.URIPath resourcePath)
sendResource in interface PlatformresourcePath - The path of the resource to send, relative to the application.
java.lang.NullPointerException - if the given path is null.
java.lang.IllegalArgumentException - if the given string is not a path.public void sendResource(java.net.URI resourceURI)
sendResource in interface PlatformresourceURI - The URI of the resource to send, relative to the application.
java.lang.NullPointerException - if the given URI is null.
public void sendResource(com.globalmentor.net.URIPath resourcePath,
Bookmark bookmark)
sendResource in interface PlatformresourcePath - The path of the resource to send, relative to the application.bookmark - The bookmark at the given path, or null if there is no bookmark.
java.lang.NullPointerException - if the given path is null.
public void sendResource(java.net.URI resourceURI,
Bookmark bookmark)
sendResource in interface PlatformresourceURI - The URI of the resource to send, relative to the application.bookmark - The bookmark at the given path, or null if there is no bookmark.
java.lang.NullPointerException - if the given URI is null.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||