|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.plugin.webresource.BambooWebResourceIntegration
public class BambooWebResourceIntegration
The integration layer between Plugin's Web Resource Handler, and specific applications (eg JIRA, Confluence).
Constructor Summary | |
---|---|
BambooWebResourceIntegration()
|
Method Summary | |
---|---|
AdministrationConfiguration |
getAdministrationConfiguration()
|
java.lang.String |
getBaseUrl()
Returns the base URL for this application. |
java.lang.String |
getBaseUrl(com.atlassian.plugin.webresource.UrlMode urlMode)
Returns the base URL for this application in either relative or absolute format, depending on the value of urlMode . |
com.atlassian.plugin.PluginAccessor |
getPluginAccessor()
Applications must implement this method to get access to the application's PluginAccessor |
java.util.Map<java.lang.String,java.lang.Object> |
getRequestCache()
This must be a thread-local cache that will be accessible from both the page, and the decorator |
java.lang.String |
getSuperBatchVersion()
|
java.lang.String |
getSystemBuildNumber()
Represents the last time the system was updated. |
java.lang.String |
getSystemCounter()
Represents the unique number for this system, which when updated will flush the cache. |
void |
setPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BambooWebResourceIntegration()
Method Detail |
---|
public com.atlassian.plugin.PluginAccessor getPluginAccessor()
getPluginAccessor
in interface com.atlassian.plugin.webresource.WebResourceIntegration
public java.util.Map<java.lang.String,java.lang.Object> getRequestCache()
getRequestCache
in interface com.atlassian.plugin.webresource.WebResourceIntegration
public java.lang.String getSystemCounter()
getSystemCounter
in interface com.atlassian.plugin.webresource.WebResourceIntegration
public java.lang.String getSystemBuildNumber()
getSystemBuildNumber
in interface com.atlassian.plugin.webresource.WebResourceIntegration
public java.lang.String getBaseUrl()
getBaseUrl(com.atlassian.plugin.webresource.UrlMode)
with a urlMode
value of UrlMode.AUTO
.
getBaseUrl
in interface com.atlassian.plugin.webresource.WebResourceIntegration
public java.lang.String getBaseUrl(com.atlassian.plugin.webresource.UrlMode urlMode)
urlMode
.
If urlMode == {@link UrlMode#ABSOLUTE}
, this method returns an absolute URL, with URL
scheme, hostname, port (if non-standard for the scheme), and context path.
If urlMode == {@link UrlMode#RELATIVE}
, this method returns a relative URL containing
just the context path.
If urlMode == {@link UrlMode#AUTO}
, this method may return either an absolute or a
relative URL. Implementations are free to determine which mode to use based on any criteria of their choosing.
For example, an implementation may choose to return a relative URL if it detects that it is running in the
context of an HTTP request, and an absolute URL if it detects that it is not. Or it may choose to always return
an absolute URL, or always return a relative URL. Callers should only use WebResourceManager.UrlMode#AUTO
when they are sure that either an absolute or a relative URL will be
appropriate, and should not rely on any particular observed behavior regarding how this value is interpreted,
which may vary across different implementations.
getBaseUrl
in interface com.atlassian.plugin.webresource.WebResourceIntegration
urlMode
- specifies whether to use absolute URLs, relative URLs, or allow the concrete implementation to
decide
public java.lang.String getSuperBatchVersion()
getSuperBatchVersion
in interface com.atlassian.plugin.webresource.WebResourceIntegration
public AdministrationConfiguration getAdministrationConfiguration()
public void setPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |