From 47f93e26869b2eae71907a5d8e9321479b798a77 Mon Sep 17 00:00:00 2001 From: kohsuke Date: Thu, 3 Jul 2008 17:38:30 +0000 Subject: [PATCH] added URL binding for an executor. git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@10610 71c3de6d-444a-0410-be80-ed276b4c234a --- core/src/main/java/hudson/model/Executor.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/src/main/java/hudson/model/Executor.java b/core/src/main/java/hudson/model/Executor.java index 0c37bcf867..2577e1927a 100644 --- a/core/src/main/java/hudson/model/Executor.java +++ b/core/src/main/java/hudson/model/Executor.java @@ -247,6 +247,13 @@ public class Executor extends Thread implements ModelObject { } } + /** + * Exposes the executor to the remote API. + */ + public Api getApi() { + return new Api(this); + } + /** * Returns the executor of the current thread. */ -- GitLab