Class APIInfo
java.lang.Object
org.odpi.openmetadata.adapters.connectors.wso2mi.properties.APIInfo
APIInfo describes a single REST API deployed on a WSO2 Micro Integrator, as returned by the
Management API's
GET /management/apis resource. Only the fields needed to catalog the
API as an open metadata asset are modelled here; unknown fields returned by newer WSO2 versions
are ignored.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare the values of the supplied object with those stored in the current object.getName()Return the name of the API.getStats()Return whether statistics collection is enabled for the API ("enabled" / "disabled").Return whether message tracing is enabled for the API ("enabled" / "disabled").getUrl()Return the invocation URL for the API (the context path exposed by the Micro Integrator).Return the API version, if the Micro Integrator reports one.inthashCode()Return a hash code based on the values of this object.voidSet up the name of the API.voidSet up whether statistics collection is enabled for the API.voidsetTracing(String tracing) Set up whether message tracing is enabled for the API.voidSet up the invocation URL for the API.voidsetVersion(String version) Set up the API version.toString()JSON-style toString.
-
Constructor Details
-
APIInfo
public APIInfo()Default constructor.
-
-
Method Details
-
getName
Return the name of the API. This is the unique identifier of the API within the Micro Integrator.- Returns:
- string name
-
setName
Set up the name of the API.- Parameters:
name- string name
-
getUrl
Return the invocation URL for the API (the context path exposed by the Micro Integrator).- Returns:
- string URL
-
setUrl
Set up the invocation URL for the API.- Parameters:
url- string URL
-
getVersion
Return the API version, if the Micro Integrator reports one.- Returns:
- string version
-
setVersion
Set up the API version.- Parameters:
version- string version
-
getTracing
Return whether message tracing is enabled for the API ("enabled" / "disabled").- Returns:
- string flag
-
setTracing
Set up whether message tracing is enabled for the API.- Parameters:
tracing- string flag
-
getStats
Return whether statistics collection is enabled for the API ("enabled" / "disabled").- Returns:
- string flag
-
setStats
Set up whether statistics collection is enabled for the API.- Parameters:
stats- string flag
-
toString
JSON-style toString. -
equals
Compare the values of the supplied object with those stored in the current object. -
hashCode
public int hashCode()Return a hash code based on the values of this object.
-