接口的使用
org.springframework.web.socket.sockjs.client.InfoReceiver
使用InfoReceiver的程序包 程序包 说明 org.springframework.web.socket.sockjs.client SockJS client implementation ofWebSocketClient.org.springframework.web.socket.sockjs.client中InfoReceiver的使用
org.springframework.web.socket.sockjs.client中InfoReceiver的子接口 修饰符和类型 接口 说明 interfaceXhrTransportA SockJSTransportthat uses HTTP requests to simulate a WebSocket interaction.实现InfoReceiver的org.springframework.web.socket.sockjs.client中的类 修饰符和类型 类 说明 classAbstractXhrTransportAbstract base class for XHR transport implementations to extend.classJettyXhrTransportAn XHR transport based on Jetty'sHttpClient.classRestTemplateXhrTransportAnXhrTransportimplementation that uses aRestTemplate.classUndertowXhrTransportAn XHR transport based on Undertow'sUndertowClient.返回InfoReceiver的org.springframework.web.socket.sockjs.client中的方法 修饰符和类型 方法 说明 InfoReceiverSockJsClient. getInfoReceiver()Return the configuredInfoReceiver(nevernull).参数类型为InfoReceiver的org.springframework.web.socket.sockjs.client中的方法 修饰符和类型 方法 说明 voidSockJsClient. setInfoReceiver(InfoReceiver infoReceiver)Configure theInfoReceiverto use to perform the SockJS "Info" request before the SockJS session starts.