Package org.basex.http.ws
Class WsResponse
java.lang.Object
org.basex.http.web.WebResponse
org.basex.http.ws.WsResponse
Creates WebSocket responses.
- Author:
- BaseX Team 2005-21, BSD License, Johannes Finckh
-
Nested Class Summary
Nested classes/interfaces inherited from class org.basex.http.web.WebResponse
WebResponse.Response -
Field Summary
Fields inherited from class org.basex.http.web.WebResponse
ctx, qc -
Method Summary
Modifier and TypeMethodDescriptionprotected voidBinds values to the function parameters.protected voidinit(WebFunction function) Creates and returns a function instance that can be evaluated.serialize(boolean body) Serializes the response.Methods inherited from class org.basex.http.web.WebResponse
create
-
Method Details
-
init
Description copied from class:WebResponseCreates and returns a function instance that can be evaluated.- Specified by:
initin classWebResponse- Parameters:
function- function template- Throws:
QueryException- query exception
-
bind
Description copied from class:WebResponseBinds values to the function parameters.- Specified by:
bindin classWebResponse- Parameters:
args- argumentsdata- additional data (result, function, error, can benull)- Throws:
QueryException- query exception
-
serialize
Description copied from class:WebResponseSerializes the response.- Specified by:
serializein classWebResponse- Parameters:
body- serialize body (iffalse, only the headers will be assigned)- Returns:
- response type
- Throws:
QueryException- query exceptionIOException- I/O exception
-