de.smartics.ci.comm.hudson.command
Class HudsonLoginCommand

Package class diagram package HudsonLoginCommand
java.lang.Object
  extended by de.smartics.ci.comm.command.AbstractCommand<T>
      extended by de.smartics.ci.comm.command.AbstractLoginCommand<HudsonLoginCommand>
          extended by de.smartics.ci.comm.hudson.command.HudsonLoginCommand
All Implemented Interfaces:
Command< HudsonLoginCommand>

public final class HudsonLoginCommand
     
     
extends AbstractLoginCommand< HudsonLoginCommand>

Implements the login command for a hudson ci server.


Field Summary
 
Fields inherited from class de.smartics.ci.comm.command.AbstractCommand
ERROR_CATEGORY_DESTINGUISHER, logLevel
 
Constructor Summary
HudsonLoginCommand()
          Default constructor.
HudsonLoginCommand(Credentials loginCredentials, ProxyInformation proxyInformation)
          Default constructor.
 
Method Summary
 void execute(CiSystem target)
          Executes the command.
 void setLoginCredentials(Credentials loginCredentials)
          Sets the credentials used to login.
 void setProxyInformation(ProxyInformation proxyInformation)
          Sets the information needed for a proxy.
 
Methods inherited from class de.smartics.ci.comm.command.AbstractCommand
addRequestHeaders, buildQueryString, checkParameterNotBlank, checkResult, checkResultRegardingRedirect, fetchDelimiter, setLogLevel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HudsonLoginCommand

public HudsonLoginCommand(Credentials loginCredentials,
                          ProxyInformation proxyInformation)
Default constructor.

Parameters:
loginCredentials - the credentials used to login.
proxyInformation - the information needed for a proxy.

HudsonLoginCommand

public HudsonLoginCommand()
Default constructor. Sets credentials and proxyinfo to null;

Method Detail

setProxyInformation

public void setProxyInformation(ProxyInformation proxyInformation)
Sets the information needed for a proxy.

Parameters:
proxyInformation - the information needed for a proxy.

setLoginCredentials

public void setLoginCredentials(Credentials loginCredentials)
Sets the credentials used to login.

Parameters:
loginCredentials - the credentials used to login.

execute

public void execute(CiSystem target)
             throws LoginCommandException
Description copied from class: AbstractLoginCommand
Executes the command.

Specified by:
execute in interface Command<HudsonLoginCommand>
Specified by:
execute in class AbstractLoginCommand<HudsonLoginCommand>
Parameters:
target - the target to execute the command against.
Throws:
LoginCommandException


Copyright © 2012 Kronseder & Reiner GmbH - smartics. All Rights Reserved.