(S) origin for a specific WebSocket URI * * @param uri * @return A string of the endpoint converted to HTTP protocol (http[s]://host[:port]) */ private static String getDefaultOrigin(String uri) { try { String defaultOrigin; String scheme = ""; URI requestURI = new URI(uri); ...