本文整理了Java中hudson.model.Api
类的一些代码示例,展示了Api
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Api
类的具体详情如下:
包路径:hudson.model.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);
}
内容来源于网络,如有侵权,请联系作者删除!