Package io.guise.framework.platform
Interface DepictContext
-
- All Superinterfaces:
com.globalmentor.beans.PropertyBindable
- All Known Subinterfaces:
TextDepictContext
,WebDepictContext
,XHTMLDepictContext
,XMLDepictContext
- All Known Implementing Classes:
AbstractDepictContext
,AbstractTextDepictContext
,AbstractWebDepictContext
,AbstractXHTMLDepictContext
,AbstractXMLDepictContext
,HTTPServletWebDepictContext
public interface DepictContext extends com.globalmentor.beans.PropertyBindable
Encapsulation of information related to the current depiction.- Author:
- Garret Wilson
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.net.URI
getDepictionURI()
java.net.URI
getDepictionURI(com.globalmentor.net.URIPath navigationPath, java.lang.String... suffixes)
Determines the URI to use for depiction based upon a navigation path.java.net.URI
getDepictionURI(java.net.URI navigationURI, java.lang.String... suffixes)
Determines the URI to use for depiction based upon a navigation URI.Destination
getDestination()
Platform
getPlatform()
GuiseSession
getSession()
java.lang.Iterable<java.net.URI>
getStyles()
Retrieves styles for this context.
-
-
-
Method Detail
-
getSession
GuiseSession getSession()
- Returns:
- The Guise user session of which this context is a part.
-
getPlatform
Platform getPlatform()
- Returns:
- The platform on which Guise objects are depicted.
-
getDestination
Destination getDestination()
- Returns:
- The destination with which this context is associated.
-
getDepictionURI
java.net.URI getDepictionURI()
- Returns:
- The current full absolute URI for this depiction, including any query.
-
getDepictionURI
java.net.URI getDepictionURI(com.globalmentor.net.URIPath navigationPath, java.lang.String... suffixes)
Determines the URI to use for depiction based upon a navigation path. The path will first be dereferenced for the current session and then resolved to the application. The resulting URI may not be absolute, but can be made absolute by resolving it against the depiction root URI. This method is equivalent to callingGuiseSession.getDepictionURI(URIPath, String...)
.- Parameters:
navigationPath
- The navigation path, which may be absolute or relative to the application.suffixes
- The suffixes, if any, to append to a resource key in a URI reference.- Returns:
- A URI suitable for depiction, deferenced and resolved to the application.
- See Also:
GuiseSession.getDepictionURI(URIPath, String...)
-
getDepictionURI
java.net.URI getDepictionURI(java.net.URI navigationURI, java.lang.String... suffixes)
Determines the URI to use for depiction based upon a navigation URI. The URI will first be dereferenced for the current session and then resolved to the application. The resulting URI may not be absolute, but can be made absolute by resolving it against the depiction root URI. This method is equivalent to callingGuiseSession.getDepictionURI(URI, String...)
.- Parameters:
navigationURI
- The navigation URI, which may be absolute or have an absolute path or a path relative to the application.suffixes
- The suffixes, if any, to append to a resource key in a URI reference.- Returns:
- A URI suitable for depiction, deferenced and resolved to the application.
- See Also:
GuiseSession.getDepictionURI(URI, String...)
-
getStyles
java.lang.Iterable<java.net.URI> getStyles()
Retrieves styles for this context. Styles appear in the following order:- theme styles (from most distant parent to current theme)
- application style
- destination style
- Returns:
- The URIs of the styles for this context, in order.
-
-