com.cloudbees.sdk.cli
Class BeesClientFactory

java.lang.Object
  extended by com.cloudbees.sdk.cli.BeesClientFactory
All Implemented Interfaces:
HasOptions

@CommandScope
public class BeesClientFactory
extends Object
implements HasOptions

Component that you can inject to your command object to build BeesAPIClient from a set of command line options.

Author:
Kohsuke Kawaguchi

Field Summary
 String endPoint
           
 String key
          Bees api key.
 String proxyHost
           
 String proxyPassword
           
 String proxyPort
           
 String proxyUser
           
 String secret
          Bees api secret.
 String server
           
 
Constructor Summary
BeesClientFactory()
           
 
Method Summary
 com.cloudbees.api.BeesClientConfiguration createConfigurations()
          Creates a fully populated BeesClientConfiguration based on the current setting.
 com.cloudbees.api.BeesClientBase get()
           
<T extends com.cloudbees.api.BeesClientBase>
T
get(Class<T> clientType)
           
 String getApiUrl()
           
 Properties getConfigProperties()
           
 Map<String,String> getParameters()
          See UserConfiguration for parameters vs config properties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

server

public String server

key

public String key
Bees api key.


secret

public String secret
Bees api secret.


proxyHost

public String proxyHost

proxyPort

public String proxyPort

proxyUser

public String proxyUser

proxyPassword

public String proxyPassword

endPoint

public String endPoint
Constructor Detail

BeesClientFactory

public BeesClientFactory()
Method Detail

get

public com.cloudbees.api.BeesClientBase get()
                                     throws IOException
Throws:
IOException

get

public <T extends com.cloudbees.api.BeesClientBase> T get(Class<T> clientType)
                                               throws IOException
Throws:
IOException

createConfigurations

public com.cloudbees.api.BeesClientConfiguration createConfigurations()
                                                               throws IOException
Creates a fully populated BeesClientConfiguration based on the current setting.

Throws:
IOException

getApiUrl

public String getApiUrl()

getConfigProperties

public Properties getConfigProperties()

getParameters

public Map<String,String> getParameters()
See UserConfiguration for parameters vs config properties



Copyright © 2011-2013. All Rights Reserved.