List of usage examples for com.google.gwt.http.client Response SC_HTTP_VERSION_NOT_SUPPORTED
int SC_HTTP_VERSION_NOT_SUPPORTED
To view the source code for com.google.gwt.http.client Response SC_HTTP_VERSION_NOT_SUPPORTED.
Click Source Link
From source file:org.obiba.opal.web.gwt.rest.client.DefaultResourceRequestBuilder.java
License:Open Source License
@Override public DefaultResourceRequestBuilder<T> withCallback(int code, ResponseCodeCallback callback) { accept(RESOURCE_MEDIA_TYPE);/*from w w w. j a v a2 s . co m*/ if (codes == null) { codes = new ResponseCodeCallback[Response.SC_HTTP_VERSION_NOT_SUPPORTED]; } codes[code] = callback; return this; }
From source file:org.obiba.opal.web.gwt.rest.client.DefaultResourceRequestBuilder.java
License:Open Source License
@Override public ResourceRequestBuilder<T> withCallback(ResponseCodeCallback callback, int... responseCodes) { accept(RESOURCE_MEDIA_TYPE);//from w w w . ja v a2s . c o m if (codes == null) { codes = new ResponseCodeCallback[Response.SC_HTTP_VERSION_NOT_SUPPORTED]; } if (responseCodes != null) { for (int code : responseCodes) { codes[code] = callback; } } return this; }