Class HTTPValidatorWebApp
java.lang.Object
cf.maybelambda.httpvalidator.springboot.HTTPValidatorWebApp
Main class for starting the HTTP Validator web application.
Finds components, reads configuration, and starts the web server.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Main method to run the Spring Boot application.static void
restartAppContextWithNewRunSchedule
(String cronExpression) Restarts the application context with a new cron expression for scheduling tasks.
-
Field Details
-
RUN_SCHEDULE_PROPERTY
- See Also:
-
-
Constructor Details
-
HTTPValidatorWebApp
public HTTPValidatorWebApp()
-
-
Method Details
-
main
Main method to run the Spring Boot application.- Parameters:
args
- Command line arguments
-
restartAppContextWithNewRunSchedule
Restarts the application context with a new cron expression for scheduling tasks. This method creates a new thread to close the current context and restart the application with updated arguments that override the expression previously used.- Parameters:
cronExpression
- New cron expression
-