Modifier and Type | Method and Description |
---|---|
boolean |
hasRwAccess() |
byte[] |
hubRequestSync(String req_first_line,
byte[] req_head_and_body,
int mstimeout) |
boolean |
isConnected() |
void |
onClose(javax.websocket.Session session,
javax.websocket.CloseReason closeReason) |
void |
onMessage(ByteBuffer raw_data,
javax.websocket.Session session) |
void |
onOpen(javax.websocket.Session session) |
void |
run() |
public byte[] hubRequestSync(String req_first_line, byte[] req_head_and_body, int mstimeout) throws YAPI_Exception, InterruptedException
req_first_line
- first line of request without space, HTTP1.1 or \r\nreq_head_and_body
- http headers with double \r\n followed by potential bodymstimeout
- number of milisecond allowed to the request to finishYAPI_Exception
InterruptedException
public boolean isConnected()
public boolean hasRwAccess()
public void onOpen(javax.websocket.Session session)
public void onMessage(ByteBuffer raw_data, javax.websocket.Session session)
public void onClose(javax.websocket.Session session, javax.websocket.CloseReason closeReason)
Copyright © 2018. All rights reserved.