Skip to content

Instantly share code, notes, and snippets.

@dmarrazzo
Created August 25, 2017 08:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmarrazzo/712eb2d99ec0b933c839b23b2a9c079c to your computer and use it in GitHub Desktop.
Save dmarrazzo/712eb2d99ec0b933c839b23b2a9c079c to your computer and use it in GitHub Desktop.
utility class to load endpoint and wsdl URL from system props
package utils;
public class EnvInfo {
private static String MOCK = "http://mas460:8088/mockPecManagerWsPortBinding";
public static String wsdl(String name){
return System.getProperty(name+"-wsdl", endpoint(name)+"?WSDL");
}
public static String endpoint(String name){
return System.getProperty(name, MOCK);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment