VxSoapConfiguration extends Configuration { protected String generateUrlString(String protocol, String host, int port, String path, String query) { if (("http".equalsIgnoreCase(protocol) && port == 80) || ("https".equalsIgnoreCase(protocol) && port == 443)) { port = -1; } try { return new URI(protocol, null, host, port, path, query, null).toString(); } catch (URISyntaxException e){ LOG.error("Error generating url: " + e.getMessage()); throw new RuntimeException(e); } }  ServicesEnabled getServicesEnabled(); void setServicesEnabled(ServicesEnabled service); String getTemplate(); String getDefaultName(); HdrConfiguration getHdrConfiguration(); PgdConfiguration getPgdConfiguration(); void setPgdConfiguration(PgdConfiguration pgdConfiguration); VlerConfiguration getVlerConfiguration(); void setVlerConfiguration(VlerConfiguration vlerConfiguration); DodConfiguration getDodConfiguration(); MviConfiguration getMviConfiguration(); void setMviConfiguration(MviConfiguration mviConfiguration); H2Configuration getH2Configuration(); void setH2Configuration(H2Configuration h2Config); void setHdrConfiguration(HdrConfiguration hdrConfiguration); void setDodConfiguration(DodConfiguration dodConfiguration);  }
@Test public void testGenerateUrl() { VxSoapConfiguration cfg = new VxSoapConfiguration(); assertEquals(cfg.generateUrlString("http", "10.4.4.104", 80, "/jMeadows/JMeadowsDataService", "wsdl"), "http: assertEquals(cfg.generateUrlString("https", "10.4.4.104", 443, "/jMeadows/JMeadowsDataService", "wsdl"), "https: assertEquals(cfg.generateUrlString("http", "10.4.4.104", 8080, "/jMeadows/JMeadowsDataService", "wsdl"), "http: assertEquals(cfg.generateUrlString("https", "10.4.4.104", 8443, "/jMeadows/JMeadowsDataService", "wsdl"), "https: }