Interface ServerConfig
-
public interface ServerConfigThis interface should be implemented
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetHost(String transport)Function to retrieve server host name by giving a transport.StringgetHost(org.apache.synapse.api.API api)Function to retrieve server host name for host entry in swagger definition (API).
-
-
-
Method Detail
-
getHost
String getHost(org.apache.synapse.api.API api) throws org.apache.axis2.AxisFault
Function to retrieve server host name for host entry in swagger definition (API).- Returns:
- server host name
- Throws:
org.apache.axis2.AxisFault- error occurred while retrieving the host name.
-
getHost
String getHost(String transport) throws org.apache.axis2.AxisFault
Function to retrieve server host name by giving a transport.- Parameters:
transport- name of the transport. ex: HTTP/ HTTPS- Returns:
- server host name
- Throws:
org.apache.axis2.AxisFault- error occurred while retrieving the host name.
-
-