com.atlassian.pageobjects
Class DefaultProductInstance

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

public class DefaultProductInstance
extends Object
implements ProductInstance

Default implementation of ProductInstance.

Since:
2.1

Constructor Summary
DefaultProductInstance(String baseUrl, String instanceId, int httpPort, String contextPath)
           
 
Method Summary
 String getBaseUrl()
           
 String getContextPath()
           
 int getHttpPort()
           
 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(String baseUrl,
                              String instanceId,
                              int httpPort,
                              String contextPath)
Method Detail

getBaseUrl

public 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 String getContextPath()
Specified by:
getContextPath in interface ProductInstance
Returns:
The context path, starting with "/". Cannot be null.

getInstanceId

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


Copyright © 2014 Atlassian. All rights reserved.