public abstract class AbstractHttpSendingTransportHandler extends AbstractTransportHandler implements SockJsSessionFactory
Modifier and Type | Field and Description |
---|---|
private static java.util.regex.Pattern |
CALLBACK_PARAM_PATTERN
Pattern for validating jsonp callback parameter values.
|
logger
Constructor and Description |
---|
AbstractHttpSendingTransportHandler() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getCallbackParam(ServerHttpRequest request) |
protected abstract MediaType |
getContentType() |
protected abstract SockJsFrameFormat |
getFrameFormat(ServerHttpRequest request) |
void |
handleRequest(ServerHttpRequest request,
ServerHttpResponse response,
WebSocketHandler wsHandler,
SockJsSession wsSession)
Handle the given request and delegate messages to the provided
WebSocketHandler . |
protected void |
handleRequestInternal(ServerHttpRequest request,
ServerHttpResponse response,
AbstractHttpSockJsSession sockJsSession) |
getServiceConfig, initialize
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createSession
checkSessionType, getTransportType
private static final java.util.regex.Pattern CALLBACK_PARAM_PATTERN
public final void handleRequest(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler wsHandler, SockJsSession wsSession) throws SockJsException
TransportHandler
WebSocketHandler
.handleRequest
in interface TransportHandler
request
- the current requestresponse
- the current responsewsHandler
- the target WebSocketHandler (never null
)wsSession
- the SockJS session (never null
)SockJsException
- raised when request processing fails as
explained in SockJsService
protected void handleRequestInternal(ServerHttpRequest request, ServerHttpResponse response, AbstractHttpSockJsSession sockJsSession) throws SockJsException
SockJsException
protected abstract MediaType getContentType()
protected abstract SockJsFrameFormat getFrameFormat(ServerHttpRequest request)
protected final java.lang.String getCallbackParam(ServerHttpRequest request)