net.sf.infrared.agent
Class Api

java.lang.Object
  extended bynet.sf.infrared.agent.Api
All Implemented Interfaces:
Serializable

public class Api
extends Object
implements Serializable

An instance of this class identifies an API

See Also:
Serialized Form

Constructor Summary
Api(String apiName, String apiType)
          Constructor
 
Method Summary
 boolean equals(Api other)
          Equals method
 String getApiName()
          Returns the api name
 String getApiType()
          Return the api type
 String getTruncatedName()
           
 int hashCode()
          Returns hashcode
 String toString()
          Retursn the string representation of this api
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Api

public Api(String apiName,
           String apiType)
Constructor

Parameters:
apiName - - name of the api (fully qualified classname.method name)
apiType - - the layer to which this api belongs to (web , session etc)
Method Detail

getApiName

public String getApiName()
Returns the api name

Returns:
api name

getApiType

public String getApiType()
Return the api type

Returns:
api type

equals

public boolean equals(Api other)
Equals method

Parameters:
other -
Returns:
true if other represents same api as this else false

toString

public String toString()
Retursn the string representation of this api

Returns:

hashCode

public int hashCode()
Returns hashcode

Returns:

getTruncatedName

public String getTruncatedName()