|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.guiseframework.Guise
public final class Guise
The singleton Guise class. There will only be one instance of Guise per JVM.
| Field Summary | |
|---|---|
static java.lang.String |
BUILD_ID
The identifier of this build. |
static java.lang.String |
GUISE_ASSETS_BASE_KEY
The base key to Guise assets bundled in the Guise distributable. |
static java.lang.String |
GUISE_NAME
The name of Guise. |
static java.net.URI |
GUISE_WEB_URI
The web address of Guise. |
static java.lang.String |
NAMESPACE_PREFIX
The recommended prefix to the Guise ontology namespace. |
static java.net.URI |
NAMESPACE_URI
The URI to the Guise ontology namespace. |
static java.net.URI |
THEME_URI_PROPERTY_URI
The property indicating the URI of the theme of a resource. |
| Method Summary | |
|---|---|
java.io.InputStream |
getAssetInputStream(java.lang.String guiseAssetKey)
Retrieves an input stream to a Guise asset keyed to its location. |
java.net.URL |
getAssetURL(java.lang.String guiseAssetKey)
Retrieves a URL to a Guise asset keyed to its location. |
byte[] |
getGuiseAsset(java.lang.String guiseAssetKey)
Retrieves a Guise asset keyed to its location. |
GuiseSession |
getGuiseSession()
Retrieves the Guise session information for the current thread. |
static Guise |
getInstance()
|
GuiseSessionThreadGroup |
getThreadGroup(GuiseSession guiseSession)
Determines the thread group to use for the given session. |
boolean |
hasAsset(java.lang.String guiseAssetKey)
Determines if a specified Guise asset exists. |
boolean |
isLicensed()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String GUISE_NAME
public static final java.net.URI GUISE_WEB_URI
public static final java.lang.String GUISE_ASSETS_BASE_KEY
public static final java.lang.String BUILD_ID
public static final java.lang.String NAMESPACE_PREFIX
public static final java.net.URI NAMESPACE_URI
public static final java.net.URI THEME_URI_PROPERTY_URI
| Method Detail |
|---|
public static Guise getInstance()
public boolean isLicensed()
public byte[] getGuiseAsset(java.lang.String guiseAssetKey)
throws java.io.IOException
guiseAssetKey - The location of the asset.
null if there is no such asset.
java.lang.IllegalArgumentException - if the asset key does not begin with "assets/".
java.io.IOException - if there is an error loading the aset.GUISE_ASSETS_BASE_KEY
public boolean hasAsset(java.lang.String guiseAssetKey)
throws java.io.IOException
getAssetURL(String).
guiseAssetKey - The location of the asset.
true if the URL references an existing Guise asset, else false.
java.lang.IllegalArgumentException - if the asset key does not begin with "assets/".
java.io.IOException - if there is an error accessing the asset.GUISE_ASSETS_BASE_KEY
public java.net.URL getAssetURL(java.lang.String guiseAssetKey)
throws java.io.IOException
guiseAssetKey - The location of the asset.
null if there is no such asset.
java.lang.IllegalArgumentException - if the asset key does not begin with "assets/".
java.io.IOException - if there is an error loading the asset.GUISE_ASSETS_BASE_KEY
public java.io.InputStream getAssetInputStream(java.lang.String guiseAssetKey)
throws java.io.IOException
guiseAssetKey - The location of the asset.
null if there is no such asset.
java.lang.IllegalArgumentException - if the asset key does not begin with "assets/".
java.io.IOException - if there is an error loading the asset.GUISE_ASSETS_BASE_KEYpublic final GuiseSessionThreadGroup getThreadGroup(GuiseSession guiseSession)
guiseSession - The session for which a thread group is requested.
java.lang.IllegalStateException - if the given session has not yet been associated with a thread group because it has not yet been added.public final GuiseSession getGuiseSession()
getGuiseSession(Thread) with the current thread.
java.lang.IllegalStateException - if the current thread is not associated with any Guise session.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||