Interface LocalServerEnvironment
public interface LocalServerEnvironment
Provides access to common attributes of a local server.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanintgetPort()booleanvoidThis call will block until the server is fully initialized and ready to process incoming http requests.
-
Method Details
-
getAppDir
File getAppDir()- Returns:
- the directory containing the application files
-
getAddress
String getAddress()- Returns:
- the address at which the server is running
-
getPort
int getPort()- Returns:
- the port to which the server is bound
-
getHostName
String getHostName()- Returns:
- the host name at which the server is running.
-
waitForServerToStart
This call will block until the server is fully initialized and ready to process incoming http requests.- Throws:
InterruptedException
-
enforceApiDeadlines
boolean enforceApiDeadlines()- Returns:
- Whether or not API deadlines should be emulated.
-
simulateProductionLatencies
boolean simulateProductionLatencies()- Returns:
- Whether or not local services should simulate production latencies.
-