com.atlassian.pageobjects
Class DefaultProductInstance

java.lang.Object
  extended by com.atlassian.pageobjects.DefaultProductInstance
All Implemented Interfaces:
ProductInstance

public class DefaultProductInstance
extends java.lang.Object
implements ProductInstance

Default implementation of ProductInstance.

Since:
2.1

Constructor Summary
DefaultProductInstance(java.lang.String baseUrl, java.lang.String instanceId, int httpPort, java.lang.String contextPath)
           
 
Method Summary
 java.lang.String getBaseUrl()
           
 java.lang.String getContextPath()
           
 int getHttpPort()
           
 java.lang.String getInstanceId()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultProductInstance

public DefaultProductInstance(java.lang.String baseUrl,
                              java.lang.String instanceId,
                              int httpPort,
                              java.lang.String contextPath)
Method Detail

getBaseUrl

public java.lang.String getBaseUrl()
Specified by:
getBaseUrl in interface ProductInstance
Returns:
The base URL of the instance. Cannot be null.

getHttpPort

public int getHttpPort()
Specified by:
getHttpPort in interface ProductInstance
Returns:
The HTTP port

getContextPath

public java.lang.String getContextPath()
Specified by:
getContextPath in interface ProductInstance
Returns:
The context path, starting with "/". Cannot be null.

getInstanceId

public java.lang.String getInstanceId()
Specified by:
getInstanceId in interface ProductInstance
Returns:
The instance id. Cannot be null.


Copyright © 2013 Atlassian. All Rights Reserved.