Code example for FormHttpMessageConverter

0
 * 
 * @author Rossen Stoyanchev 
 */ 
public class JsonpReceivingTransportHandler extends AbstractHttpReceivingTransportHandler {
 
	private final FormHttpMessageConverter formConverter = new FormHttpMessageConverter();
 
 
	@Override 
	public TransportType getTransportType() { 
		return TransportType.JSONP_SEND; 
	} 
 
	@Override 
	public void handleRequestInternal(ServerHttpRequest request, ServerHttpResponse response,
			WebSocketHandler wsHandler, AbstractHttpSockJsSession sockJsSession) throws SockJsException {
 
		super.handleRequestInternal(request, response, wsHandler, sockJsSession);
		try { 
			response.getBody().write("ok".getBytes(UTF8_CHARSET));