Class APICreationRequestBean

java.lang.Object
org.wso2.am.integration.test.utils.bean.AbstractRequest
org.wso2.am.integration.test.utils.bean.APICreationRequestBean

public class APICreationRequestBean extends AbstractRequest
Bean class to contain the Information needed to create and update process of a API.
  • 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 APi
      context - - API context
      version - - API version
      provider - - Api Provider
      apiTier - - Api Tier
      resourceTier - - Resource Tier
      endpointUrl - - 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 APi
      context - - API context
      version - - API version
      endpointUrl - - 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 APi
      context - - API context
      version - - API version
      endpointUrl - - Endpoint URL of the API
      resourceBeans - - 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 API
      context - - API Context
      version - - API version
      provider - - API provider
      productionEndpoints - - 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 APi
      context - - API context
      version - - API version
      endpointUrl - - Production Endpoint URL of the API
      sandboxUrl - - 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 API
      context - - API Context
      version - - API Version
      provider - - API provider
      productionEndpoints - - Load balanced Production Endpoints Array
      sandboxEndpoints - - 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 APi
      context - - API context
      version - - API version
      Throws:
      APIManagerIntegrationTestException - - Exception throws when constructing the end point url JSON
  • Method Details

    • setMutualSSLChecked

      public void setMutualSSLChecked(String mutualSSLChecked)
      To set mutual ssl.
      Parameters:
      mutualSSLChecked - Parameter to specify whether mutual ssl enabled.
    • setOauth2Checked

      public void setOauth2Checked(String oauth2Checked)
    • getEnvironment

      public String getEnvironment()
    • setEnvironment

      public void setEnvironment(String environment)
    • setName

      public void setName(String name)
    • setContext

      public void setContext(String context)
    • getEndpoint

      public org.json.JSONObject getEndpoint()
    • setEndpoint

      public void setEndpoint(org.json.JSONObject endpoint)
    • setDefaultVersion

      public void setDefaultVersion(String defaultVersion)
    • getBizOwner

      public String getBizOwner()
    • setBizOwner

      public void setBizOwner(String bizOwner)
    • getBizOwnerMail

      public String getBizOwnerMail()
    • setBizOwnerMail

      public void setBizOwnerMail(String bizOwnerMail)
    • getTechOwner

      public String getTechOwner()
    • setTechOwner

      public void setTechOwner(String techOwner)
    • getTechOwnerMail

      public String getTechOwnerMail()
    • setTechOwnerMail

      public void setTechOwnerMail(String techOwnerMail)
    • setAction

      public void setAction()
      Specified by:
      setAction in class AbstractRequest
    • setAction

      public void setAction(String action)
      Overrides:
      setAction in class AbstractRequest
    • init

      public void init()
      Specified by:
      init in class AbstractRequest
    • getEpUsername

      public String getEpUsername()
    • setEpUsername

      public void setEpUsername(String epUsername)
    • getEpPassword

      public String getEpPassword()
    • setEpPassword

      public void setEpPassword(String epPassword)
    • getResourceBeanList

      public List<APIResourceBean> getResourceBeanList()
    • setResourceBeanList

      public void setResourceBeanList(List<APIResourceBean> resourceBeanList)
    • getSandbox

      public String getSandbox()
    • setSandbox

      public void setSandbox(String sandbox)
    • getRoles

      public String getRoles()
    • setRoles

      public void setRoles(String roles)
    • getWsdl

      public String getWsdl()
    • setWsdl

      public void setWsdl(String wsdl)
    • getProvider

      public String getProvider()
    • setProvider

      public void setProvider(String provider)
    • getName

      public String getName()
    • getEndpointConfig

      public org.json.JSONObject getEndpointConfig()
    • getContext

      public String getContext()
    • getVisibility

      public String getVisibility()
    • setVisibility

      public void setVisibility(String visibility)
    • getVersion

      public String getVersion()
    • setVersion

      public void setVersion(String version)
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String description)
    • getEndpointType

      public String getEndpointType()
    • setEndpointType

      public void setEndpointType(String endpointType)
    • getEndpointAuthType

      public String getEndpointAuthType()
    • setEndpointAuthType

      public void setEndpointAuthType(String endpointAuthType)
    • getHttpChecked

      public String getHttpChecked()
    • setHttpChecked

      public void setHttpChecked(String httpChecked)
    • getHttpsChecked

      public String getHttpsChecked()
    • setHttpsChecked

      public void setHttpsChecked(String httpsChecked)
    • getTags

      public String getTags()
    • setTags

      public void setTags(String tags)
    • getTier

      public String getTier()
    • setTier

      public void setTier(String tier)
    • getThumbUrl

      public String getThumbUrl()
    • setThumbUrl

      public void setThumbUrl(String thumbUrl)
    • getTiersCollection

      public String getTiersCollection()
    • setTiersCollection

      public void setTiersCollection(String tiersCollection)
    • getType

      public String getType()
    • setType

      public void setType(String type)
    • getResourceCount

      public String getResourceCount()
    • setResourceCount

      public void setResourceCount(String resourceCount)
    • getDefaultVersion

      public String getDefaultVersion()
    • setDefault_version

      public void setDefault_version(String defaultVersion)
    • getDefaultVersionChecked

      public String getDefaultVersionChecked()
    • setDefaultVersionChecked

      public void setDefaultVersionChecked(String defaultVersionChecked)
    • getInSequence

      public String getInSequence()
    • setInSequence

      public void setInSequence(String inSequence)
    • getOutSequence

      public String getOutSequence()
    • setOutSequence

      public void setOutSequence(String outSequence)
    • getFaultSequence

      public String getFaultSequence()
    • setFaultSequence

      public void setFaultSequence(String faultSequence)
    • getCorsConfiguration

      public org.json.JSONObject getCorsConfiguration()
    • setCorsConfiguration

      public void setCorsConfiguration(org.json.JSONObject corsConfiguration)
    • getSwagger

      public String getSwagger()
    • setSwagger

      public void setSwagger(String swagger)
    • getSubPolicyCollection

      public String getSubPolicyCollection()
    • setSubPolicyCollection

      public void setSubPolicyCollection(String subPolicyCollection)
    • getProductionTps

      public String getProductionTps()
    • setProductionTps

      public void setProductionTps(String productionTps)
    • getEndpointUrl

      public URL getEndpointUrl()
    • setEndpointUrl

      public void setEndpointUrl(URL endpointUrl)
    • getSetEndpointSecurityDirectlyToEndpoint

      public Boolean getSetEndpointSecurityDirectlyToEndpoint()
    • setSetEndpointSecurityDirectlyToEndpoint

      public void setSetEndpointSecurityDirectlyToEndpoint(Boolean setEndpointSecurityDirectlyToEndpoint)