接口 InfoReceiver
- 所有已知子接口:
XhrTransport
public interface InfoReceiver
A component that can execute the SockJS "Info" request that needs to be performed before the SockJS session starts in order to check server endpoint capabilities such as whether the endpoint permits use of WebSocket.Typically
XhrTransport
implementations are also implementations of this contract.- 从以下版本开始:
- 4.1
- 作者:
- Rossen Stoyanchev
- 另请参阅:
AbstractXhrTransport
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 String
executeInfoRequest(URI infoUrl, HttpHeaders headers)
Perform an HTTP request to the SockJS "Info" URL.
方法详细资料
executeInfoRequest
String executeInfoRequest(URI infoUrl, HttpHeaders headers)
Perform an HTTP request to the SockJS "Info" URL. and return the resulting JSON response content, or raise an exception.Note that as of 4.2 this method accepts a
headers
parameter.- 参数:
infoUrl
- the URL to obtain SockJS server information fromheaders
- the headers to use for the request- 返回:
- the body of the response