public static final class ServerConnection.ResponseProvider extends Object
V8Request.createSuccessResponse(long, org.netbeans.lib.v8debug.V8Body, org.netbeans.lib.v8debug.vars.ReferencedValue[], boolean)
or V8Request.createErrorResponse(long, boolean, java.lang.String)
.Modifier and Type | Method and Description |
---|---|
static ServerConnection.ResponseProvider |
create(V8Response response)
Create a synchronous response to a debugger request.
|
static ServerConnection.ResponseProvider |
createLazy()
Create an ampty asynchronous response provider.
|
void |
setResponse(V8Response response)
Set the asynchronous response.
|
public static ServerConnection.ResponseProvider create(V8Response response)
response
- The response.
Use V8Request.createSuccessResponse(long, org.netbeans.lib.v8debug.V8Body, org.netbeans.lib.v8debug.vars.ReferencedValue[], boolean)
or V8Request.createErrorResponse(long, boolean, java.lang.String)
to create the response.public static ServerConnection.ResponseProvider createLazy()
ServerConnection.ResponseProvider.setResponse(org.netbeans.lib.v8debug.V8Response)
on the
returned object to set the response asynchronously.public void setResponse(V8Response response) throws IOException
response
- The response.
Use V8Request.createSuccessResponse(long, org.netbeans.lib.v8debug.V8Body, org.netbeans.lib.v8debug.vars.ReferencedValue[], boolean)
or V8Request.createErrorResponse(long, boolean, java.lang.String)
to create the response.IOException
- thrown when an IO problem occurs.