Main Class
Following shows the client code snippet in main class retrieve all the network elements.
public class OmsRestClientApplication {
public static void main(String[] args) {
AuthInfo authInfo = new AuthInfo();
authInfo.setServerIP("135.250.184.42");
authInfo.setServerPort("8443");
authInfo.setServerUser("alcatel");
authInfo.setServerPwd("Lucent1.!");
authInfo.setPresentationIP("135.250.184.43");
/**create OMSRestTemplate instance**/
OMSRestTemplate omsRestTemplate = new OMSRestTemplate ();
/**authenticate*/
omsRestTemplate.authenticate(authInfo);
BulkUplaodService bSvc = new BulkUplaodService ();
List<String> resp = bSvc.getAllNetworkElements(omsRestTemplate);
}
}