Revision 023f6f1e src/gr/ebs/gss/client/rest/PostCommand.java

b/src/gr/ebs/gss/client/rest/PostCommand.java
21 21
import gr.ebs.gss.client.GSS;
22 22

  
23 23
import com.google.gwt.http.client.Request;
24
import com.google.gwt.http.client.RequestBuilder;
24 25
import com.google.gwt.http.client.RequestCallback;
25 26
import com.google.gwt.http.client.Response;
26 27

  
......
42 43
		if(isShowLoadingIndicator())
43 44
			GSS.get().showLoadingIndicator();
44 45

  
45
		RestRequestBuilder builder = new RestRequestBuilder("POST", path);
46
		RequestBuilder builder = new RequestBuilder(RequestBuilder.POST, path);
46 47

  
47 48
		try {
48 49
			handleHeaders(builder, path);
49 50
			builder.sendRequest(data, new RequestCallback() {
50 51

  
52
				@Override
51 53
				public void onError(Request arg0, Throwable arg1) {
52 54
					complete = true;
53 55
					PostCommand.this.onError(arg1);
54 56
				}
55 57

  
58
				@Override
56 59
				public void onResponseReceived(Request req, Response resp) {
57 60
					complete=true;
58 61
					int status = resp.getStatusCode();
......
80 83
		return complete;
81 84
	}
82 85

  
86
	@Override
83 87
	public boolean execute() {
84 88
		boolean com = isComplete();
85 89
		if (com) {

Also available in: Unified diff