Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. ### Eclipse Workspace Patch 1.0
  2. #P collection-space
  3. Index: bconfig-utils/src/main/java/org/collectionspace/bconfigutils/bootstrap/ServicesRespondingConfigLoadMethod.java
  4. ===================================================================
  5. --- bconfig-utils/src/main/java/org/collectionspace/bconfigutils/bootstrap/ServicesRespondingConfigLoadMethod.java (revision 3396)
  6. +++ bconfig-utils/src/main/java/org/collectionspace/bconfigutils/bootstrap/ServicesRespondingConfigLoadMethod.java (working copy)
  7. @@ -13,13 +13,15 @@
  8. import org.apache.commons.httpclient.HttpClient;
  9. import org.apache.commons.httpclient.HttpMethod;
  10. import org.apache.commons.httpclient.methods.GetMethod;
  11. +import org.apache.log4j.Logger;
  12. import org.dom4j.Document;
  13. import org.dom4j.Element;
  14. -import org.mortbay.log.Log;
  15.  
  16. /** Expects a URL, but will only return it if the service layer is working at this URL */
  17. // XXX CSPACE-88
  18. -public class ServicesRespondingConfigLoadMethod implements ConfigLoadMethod {
  19. +public class ServicesRespondingConfigLoadMethod implements ConfigLoadMethod {
  20. + private static final Logger log=Logger.getLogger(ServicesRespondingConfigLoadMethod.class);
  21. +
  22. private boolean ping_socket(String host,int port) {
  23. try {
  24. Socket s=new Socket(host,port);
  25. @@ -37,7 +39,7 @@
  26. try {
  27. urld = new URL(url);
  28. } catch (MalformedURLException e) {
  29. - Log.warn("Bad URL "+e);
  30. + log.warn("Bad URL "+e);
  31. return false;
  32. }
  33. if(!ping_socket(urld.getHost(),urld.getPort()))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement