hudson.model.Api类的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(194)

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

Api介绍

[英]Used to expose remote access API for ".../api/"

If the parent object has a _api.jelly view, it will be included in the api index page.
[中]用于公开“../API/”的远程访问API
如果父对象具有_api。jelly视图,它将包含在api索引页中。

代码示例

代码示例来源:origin: jenkinsci/jenkins

/**
 * Remote API access.
 */
public final Api getApi() {
  return new Api(this);
}

代码示例来源:origin: stackoverflow.com

@RunWith(RobolectricTestRunner.class)
public class ApiTest {

  @Test
  public void test() {
    Api api = new Api();
    Robolectric.addPendingHttpResponse(200, "dummy");
    String responseBody = api.get("www.example.com");
    assertThat(responseBody, is("dummy"));
  }
}

代码示例来源:origin: org.jenkins-ci.plugins/global-build-stats

@Override
public void doJson(StaplerRequest req, StaplerResponse rsp)
    throws IOException, ServletException {
  if(!exposeChartData(req, rsp, Flavor.JSON)){
    super.doJson(req, rsp);
  }
}
@Override

代码示例来源:origin: org.jenkins-ci.plugins/global-build-stats

@Override
public void doPython(StaplerRequest req, StaplerResponse rsp)
    throws IOException, ServletException {
  if(!exposeChartData(req, rsp, Flavor.PYTHON)){
    super.doPython(req, rsp);
  }
}

代码示例来源:origin: jenkinsci/jenkins

/**
 * Expose this object to the remote API.
 */
public Api getApi() {
  return new Api(this);
}

代码示例来源:origin: jenkinsci/jenkins

/**
 * Expose {@link SCM} to the remote API.
 */
public Api getApi() {
  return new Api(this);
}

代码示例来源:origin: jenkinsci/jenkins

/**
 * Exposes the executor to the remote API.
 */
public Api getApi() {
  return new Api(this);
}

代码示例来源:origin: jenkinsci/jenkins

/**
 * Exposed remote API.
 */
public Api getApi() {
  return new Api(this);
}

代码示例来源:origin: jenkinsci/jenkins

public Api getApi() {
  return new Api(this);
}

代码示例来源:origin: jenkinsci/jenkins

public Api getApi() {
  return new Api(this);
}

代码示例来源:origin: jenkinsci/jenkins

public Api getApi() {
  return new Api(this);
}

代码示例来源:origin: jenkinsci/jenkins

public Api getApi() {
  return new Api(this);
}

代码示例来源:origin: jenkinsci/jenkins

public Api getApi() {
  return new Api(this);
}

代码示例来源:origin: jenkinsci/jenkins

public Api getApi() {
  return new Api(this);
}

代码示例来源:origin: jenkinsci/jenkins

public Api getApi() {
  return new Api(this);
}

代码示例来源:origin: jenkinsci/jenkins

public Api getApi() {
  return new Api(this);
}

代码示例来源:origin: jenkinsci/jenkins

public Api getApi() {
  return new Api(this);
}

代码示例来源:origin: jenkinsci/jenkins

public Api getApi() {
  return new Api(this);
}

代码示例来源:origin: jenkinsci/jenkins

public Api getApi() {
  return new Api(this);
}

代码示例来源:origin: jenkinsci/jenkins

public Api getApi() {
  return new Api(this);
}

相关文章

Api类方法