LaserAddressSource.java 669 B

12345678910111213141516171819202122
  1. package com.fdkankan.manage.httpClient.address;
  2. import com.dtflys.forest.callback.AddressSource;
  3. import com.dtflys.forest.http.ForestAddress;
  4. import com.dtflys.forest.http.ForestRequest;
  5. import org.springframework.beans.factory.annotation.Value;
  6. import org.springframework.stereotype.Component;
  7. @Component
  8. public class LaserAddressSource implements AddressSource {
  9. @Value("${4dkk.laserService.basePath}")
  10. private String basePath;
  11. @Value("${4dkk.laserService.port}")
  12. private String port;
  13. @Override
  14. public ForestAddress getAddress(ForestRequest forestRequest) {
  15. return new ForestAddress("","",Integer.valueOf(port),basePath);
  16. }
  17. }