APISonar


org.ballerinalang.composer.server.spi.ServiceType.HTTP

> org > ballerinalang > composer > server > spi > ServiceType > HTTP
org APIs ballerinalang APIs composer APIs server APIs spi APIs ServiceType APIs HTTP APIs

Example 1
private String getEndpoint(String endpointName) {
        if (!serviceEPMap.containsKey(endpointName)) {
            return null;
        }
        ServiceInfo serviceInfo = serviceEPMap.get(endpointName);
        String protocol = serviceInfo.getType() == ServiceType.HTTP ? "http" : "ws";
        return protocol + "://" + serverConfig.getHost() + ":" + serverConfig.getPort()
                + ServerConstants.CONTEXT_ROOT
                + "/" + serviceInfo.getPath();

    }