Package org.wso2.carbon.rest.api
Class APIData
- java.lang.Object
-
- org.wso2.carbon.rest.api.APIData
-
public class APIData extends Object
-
-
Constructor Summary
Constructors Constructor Description APIData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetArtifactContainerName()Get the artifactContainer of the endpoint which deployed fromStringgetContext()StringgetFileName()StringgetHost()booleangetIsEdited()Get the edit state of the endpointStringgetName()intgetPort()ResourceData[]getResources()booleangetStatisticsEnable()StringgetSwaggerDefKey()Function to set Swagger definition pathbooleangetTracingEnable()StringgetVersion()StringgetVersionType()voidsetArtifactContainerName(String artifactContainerName)Set the endpoint artifact container name as a metadatavoidsetContext(String context)voidsetFileName(String fileName)voidsetHost(String host)voidsetIsEdited(boolean isEdited)Set the edit state of the endpoint as a metadatavoidsetName(String name)voidsetPort(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
-
-
-
Method Detail
-
getName
public String getName()
-
setName
public void setName(String name)
-
getHost
public String getHost()
-
setHost
public void setHost(String host)
-
getPort
public int getPort()
-
setPort
public void setPort(int port)
-
getContext
public String getContext()
-
setContext
public void setContext(String context)
-
getResources
public ResourceData[] getResources()
-
setResources
public void setResources(ResourceData[] resources)
-
getFileName
public String getFileName()
-
setFileName
public void setFileName(String fileName)
-
getArtifactContainerName
public String getArtifactContainerName()
Get the artifactContainer of the endpoint which deployed from- Returns:
- endpoint description
-
setArtifactContainerName
public void setArtifactContainerName(String artifactContainerName)
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
public String getVersion()
-
setVersion
public void setVersion(String version)
Set the given version as the API version- Parameters:
version-
-
getVersionType
public String getVersionType()
-
setVersionType
public void setVersionType(String versionType)
Set the given version type for the API- Parameters:
versionType-
-
getSwaggerDefKey
public String getSwaggerDefKey()
Function to set Swagger definition path- Returns:
-
setSwaggerDefKey
public void setSwaggerDefKey(String swaggerDefKey)
Function to set Swagger definition path- Parameters:
swaggerDefKey-
-
-