parent
cc55354e73
commit
93d1aa9588
|
@ -5,6 +5,7 @@ import eu.openaire.urls_worker.controllers.FullTextsController;
|
||||||
import eu.openaire.urls_worker.util.UriBuilder;
|
import eu.openaire.urls_worker.util.UriBuilder;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.boot.CommandLineRunner;
|
import org.springframework.boot.CommandLineRunner;
|
||||||
import org.springframework.boot.SpringApplication;
|
import org.springframework.boot.SpringApplication;
|
||||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
|
|
|
@ -94,6 +94,14 @@ public class GeneralController {
|
||||||
return ResponseEntity.status(HttpStatus.FORBIDDEN).build();
|
return ResponseEntity.status(HttpStatus.FORBIDDEN).build();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO - If the Controller's ip is actually a domain name, then we have to calculate its IP-address one time
|
||||||
|
// Ad a regex to check that the controller's "IP" contains only numbers and dots, if not, then we have a DOMAIN.
|
||||||
|
// So use the following code to get the number-IP address:
|
||||||
|
/*
|
||||||
|
String address = java.net.InetAddress.getByName(controllerIp).getHostAddress();
|
||||||
|
// TOdo - checks for potential "null" or exceptions in the above code, in case the domain resolution failed
|
||||||
|
* */
|
||||||
|
|
||||||
return null; // The checks are passing.
|
return null; // The checks are passing.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue