接口 NativeWebSocketSession
- 所有超级接口:
AutoCloseable
,Closeable
,WebSocketSession
- 所有已知实现类:
AbstractWebSocketSession
,JettyWebSocketSession
,StandardWebSocketSession
,WebSocketClientSockJsSession
,WebSocketServerSockJsSession
public interface NativeWebSocketSession extends WebSocketSession
AWebSocketSession
that exposes the underlying, native WebSocketSession through a getter.- 从以下版本开始:
- 4.0
- 作者:
- Rossen Stoyanchev
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 Object
getNativeSession()
Return the underlying native WebSocketSession.<T> T
getNativeSession(Class<T> requiredType)
Return the underlying native WebSocketSession, if available.从接口继承的方法 org.springframework.web.socket.WebSocketSession
close, close, getAcceptedProtocol, getAttributes, getBinaryMessageSizeLimit, getExtensions, getHandshakeHeaders, getId, getLocalAddress, getPrincipal, getRemoteAddress, getTextMessageSizeLimit, getUri, isOpen, sendMessage, setBinaryMessageSizeLimit, setTextMessageSizeLimit
方法详细资料
getNativeSession
Object getNativeSession()
Return the underlying native WebSocketSession.
getNativeSession
<T> T getNativeSession(Class<T> requiredType)
Return the underlying native WebSocketSession, if available.- 参数:
requiredType
- the required type of the session- 返回:
- the native session of the required type, or
null
if not available