Class XhrReceivingTransportHandler
- java.lang.Object
- org.springframework.web.socket.sockjs.transport.handler.AbstractTransportHandler
- org.springframework.web.socket.sockjs.transport.handler.AbstractHttpReceivingTransportHandler
- org.springframework.web.socket.sockjs.transport.handler.XhrReceivingTransportHandler
- All Implemented Interfaces:
TransportHandler
public class XhrReceivingTransportHandler extends AbstractHttpReceivingTransportHandler
ATransportHandler
that receives messages over HTTP.- Since:
- 4.0
- Author:
- Rossen Stoyanchev
Field Summary
Fields inherited from class org.springframework.web.socket.sockjs.transport.handler.AbstractTransportHandler
logger
Constructor Summary
Constructors Constructor Description XhrReceivingTransportHandler()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected HttpStatus
getResponseStatus()
TransportType
getTransportType()
Return the transport type supported by this handler.protected String[]
readMessages(ServerHttpRequest request)
Methods inherited from class org.springframework.web.socket.sockjs.transport.handler.AbstractHttpReceivingTransportHandler
checkSessionType, handleRequest, handleRequestInternal
Methods inherited from class org.springframework.web.socket.sockjs.transport.handler.AbstractTransportHandler
getServiceConfig, initialize
Constructor Detail
XhrReceivingTransportHandler
public XhrReceivingTransportHandler()
Method Detail
getTransportType
public TransportType getTransportType()
Description copied from interface:TransportHandler
Return the transport type supported by this handler.
readMessages
@Nullable protected String[] readMessages(ServerHttpRequest request) throws IOException
- Specified by:
readMessages
in classAbstractHttpReceivingTransportHandler
- Throws:
IOException
getResponseStatus
protected HttpStatus getResponseStatus()
- Specified by:
getResponseStatus
in classAbstractHttpReceivingTransportHandler