Class HttpRestartServer
java.lang.Object
org.springframework.boot.devtools.restart.server.HttpRestartServer
An HTTP server that can be used to upload updated
ClassLoaderFiles and trigger
restarts.- Since:
- 1.3.0
- Author:
- Phillip Webb
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionHttpRestartServer(RestartServer restartServer) Create a newHttpRestartServerinstance.HttpRestartServer(SourceDirectoryUrlFilter sourceDirectoryUrlFilter) Create a newHttpRestartServerinstance. -
Method Summary
Modifier and TypeMethodDescriptionvoidhandle(ServerHttpRequest request, ServerHttpResponse response) Handle a server request.
-
Constructor Details
-
HttpRestartServer
Create a newHttpRestartServerinstance.- Parameters:
sourceDirectoryUrlFilter- the source filter used to link remote directory to the local classpath
-
HttpRestartServer
Create a newHttpRestartServerinstance.- Parameters:
restartServer- the underlying restart server
-
-
Method Details
-
handle
Handle a server request.- Parameters:
request- the requestresponse- the response- Throws:
IOException- in case of I/O errors
-