public class MockWebSocketSession extends Object implements org.springframework.web.socket.WebSocketSession
| Constructor and Description |
|---|
MockWebSocketSession() |
MockWebSocketSession(String uri) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
close(org.springframework.web.socket.CloseStatus status) |
String |
getAcceptedProtocol() |
Map<String,Object> |
getAttributes() |
int |
getBinaryMessageSizeLimit() |
List<org.springframework.web.socket.WebSocketExtension> |
getExtensions() |
org.springframework.http.HttpHeaders |
getHandshakeHeaders() |
String |
getId() |
InetSocketAddress |
getLocalAddress() |
Principal |
getPrincipal() |
InetSocketAddress |
getRemoteAddress() |
int |
getTextMessageSizeLimit() |
URI |
getUri() |
boolean |
isOpen() |
void |
sendMessage(org.springframework.web.socket.WebSocketMessage<?> message) |
void |
setBinaryMessageSizeLimit(int messageSizeLimit) |
void |
setTextMessageSizeLimit(int messageSizeLimit) |
public String getId()
getId in interface org.springframework.web.socket.WebSocketSessionpublic URI getUri()
getUri in interface org.springframework.web.socket.WebSocketSessionpublic org.springframework.http.HttpHeaders getHandshakeHeaders()
getHandshakeHeaders in interface org.springframework.web.socket.WebSocketSessionpublic Map<String,Object> getAttributes()
getAttributes in interface org.springframework.web.socket.WebSocketSessionpublic Principal getPrincipal()
getPrincipal in interface org.springframework.web.socket.WebSocketSessionpublic InetSocketAddress getLocalAddress()
getLocalAddress in interface org.springframework.web.socket.WebSocketSessionpublic InetSocketAddress getRemoteAddress()
getRemoteAddress in interface org.springframework.web.socket.WebSocketSessionpublic String getAcceptedProtocol()
getAcceptedProtocol in interface org.springframework.web.socket.WebSocketSessionpublic void setTextMessageSizeLimit(int messageSizeLimit)
setTextMessageSizeLimit in interface org.springframework.web.socket.WebSocketSessionpublic int getTextMessageSizeLimit()
getTextMessageSizeLimit in interface org.springframework.web.socket.WebSocketSessionpublic void setBinaryMessageSizeLimit(int messageSizeLimit)
setBinaryMessageSizeLimit in interface org.springframework.web.socket.WebSocketSessionpublic int getBinaryMessageSizeLimit()
getBinaryMessageSizeLimit in interface org.springframework.web.socket.WebSocketSessionpublic List<org.springframework.web.socket.WebSocketExtension> getExtensions()
getExtensions in interface org.springframework.web.socket.WebSocketSessionpublic void sendMessage(org.springframework.web.socket.WebSocketMessage<?> message)
sendMessage in interface org.springframework.web.socket.WebSocketSessionpublic boolean isOpen()
isOpen in interface org.springframework.web.socket.WebSocketSessionpublic void close()
close in interface Closeableclose in interface AutoCloseableclose in interface org.springframework.web.socket.WebSocketSessionpublic void close(org.springframework.web.socket.CloseStatus status)
close in interface org.springframework.web.socket.WebSocketSessionCopyright © 2023 Fujion Framework. All rights reserved.