public class ChromeDiscoveryHandler extends java.lang.Object implements HttpHandler
chrome://inspect/devices that we're
"one of them". Note that we are being discovered automatically by the name of our socket
as defined in LocalSocketHttpServer. After discovery, we're required to provide
some context on how exactly to display and inspect what we have.| Constructor and Description |
|---|
ChromeDiscoveryHandler(android.content.Context context,
java.lang.String inspectorPath) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
handleRequest(SocketLike socket,
LightHttpRequest request,
LightHttpResponse response) |
void |
register(HandlerRegistry registry) |
public ChromeDiscoveryHandler(android.content.Context context,
java.lang.String inspectorPath)
public void register(HandlerRegistry registry)
public boolean handleRequest(SocketLike socket, LightHttpRequest request, LightHttpResponse response)
handleRequest in interface HttpHandler