org.restlet.Request.getOnSent()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(163)

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

Request.getOnSent介绍

暂无

代码示例

代码示例来源:origin: org.restlet.osgi/org.restlet

/**
 * Returns the callback invoked after sending the request.
 * 
 * @return The callback invoked after sending the request.
 */
public Uniform getOnSent() {
  return getRequest().getOnSent();
}

代码示例来源:origin: org.restlet.jee/org.restlet.ext.net

@Override
public void sendRequest(Request request, Response response, Uniform callback)
    throws Exception {
  // Send the request
  sendRequest(request);
  if (request.getOnSent() != null) {
    request.getOnSent().handle(request, response);
  }
  if (callback != null) {
    // Transmit to the callback, if any.
    callback.handle(request, response);
  }
}

代码示例来源:origin: org.restlet.jee/org.restlet.ext.httpclient

@Override
  public void sendRequest(Request request, Response response, Uniform callback)
      throws Exception {
    sendRequest(request);

    if (request.getOnSent() != null) {
      request.getOnSent().handle(request, response);
    }

    if (callback != null) {
      // Transmit to the callback, if any.
      callback.handle(request, response);
    }
  }
}

代码示例来源:origin: org.restlet.osgi/org.restlet

@Override
public void sendRequest(Request request, Response response, Uniform callback)
    throws Exception {
  // Send the request
  sendRequest(request);
  if (request.getOnSent() != null) {
    request.getOnSent().handle(request, response);
  }
  if (callback != null) {
    // Transmit to the callback, if any.
    callback.handle(request, response);
  }
}

代码示例来源:origin: org.restlet.jse/org.restlet.ext.net

@Override
public void sendRequest(Request request, Response response, Uniform callback)
    throws Exception {
  // Send the request
  sendRequest(request);
  if (request.getOnSent() != null) {
    request.getOnSent().handle(request, response);
  }
  if (callback != null) {
    // Transmit to the callback, if any.
    callback.handle(request, response);
  }
}

代码示例来源:origin: org.restlet.osgi/org.restlet

this.setOnSent(request.getOnSent());

相关文章