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 updatedClassLoaderFilesand trigger restarts.- Since:
- 1.3.0
- See Also:
RestartServer
Constructor Summary
Constructors Constructor Description HttpRestartServer(RestartServer restartServer)Create a newHttpRestartServerinstance.HttpRestartServer(SourceFolderUrlFilter sourceFolderUrlFilter)Create a newHttpRestartServerinstance.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandle(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 newHttpRestartServerinstance.- Parameters:
sourceFolderUrlFilter- the source filter used to link remote folder to the local classpath
HttpRestartServer
public HttpRestartServer(RestartServer restartServer)
Create a newHttpRestartServerinstance.- 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