com.atlassian.bamboo.remoteapi.commands
Class LoginCommand

java.lang.Object
  extended by com.atlassian.bamboo.remoteapi.commands.AbstractCommand
      extended by com.atlassian.bamboo.remoteapi.commands.LoginCommand

public class LoginCommand
extends AbstractCommand

This class uses the Bamboo rest api to logonto a Bamboo server.


Field Summary
 
Fields inherited from class com.atlassian.bamboo.remoteapi.commands.AbstractCommand
HTTP_STATUS_OK
 
Constructor Summary
LoginCommand()
           
 
Method Summary
 java.lang.String login(java.lang.String serverUrl, java.lang.String username, java.lang.String password)
          Uses the remote api to login to the bamboo server
 
Methods inherited from class com.atlassian.bamboo.remoteapi.commands.AbstractCommand
executePostMethod, extractTagData, getHttpClient
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoginCommand

public LoginCommand()
Method Detail

login

public java.lang.String login(java.lang.String serverUrl,
                              java.lang.String username,
                              java.lang.String password)
Uses the remote api to login to the bamboo server

Parameters:
serverUrl - The URL of the bamboo server
username - The username
password - The password
Returns:
The session authentication token used to access the api methods, null if login failed


Copyright © 2011 Atlassian. All Rights Reserved.