Class APICreationRequestBean
java.lang.Object
org.wso2.am.integration.test.utils.bean.AbstractRequest
org.wso2.am.integration.test.utils.bean.APICreationRequestBean
Bean class to contain the Information needed to create and update process of a API.
-
Field Summary
Fields inherited from class org.wso2.am.integration.test.utils.bean.AbstractRequest
action -
Constructor Summary
ConstructorsConstructorDescriptionAPICreationRequestBean(String apiName, String context, String version, String provider) constructor of the APICreationRequestBean class with default endpointAPICreationRequestBean(String apiName, String context, String version, String provider, String apiTier, String resourceTier, URL endpointUrl) constructor of the APICreationRequestBean class only with production urlAPICreationRequestBean(String apiName, String context, String version, String provider, URL endpointUrl) constructor of the APICreationRequestBean class only with production urlAPICreationRequestBean(String apiName, String context, String version, String provider, URL endpointUrl, URL sandboxUrl) constructor of the APICreationRequestBean class with production url invalid input: '&' sand box urlAPICreationRequestBean(String apiName, String context, String version, String provider, URL endpointUrl, List<APIResourceBean> resourceBeans) constructor of the APICreationRequestBean class only with production urlAPICreationRequestBean(String apiName, String context, String version, String provider, ArrayList<String> productionEndpoints) constructor of the APICreationRequestBean classAPICreationRequestBean(String apiName, String context, String version, String provider, List<String> productionEndpoints, List<String> sandboxEndpoints) constructor of the APICreationRequestBean class -
Method Summary
Modifier and TypeMethodDescriptionorg.json.JSONObjectorg.json.JSONObjectorg.json.JSONObjectgetName()getRoles()getTags()getTier()getType()getWsdl()voidinit()voidvoidvoidsetBizOwner(String bizOwner) voidsetBizOwnerMail(String bizOwnerMail) voidsetContext(String context) voidsetCorsConfiguration(org.json.JSONObject corsConfiguration) voidsetDefault_version(String defaultVersion) voidsetDefaultVersion(String defaultVersion) voidsetDefaultVersionChecked(String defaultVersionChecked) voidsetDescription(String description) voidsetEndpoint(org.json.JSONObject endpoint) voidsetEndpointAuthType(String endpointAuthType) voidsetEndpointType(String endpointType) voidsetEndpointUrl(URL endpointUrl) voidsetEnvironment(String environment) voidsetEpPassword(String epPassword) voidsetEpUsername(String epUsername) voidsetFaultSequence(String faultSequence) voidsetHttpChecked(String httpChecked) voidsetHttpsChecked(String httpsChecked) voidsetInSequence(String inSequence) voidsetMutualSSLChecked(String mutualSSLChecked) To set mutual ssl.voidvoidsetOauth2Checked(String oauth2Checked) voidsetOutSequence(String outSequence) voidsetProductionTps(String productionTps) voidsetProvider(String provider) voidsetResourceBeanList(List<APIResourceBean> resourceBeanList) voidsetResourceCount(String resourceCount) voidvoidsetSandbox(String sandbox) voidsetSetEndpointSecurityDirectlyToEndpoint(Boolean setEndpointSecurityDirectlyToEndpoint) voidsetSubPolicyCollection(String subPolicyCollection) voidsetSwagger(String swagger) voidvoidsetTechOwner(String techOwner) voidsetTechOwnerMail(String techOwnerMail) voidsetThumbUrl(String thumbUrl) voidvoidsetTiersCollection(String tiersCollection) voidvoidsetVersion(String version) voidsetVisibility(String visibility) voidMethods inherited from class org.wso2.am.integration.test.utils.bean.AbstractRequest
addParameter, generateRequestParameters, generateRequestParameters
-
Constructor Details
-
APICreationRequestBean
public APICreationRequestBean(String apiName, String context, String version, String provider, String apiTier, String resourceTier, URL endpointUrl) throws APIManagerIntegrationTestException constructor of the APICreationRequestBean class only with production url- Parameters:
apiName- - Name of the APicontext- - API contextversion- - API versionprovider- - Api ProviderapiTier- - Api TierresourceTier- - Resource TierendpointUrl- - Endpoint URL of the API- Throws:
APIManagerIntegrationTestException- - Exception throws when constructing the end point url JSON
-
APICreationRequestBean
public APICreationRequestBean(String apiName, String context, String version, String provider, URL endpointUrl) throws APIManagerIntegrationTestException constructor of the APICreationRequestBean class only with production url- Parameters:
apiName- - Name of the APicontext- - API contextversion- - API versionendpointUrl- - Endpoint URL of the API- Throws:
APIManagerIntegrationTestException- - Exception throws when constructing the end point url JSON
-
APICreationRequestBean
public APICreationRequestBean(String apiName, String context, String version, String provider, URL endpointUrl, List<APIResourceBean> resourceBeans) throws APIManagerIntegrationTestException constructor of the APICreationRequestBean class only with production url- Parameters:
apiName- - Name of the APicontext- - API contextversion- - API versionendpointUrl- - Endpoint URL of the APIresourceBeans- - Resource list- Throws:
APIManagerIntegrationTestException- - Exception throws when constructing the end point url JSON
-
APICreationRequestBean
public APICreationRequestBean(String apiName, String context, String version, String provider, ArrayList<String> productionEndpoints) throws APIManagerIntegrationTestException constructor of the APICreationRequestBean class- Parameters:
apiName- - Name of the APIcontext- - API Contextversion- - API versionprovider- - API providerproductionEndpoints- - Load Balanced Production Endpoints Array- Throws:
APIManagerIntegrationTestException- - Exception throws when constructing the end point url JSON
-
APICreationRequestBean
public APICreationRequestBean(String apiName, String context, String version, String provider, URL endpointUrl, URL sandboxUrl) throws APIManagerIntegrationTestException constructor of the APICreationRequestBean class with production url invalid input: '&' sand box url- Parameters:
apiName- - Name of the APicontext- - API contextversion- - API versionendpointUrl- - Production Endpoint URL of the APIsandboxUrl- - Sandbox Endpoint URL of the API- Throws:
APIManagerIntegrationTestException- - Exception throws when constructing the end point url JSON
-
APICreationRequestBean
public APICreationRequestBean(String apiName, String context, String version, String provider, List<String> productionEndpoints, List<String> sandboxEndpoints) throws APIManagerIntegrationTestException constructor of the APICreationRequestBean class- Parameters:
apiName- - Name of the APIcontext- - API Contextversion- - API Versionprovider- - API providerproductionEndpoints- - Load balanced Production Endpoints ArraysandboxEndpoints- - Load balanced Sandbox Endpoints Array- Throws:
APIManagerIntegrationTestException
-
APICreationRequestBean
public APICreationRequestBean(String apiName, String context, String version, String provider) throws APIManagerIntegrationTestException constructor of the APICreationRequestBean class with default endpoint- Parameters:
apiName- - Name of the APicontext- - API contextversion- - API version- Throws:
APIManagerIntegrationTestException- - Exception throws when constructing the end point url JSON
-
-
Method Details
-
setMutualSSLChecked
To set mutual ssl.- Parameters:
mutualSSLChecked- Parameter to specify whether mutual ssl enabled.
-
setOauth2Checked
-
getEnvironment
-
setEnvironment
-
setName
-
setContext
-
getEndpoint
public org.json.JSONObject getEndpoint() -
setEndpoint
public void setEndpoint(org.json.JSONObject endpoint) -
setDefaultVersion
-
getBizOwner
-
setBizOwner
-
getBizOwnerMail
-
setBizOwnerMail
-
getTechOwner
-
setTechOwner
-
getTechOwnerMail
-
setTechOwnerMail
-
setAction
public void setAction()- Specified by:
setActionin classAbstractRequest
-
setAction
- Overrides:
setActionin classAbstractRequest
-
init
public void init()- Specified by:
initin classAbstractRequest
-
getEpUsername
-
setEpUsername
-
getEpPassword
-
setEpPassword
-
getResourceBeanList
-
setResourceBeanList
-
getSandbox
-
setSandbox
-
getRoles
-
setRoles
-
getWsdl
-
setWsdl
-
getProvider
-
setProvider
-
getName
-
getEndpointConfig
public org.json.JSONObject getEndpointConfig() -
getContext
-
getVisibility
-
setVisibility
-
getVersion
-
setVersion
-
getDescription
-
setDescription
-
getEndpointType
-
setEndpointType
-
getEndpointAuthType
-
setEndpointAuthType
-
getHttpChecked
-
setHttpChecked
-
getHttpsChecked
-
setHttpsChecked
-
getTags
-
setTags
-
getTier
-
setTier
-
getThumbUrl
-
setThumbUrl
-
getTiersCollection
-
setTiersCollection
-
getType
-
setType
-
getResourceCount
-
setResourceCount
-
getDefaultVersion
-
setDefault_version
-
getDefaultVersionChecked
-
setDefaultVersionChecked
-
getInSequence
-
setInSequence
-
getOutSequence
-
setOutSequence
-
getFaultSequence
-
setFaultSequence
-
getCorsConfiguration
public org.json.JSONObject getCorsConfiguration() -
setCorsConfiguration
public void setCorsConfiguration(org.json.JSONObject corsConfiguration) -
getSwagger
-
setSwagger
-
getSubPolicyCollection
-
setSubPolicyCollection
-
getProductionTps
-
setProductionTps
-
getEndpointUrl
-
setEndpointUrl
-
getSetEndpointSecurityDirectlyToEndpoint
-
setSetEndpointSecurityDirectlyToEndpoint
-