com.google.gwt.http.client.Request.createResponse()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(446)

本文整理了Java中com.google.gwt.http.client.Request.createResponse方法的一些代码示例,展示了Request.createResponse的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.createResponse方法的具体详情如下:
包路径:com.google.gwt.http.client.Request
类名称:Request
方法名:createResponse

Request.createResponse介绍

[英]Creates a Response instance for the given JavaScript XmlHttpRequest object.
[中]为给定的JavaScript XmlHttpRequest对象创建响应实例。

代码示例

代码示例来源:origin: com.google.gwt/gwt-servlet

void fireOnResponseReceived(RequestCallback callback) {
 if (xmlHttpRequest == null) {
  // the request has timed out at this point
  return;
 }
 timer.cancel();
 /*
  * We cannot use cancel here because it would clear the contents of the
  * JavaScript XmlHttpRequest object so we manually null out our reference to
  * the JavaScriptObject
  */
 final XMLHttpRequest xhr = xmlHttpRequest;
 xmlHttpRequest = null;
 Response response = createResponse(xhr);
 callback.onResponseReceived(this, response);
}

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

void fireOnResponseReceived(RequestCallback callback) {
 if (xmlHttpRequest == null) {
  // the request has timed out at this point
  return;
 }
 timer.cancel();
 /*
  * We cannot use cancel here because it would clear the contents of the
  * JavaScript XmlHttpRequest object so we manually null out our reference to
  * the JavaScriptObject
  */
 final XMLHttpRequest xhr = xmlHttpRequest;
 xmlHttpRequest = null;
 Response response = createResponse(xhr);
 callback.onResponseReceived(this, response);
}

代码示例来源:origin: net.wetheinter/gwt-user

void fireOnResponseReceived(RequestCallback callback) {
 if (xmlHttpRequest == null) {
  // the request has timed out at this point
  return;
 }
 timer.cancel();
 /*
  * We cannot use cancel here because it would clear the contents of the
  * JavaScript XmlHttpRequest object so we manually null out our reference to
  * the JavaScriptObject
  */
 final XMLHttpRequest xhr = xmlHttpRequest;
 xmlHttpRequest = null;
 Response response = createResponse(xhr);
 callback.onResponseReceived(this, response);
}

代码示例来源:origin: io.reinert.requestor.core/requestor-api

public void fireOnResponseReceived(RequestCallback callback) {
  if (xmlHttpRequest == null) {
    // the request has timed out at this point
    return;
  }
  timer.cancel();
/*
 * We cannot use cancel here because it would clear the contents of the
 * JavaScript XmlHttpRequest object so we manually null out our reference to
 * the JavaScriptObject
 */
  final XMLHttpRequest xhr = xmlHttpRequest;
  xmlHttpRequest = null;
  Response response = createResponse(xhr);
  callback.onResponseReceived(this, response);
}

相关文章