com.atlassian.gadgets.test
Class TestApplicationProperties
java.lang.Object
com.atlassian.gadgets.test.TestApplicationProperties
- All Implemented Interfaces:
- com.atlassian.sal.api.ApplicationProperties
public final class TestApplicationProperties
- extends Object
- implements com.atlassian.sal.api.ApplicationProperties
Field Summary |
static com.atlassian.sal.api.ApplicationProperties |
ALTERNATE
An ApplicationProperties implementation used for testing that uses a non-canonical base URL for the
server under test. |
static com.atlassian.sal.api.ApplicationProperties |
STANDARD
An ApplicationProperties implementation used for testing that uses the canonical base URL for the server
under test. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STANDARD
public static final com.atlassian.sal.api.ApplicationProperties STANDARD
- An
ApplicationProperties
implementation used for testing that uses the canonical base URL for the server
under test.
This uses the baseurl
system property, if set, or defaults to http://localhost:8080/dashboards
if
the system property is missing.
ALTERNATE
public static final com.atlassian.sal.api.ApplicationProperties ALTERNATE
- An
ApplicationProperties
implementation used for testing that uses a non-canonical base URL for the
server under test. This can be used to test the operation of the server when accessed using non-canonical
hostnames. This should generally only differ from the standard base URL by hostname, but may be any alternate
URL that resolves to the same resource (for example, through a reverse proxy that sits on another port, or via a
rewrite rule that modifies the path).
This uses the alt.baseurl
system property, if set, or uses an alternate URL derived by looking up the IP
address of the hostname specified by the STANDARD
base URL. For example, if the standard base URL is
using the default value of http://localhost:8080/dashboards
then the default alternate base URL will be
http://127.0.0.1:8080/dashboards
.
TestApplicationProperties
public TestApplicationProperties(String baseUrl)
getAlternateBaseUrl
public static String getAlternateBaseUrl()
getBaseUrl
public String getBaseUrl()
- Specified by:
getBaseUrl
in interface com.atlassian.sal.api.ApplicationProperties
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName
in interface com.atlassian.sal.api.ApplicationProperties
getVersion
public String getVersion()
- Specified by:
getVersion
in interface com.atlassian.sal.api.ApplicationProperties
getBuildDate
public Date getBuildDate()
- Specified by:
getBuildDate
in interface com.atlassian.sal.api.ApplicationProperties
getBuildNumber
public String getBuildNumber()
- Specified by:
getBuildNumber
in interface com.atlassian.sal.api.ApplicationProperties
getHomeDirectory
public File getHomeDirectory()
- Specified by:
getHomeDirectory
in interface com.atlassian.sal.api.ApplicationProperties
Copyright © 2009 Atlassian. All Rights Reserved.