Commit 8f1300b0 authored by Brian Long's avatar Brian Long
Browse files

added URL logging

parent 4fb9724d
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -37,6 +37,9 @@ public class ApsClientCxfImpl extends ApsClient implements InitializingBean {
			this.logger.warn("Setting JAX-RS runtime delegate to the CXF library; was: " + RuntimeDelegate.getInstance().getClass().getName());
			RuntimeDelegate.setInstance(new RuntimeDelegateImpl());
		}
		
		if (this.logger.isInfoEnabled())
			this.logger.info("APS API Base URL: " + this.getConfig().getBaseUrl());
	}
	
	public WebClient getCxfClient() {
@@ -47,7 +50,11 @@ public class ApsClientCxfImpl extends ApsClient implements InitializingBean {
		if (authFilter != null)
			providersAndFilters.add(authFilter);

		return WebClient.create(this.getConfig().getBaseUrl(), providersAndFilters);
		// we can't use JAXRSClientFactory with a JAXRS client (duh!)
		// so we need to create a CXF client
		WebClient client = WebClient.create(this.getConfig().getBaseUrl(), providersAndFilters);
		
		return client;
	}
	
	@Override
+3 −0
Original line number Diff line number Diff line
@@ -30,6 +30,9 @@ public class ApsClientJerseyImpl extends ApsClient implements InitializingBean {
			this.logger.warn("Setting JAX-RS runtime delegate to the Jersey library; was: " + RuntimeDelegate.getInstance().getClass().getName());
			RuntimeDelegate.setInstance(new RuntimeDelegateImpl());
		}
		
		if (this.logger.isInfoEnabled())
			this.logger.info("APS API Base URL: " + this.getConfig().getBaseUrl());
	}
	
	@Override