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
ConstructorDescriptionHttpRestartServer
(RestartServer restartServer) Create a newHttpRestartServer
instance.HttpRestartServer
(SourceDirectoryUrlFilter sourceDirectoryUrlFilter) Create a newHttpRestartServer
instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
handle
(ServerHttpRequest request, ServerHttpResponse response) Handle a server request.
-
Constructor Details
-
HttpRestartServer
Create a newHttpRestartServer
instance.- Parameters:
sourceDirectoryUrlFilter
- the source filter used to link remote directory to the local classpath
-
HttpRestartServer
Create a newHttpRestartServer
instance.- 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
-