private String getConnectionURL(ModuleEntity module) { String path = removeFlowPathIfExists(module.getConnectionURL()); return path + ModuleDriver.REST_FLOW; }
private String getConnectionURL(ModuleEntity module) { String path = removeFlowPathIfExists(module.getConnectionURL()); return path + ModuleDriver.REST_FLOW; }
public String getModuleContext() { final String groupConnectionURL = requirementService.findByModuleCod(modulePK).getConnectionURL(); try { final String path = new URL(groupConnectionURL).getPath(); int indexOf = path.indexOf('/', 1); if(indexOf > 0) { return path.substring(0, indexOf); } return groupConnectionURL; } catch (Exception e) { throw SingularServerException.rethrow(String.format("Erro ao tentar fazer o parse da URL: %s", groupConnectionURL), e); } }
public String getModuleContext() { final String groupConnectionURL = getModule().getConnectionURL(); try { final String path = new URL(groupConnectionURL).getPath(); if (path.endsWith("/")){ return path.substring(0, path.length() - 1); } else { return path; } } catch (Exception e) { throw SingularServerException.rethrow(String.format("Erro ao tentar fazer o parse da URL: %s", groupConnectionURL), e); } }
public String getModuleContext() { final String groupConnectionURL = getModule().getConnectionURL(); try { final String path = new URL(groupConnectionURL).getPath(); int indexOf = path.indexOf('/', 1); if(indexOf > 0) { return path.substring(0, indexOf); } return groupConnectionURL; } catch (Exception e) { throw SingularServerException.rethrow(String.format("Erro ao tentar fazer o parse da URL: %s", groupConnectionURL), e); } }
@Override public String getModuleContext() { final String groupConnectionURL = getModule().getConnectionURL(); try { final String path = new URL(groupConnectionURL).getPath(); if (path.endsWith("/")) { return path.substring(0, path.length() - 1); } else { return path; } } catch (Exception e) { throw SingularServerException.rethrow(String.format("Erro ao tentar fazer o parse da URL: %s", groupConnectionURL), e); } }