blob: 6017a7e1d28658822e78db62918bedb7b38dad2e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
package com.vaadin.tests.widgetset.client;
import com.vaadin.client.ValueMap;
import com.vaadin.client.communication.MessageHandler;
import com.vaadin.shared.ApplicationConstants;
public class MockServerMessageHandler extends MessageHandler {
// The last token received from the server.
protected String lastCsrfTokenReceiver;
@Override
public void handleJSON(ValueMap json) {
lastCsrfTokenReceiver = json
.getString(ApplicationConstants.UIDL_SECURITY_TOKEN_ID);
super.handleJSON(json);
}
}
|