public interface DevModeHandler extends RequestHandler
Modifier and Type | Method and Description |
---|---|
String |
getFailedOutput()
Return the dev server console output when a compilation error happened.
|
File |
getProjectRoot()
Gets the project root folder.
|
HttpURLConnection |
prepareConnection(String path,
String method)
Prepare a HTTP connection against the dev server.
|
boolean |
serveDevModeRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Serve a file by proxying to the dev server.
|
void |
stop()
Stop the dev-server.
|
handleRequest
String getFailedOutput()
HttpURLConnection prepareConnection(String path, String method) throws IOException
path
- the file to request, needs to be safemethod
- the http method to useIOException
- on connection errorboolean serveDevModeRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
request
- the servlet requestresponse
- the servlet responseIOException
- in the case something went wrong like connection refusedvoid stop()
File getProjectRoot()
Copyright © 2022. All rights reserved.