Package org.wso2.carbon.rest.api
Class CarbonServerConfig
- java.lang.Object
-
- org.wso2.carbon.rest.api.CarbonServerConfig
-
- All Implemented Interfaces:
org.wso2.carbon.mediation.commons.rest.api.swagger.ServerConfig
public class CarbonServerConfig extends Object implements org.wso2.carbon.mediation.commons.rest.api.swagger.ServerConfig
-
-
Constructor Summary
Constructors Constructor Description CarbonServerConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getHost(String transport)
String
getHost(org.apache.synapse.api.API api)
Function to retrieve host for the swagger definition Host is extracted from following sources 1.
-
-
-
Constructor Detail
-
CarbonServerConfig
public CarbonServerConfig() throws APIException
- Throws:
APIException
-
-
Method Detail
-
getHost
public String getHost(org.apache.synapse.api.API api) throws org.apache.axis2.AxisFault
Function to retrieve host for the swagger definition Host is extracted from following sources 1. Host configured in API definition 2. WSDLEPRPrefix configured in axis2.xml under http or https transport listeners 3. "hostname" parameter in axis2.xml (combined with http port configured for transport listener) 4. Server (machine) host (combined with http port configured for transport listener)- Specified by:
getHost
in interfaceorg.wso2.carbon.mediation.commons.rest.api.swagger.ServerConfig
- Parameters:
api
- api that required to retrieve host- Returns:
- return host
- Throws:
org.apache.axis2.AxisFault
-
-