Class HttpRestartServer
- java.lang.Object
- org.springframework.boot.devtools.restart.server.HttpRestartServer
public class HttpRestartServer extends Object
A HTTP server that can be used to upload updatedClassLoaderFiles
and trigger restarts.- Since:
- 1.3.0
- See Also:
RestartServer
Constructor Summary
Constructors Constructor Description HttpRestartServer(RestartServer restartServer)
Create a newHttpRestartServer
instance.HttpRestartServer(SourceFolderUrlFilter sourceFolderUrlFilter)
Create a newHttpRestartServer
instance.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handle(org.springframework.http.server.ServerHttpRequest request, org.springframework.http.server.ServerHttpResponse response)
Handle a server request.
Constructor Detail
HttpRestartServer
public HttpRestartServer(SourceFolderUrlFilter sourceFolderUrlFilter)
Create a newHttpRestartServer
instance.- Parameters:
sourceFolderUrlFilter
- the source filter used to link remote folder to the local classpath
HttpRestartServer
public HttpRestartServer(RestartServer restartServer)
Create a newHttpRestartServer
instance.- Parameters:
restartServer
- the underlying restart server
Method Detail
handle
public void handle(org.springframework.http.server.ServerHttpRequest request, org.springframework.http.server.ServerHttpResponse response) throws IOException
Handle a server request.- Parameters:
request
- the requestresponse
- the response- Throws:
IOException
- in case of I/O errors