- if(access.getProperty(Config.AAF_URL)==null) {
- access.setProperty(Config.AAF_URL, "https://AAF_LOCATE/AAF_NS.service:2.1");
- }
- AAFCon<?> aafCon = AAFCon.newInstance(access);
- Future<Configuration> acf;
- RosettaDF<Configuration> configDF = new RosettaEnv().newDataFactory(Configuration.class);
- acf = aafCon.client(new SingleEndpointLocator(locateUrl))
- .read("/configure/"+user+"/aaf", configDF);
- if (acf.get(aafCon.connTimeout)) {
- for(Props p : acf.value.getProps()) {
- addProp(p.getTag(),p.getValue());
- if(access.getProperty(p.getTag())==null) {
- access.setProperty(p.getTag(), p.getValue());
- }
- }
- } else {
- access.log(Level.INFO,acf.body());
- }
- } catch (LocatorException | APIException | URISyntaxException e) {
- access.log(e);
- }
+ if(access.getProperty(Config.AAF_URL)==null) {
+ access.setProperty(Config.AAF_URL, Defaults.AAF_ROOT+".service:"+Defaults.AAF_VERSION);
+ }
+ AAFCon<?> aafCon = AAFCon.newInstance(access);
+ Future<Configuration> acf;
+ RosettaDF<Configuration> configDF = new RosettaEnv().newDataFactory(Configuration.class);
+ acf = aafCon.client(new SingleEndpointLocator(locateUrl))
+ .read("/configure/"+user+"/aaf", configDF);
+ if (acf.get(aafCon.connTimeout)) {
+ for(Props p : acf.value.getProps()) {
+ addProp(p.getTag(),p.getValue());
+ if(access.getProperty(p.getTag())==null) {
+ access.setProperty(p.getTag(), p.getValue());
+ }
+ }
+ } else {
+ access.log(Level.INFO,acf.body());
+ }
+ } catch (LocatorException | APIException | URISyntaxException e) {
+ access.log(e);
+ }