Package org.basex.http.ws
Class WsResponse
- java.lang.Object
-
- org.basex.http.web.WebResponse
-
- org.basex.http.ws.WsResponse
-
public final class WsResponse extends WebResponse
Creates WebSocket responses.- Author:
- BaseX Team 2005-23, 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Expr[]init(WebFunction function, Object data)Initializes the evaluation of the specified function and binds function arguments.WebResponse.Responseserialize(boolean body)Serializes the response.-
Methods inherited from class org.basex.http.web.WebResponse
create
-
-
-
-
Method Detail
-
init
protected Expr[] init(WebFunction function, Object data) throws QueryException
Description copied from class:WebResponseInitializes the evaluation of the specified function and binds function arguments.- Specified by:
initin classWebResponse- Parameters:
function- web functiondata- additional data (result, function, error, can benull)- Returns:
- function arguments
- Throws:
QueryException- query exception
-
serialize
public WebResponse.Response serialize(boolean body) throws QueryException, IOException
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
-
-