0

Have this small code snippet

public ApiInfo getApiInformation(){
    return new ApiInfo("EPGRAPH-API",
        "This is EPGRAPH-API created to load Edges and Vertex to TigerGraph",
        "1.0",
        "",
         new Contact("EEPGraph Team", "http://localhost:8080/avc/xyz”, ""),
        "",
        "",
        Collections.emptyList()
    );
}

At the line new Contact("EEPGraph Team", "http://localhost:8080/avc/xyz”, ""), I need to replace http://localhost:8080/avc/xyz dynamically so that every time when application run, it takes url dynamically in stead of hardcoding the value.

Stanislav Kralin
  • 11,070
  • 4
  • 35
  • 58
Sudeep
  • 45
  • 5
  • why don't you pass it as method param? getApiInformation(String URL) – quintin Nov 15 '19 at 11:49
  • What part f the url do you need to be dynamic? The domain? The path? The port? And how do you want to retrieve the dynamic parts of the url? – smac89 Nov 18 '19 at 08:57

0 Answers0