Package org.wso2.carbon.rest.api
Class APIData
java.lang.Object
org.wso2.carbon.rest.api.APIData
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the artifactContainer of the endpoint which deployed fromgetHost()booleanGet the edit state of the endpointgetName()intgetPort()booleanFunction to set Swagger definition pathbooleanvoidsetArtifactContainerName(String artifactContainerName) Set the endpoint artifact container name as a metadatavoidsetContext(String context) voidsetFileName(String fileName) voidvoidsetIsEdited(boolean isEdited) Set the edit state of the endpoint as a metadatavoidvoidsetPort(int port) voidsetResources(ResourceData[] resources) voidsetStatisticsEnable(boolean enableStatistics) voidsetSwaggerDefKey(String swaggerDefKey) Function to set Swagger definition pathvoidsetTracingEnable(boolean tracingEnable) voidsetVersion(String version) Set the given version as the API versionvoidsetVersionType(String versionType) Set the given version type for the API
-
Constructor Details
-
APIData
public APIData()
-
-
Method Details
-
getName
-
setName
-
getHost
-
setHost
-
getPort
public int getPort() -
setPort
public void setPort(int port) -
getContext
-
setContext
-
getResources
-
setResources
-
getFileName
-
setFileName
-
getArtifactContainerName
Get the artifactContainer of the endpoint which deployed from- Returns:
- endpoint description
-
setArtifactContainerName
Set the endpoint artifact container name as a metadata- Parameters:
artifactContainerName- endpoint name
-
getIsEdited
public boolean getIsEdited()Get the edit state of the endpoint- Returns:
- endpoint description
-
setIsEdited
public void setIsEdited(boolean isEdited) Set the edit state of the endpoint as a metadata- Parameters:
isEdited- endpoint name
-
setStatisticsEnable
public void setStatisticsEnable(boolean enableStatistics) -
getStatisticsEnable
public boolean getStatisticsEnable() -
getTracingEnable
public boolean getTracingEnable() -
setTracingEnable
public void setTracingEnable(boolean tracingEnable) -
getVersion
-
setVersion
Set the given version as the API version- Parameters:
version-
-
getVersionType
-
setVersionType
Set the given version type for the API- Parameters:
versionType-
-
getSwaggerDefKey
Function to set Swagger definition path- Returns:
-
setSwaggerDefKey
Function to set Swagger definition path- Parameters:
swaggerDefKey-
-