@WebListener public class Jsr356Impl extends Object implements org.bimserver.shared.StreamingSocketInterface, javax.servlet.ServletContextListener
| Constructor and Description |
|---|
Jsr356Impl() |
| Modifier and Type | Method and Description |
|---|---|
void |
contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent) |
void |
contextInitialized(javax.servlet.ServletContextEvent servletContextEvent) |
void |
enableBatching() |
void |
flush() |
OutputStream |
getSendStream() |
void |
onClose(javax.websocket.Session session,
javax.websocket.CloseReason closeReason) |
void |
onError(Throwable exception,
javax.websocket.Session session) |
void |
onMessage(String message,
javax.websocket.Session session) |
void |
onOpen(javax.websocket.Session websocketSession,
javax.websocket.EndpointConfig config) |
Future<Void> |
send(byte[] data,
int start,
int length) |
void |
send(com.fasterxml.jackson.databind.JsonNode request) |
Future<Void> |
sendAsText(byte[] data) |
void |
sendBlocking(byte[] data,
int start,
int length) |
void |
sendBlocking(ByteBuffer data) |
static void |
setAdditionalWebSocketConfigurator(AdditionalWebSocketConfigurator additionalWebSocketConfigurator) |
static void |
setDefaultServletContext(javax.servlet.ServletContext servletContext) |
static void |
setServletContext(javax.websocket.server.ServerContainer serverContainer,
javax.servlet.ServletContext servletContext) |
public void onOpen(javax.websocket.Session websocketSession,
javax.websocket.EndpointConfig config)
public static void setAdditionalWebSocketConfigurator(AdditionalWebSocketConfigurator additionalWebSocketConfigurator)
public static void setServletContext(javax.websocket.server.ServerContainer serverContainer,
javax.servlet.ServletContext servletContext)
public static void setDefaultServletContext(javax.servlet.ServletContext servletContext)
public void contextInitialized(javax.servlet.ServletContextEvent servletContextEvent)
contextInitialized in interface javax.servlet.ServletContextListenerpublic void contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent)
contextDestroyed in interface javax.servlet.ServletContextListenerpublic void onMessage(String message, javax.websocket.Session session)
public void onError(Throwable exception, javax.websocket.Session session)
public void onClose(javax.websocket.Session session,
javax.websocket.CloseReason closeReason)
public void send(com.fasterxml.jackson.databind.JsonNode request)
send in interface org.bimserver.shared.StreamingSocketInterfacepublic OutputStream getSendStream() throws IOException
getSendStream in interface org.bimserver.shared.StreamingSocketInterfaceIOExceptionpublic Future<Void> send(byte[] data, int start, int length)
send in interface org.bimserver.shared.StreamingSocketInterfacepublic Future<Void> sendAsText(byte[] data)
sendAsText in interface org.bimserver.shared.StreamingSocketInterfacepublic void sendBlocking(byte[] data,
int start,
int length)
throws IOException
sendBlocking in interface org.bimserver.shared.StreamingSocketInterfaceIOExceptionpublic void sendBlocking(ByteBuffer data) throws IOException
sendBlocking in interface org.bimserver.shared.StreamingSocketInterfaceIOExceptionpublic void flush()
flush in interface org.bimserver.shared.StreamingSocketInterfacepublic void enableBatching()
enableBatching in interface org.bimserver.shared.StreamingSocketInterfaceCopyright © 2019 OpenSource BIM. All rights reserved.