public interface DevModeHandler extends RequestHandler
| Modifier and Type | Method and Description |
|---|---|
String |
getFailedOutput()
Return webpack console output when a compilation error happened.
|
boolean |
isDevModeRequest(javax.servlet.http.HttpServletRequest request)
Returns true if it's a request that should be handled by webpack.
|
HttpURLConnection |
prepareConnection(String path,
String method)
Prepare a HTTP connection against webpack-dev-server.
|
boolean |
serveDevModeRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Serve a file by proxying to webpack.
|
void |
stop()
Stop the dev-server.
|
handleRequestString 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 isDevModeRequest(javax.servlet.http.HttpServletRequest request)
request - the servlet requestboolean 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()
Copyright © 2021. All rights reserved.