|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.cli.CLIConnectionFactory
public class CLIConnectionFactory
Fluent-API to instantiate CLI
.
Constructor Summary | |
---|---|
CLIConnectionFactory()
|
Method Summary | |
---|---|
CLIConnectionFactory |
authorization(String value)
For CLI connection that goes through HTTP, sometimes you need to pass in the custom authentication header (before Jenkins even get to authenticate the CLI channel.) This method lets you specify the value of this header. |
CLIConnectionFactory |
basicAuth(String userInfo)
|
CLIConnectionFactory |
basicAuth(String username,
String password)
Convenience method to call authorization with the HTTP basic authentication. |
CLI |
connect()
|
CLIConnectionFactory |
executorService(ExecutorService es)
This ExecutorService is used to execute closures received from the server. |
CLIConnectionFactory |
httpsProxyTunnel(String value)
Configures the HTTP proxy that we use for making a plain TCP/IP connection. |
CLIConnectionFactory |
url(String jenkins)
|
CLIConnectionFactory |
url(URL jenkins)
Top URL of the Jenkins to connect to. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CLIConnectionFactory()
Method Detail |
---|
public CLIConnectionFactory url(URL jenkins)
public CLIConnectionFactory url(String jenkins) throws MalformedURLException
MalformedURLException
public CLIConnectionFactory executorService(ExecutorService es)
ExecutorService
is used to execute closures received from the server.
public CLIConnectionFactory httpsProxyTunnel(String value)
public CLIConnectionFactory authorization(String value)
public CLIConnectionFactory basicAuth(String username, String password)
authorization
with the HTTP basic authentication.
public CLIConnectionFactory basicAuth(String userInfo)
public CLI connect() throws IOException, InterruptedException
IOException
InterruptedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |