|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.team.fvt.tests.topology.Application
public abstract class Application
Abstract class for a topology application.
An application is identified by its location
which is assumed to be
the prefix for any web page URL of this application.
It's also assumed that this location is the concatenation of two strings:
https:Server_DNS_Name:port_value
(e.g. https://jbslnxvh02.ottawa.ibm.com:9443
)jts
)A user might be stored in the application let the topology know who is connected to this application.
An application is responsible to provide web pages address to client.
Following functionalities are also defined by this page:
getPageUrl(String)
: Return the page URL from
the given link.getTitle()
: Return the application title.getTitleSuffix()
: Return the application title suffix.
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getContextRoot()
Return the context root of the application. |
java.lang.String |
getHostUrl()
Return the host name and port number of the machine hosting this application. |
java.lang.String |
getLicense()
Returns the license that the application uses. |
java.lang.String[] |
getLicenses()
Returns the application licenses. |
java.lang.String |
getLocation()
The application location. |
java.lang.String |
getName()
Returns the application name. |
java.lang.String |
getPageUrl(java.lang.String pageUrl)
Return the modified page URL if necessary. |
java.lang.String |
getProductName()
Returns the application product name. |
java.lang.String |
getSuffix()
Returns the application suffix. |
java.lang.String |
getTitle()
Returns the application title. |
java.lang.String |
getTitleSuffix()
Deprecated. Use getSuffix() instead |
java.lang.String |
getType()
Returns the application type. |
java.lang.String |
getTypeSuffix()
Returns the type suffix. |
User |
getUser()
|
int |
hashCode()
|
boolean |
login(User newUser)
Login the given user to the application. |
boolean |
logout()
Logout the current user from the application. |
boolean |
needLogin(User newUser)
Tells whether the current application would need login for the given user. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String getContextRoot()
String
.public java.lang.String getHostUrl()
String
public java.lang.String getLicense()
String
.public java.lang.String[] getLicenses()
String
.public java.lang.String getLocation()
String
.public java.lang.String getName()
String
.public java.lang.String getPageUrl(java.lang.String pageUrl)
Default is not to modify the page url.
String
.public java.lang.String getProductName()
String
.public java.lang.String getTitle()
String
.public java.lang.String getSuffix()
Default is no suffix.
String
@Deprecated public java.lang.String getTitleSuffix()
getSuffix()
instead
Default is no suffix.
String
public java.lang.String getType()
String
.public java.lang.String getTypeSuffix()
Default is no suffix.
String
public User getUser()
public int hashCode()
hashCode
in class java.lang.Object
public boolean login(User newUser)
newUser
- The new user which would be connected to the application
true
if the user was changed on the current application,
false
otherwise.public boolean logout()
true
if the user was logged out from the current
application, false
otherwise.public boolean needLogin(User newUser)
newUser
- The new user which would be connected to the application
true
if the user implied a login operation if it would
connect to the application, false
otherwisepublic final java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |