Revision 038ac9a4 src/com/rackspace/cloud/servers/api/client/Account.java

b/src/com/rackspace/cloud/servers/api/client/Account.java
3 3
 */
4 4
package com.rackspace.cloud.servers.api.client;
5 5

  
6

  
7

  
8 6
/**
9 7
 * @author Mike Mayo - mike.mayo@rackspace.com - twitter.com/greenisus
10
 *
8
 * 
11 9
 */
12
public class Account implements java.io.Serializable{
13
	
10
public class Account implements java.io.Serializable {
11

  
14 12
	/**
15 13
	 * 
16 14
	 */
......
24 22
	private transient String storageToken;
25 23
	private transient String cdnManagementUrl;
26 24
	private transient static Account currentAccount;
27
	
28
	
29
	public static Account getAccount(){
25

  
26
	public static Account getAccount() {
30 27
		return currentAccount;
31 28
	}
32
	
33
	public static void setAccount(Account account){
29

  
30
	public static void setAccount(Account account) {
34 31
		Account.currentAccount = account;
35 32
	}
36
	
33

  
37 34
	/**
38 35
	 * @return the serverUrl
39 36
	 */
......
42 39
	}
43 40

  
44 41
	/**
45
	 * @param serverUrl the serverUrl to set
42
	 * @param serverUrl
43
	 *            the serverUrl to set
46 44
	 */
47 45
	public void setServerUrl(String serverUrl) {
48 46
		this.serverUrl = serverUrl;
......
54 52
	public String getStorageUrl() {
55 53
		return storageUrl;
56 54
	}
55

  
57 56
	/**
58 57
	 * @return the storageToken
59 58
	 */
60 59
	public String getStorageToken() {
61 60
		return storageToken;
62 61
	}
62

  
63 63
	/**
64
	 * @param storageUrl the storageUrl to set
64
	 * @param storageUrl
65
	 *            the storageUrl to set
65 66
	 */
66 67
	public void setStorageUrl(String storageUrl) {
67 68
		this.storageUrl = storageUrl;
......
75 76
	}
76 77

  
77 78
	/**
78
	 * @param cdnManagementUrl the cdnManagementUrl to set
79
	 * @param cdnManagementUrl
80
	 *            the cdnManagementUrl to set
79 81
	 */
80 82
	public void setCdnManagementUrl(String cdnManagementUrl) {
81 83
		this.cdnManagementUrl = cdnManagementUrl;
......
89 91
	}
90 92

  
91 93
	/**
92
	 * @param authToken the authToken to set
94
	 * @param authToken
95
	 *            the authToken to set
93 96
	 */
94 97
	public void setAuthToken(String authToken) {
95 98
		this.authToken = authToken;
......
103 106
	}
104 107

  
105 108
	/**
106
	 * @param authToken the authToken to set
109
	 * @param authToken
110
	 *            the authToken to set
107 111
	 */
108 112
	public void setAuthServer(String authServer) {
109 113
		this.authServer = authServer;
110 114
	}
111 115

  
112
	
113 116
	/**
114 117
	 * @return the username
115 118
	 */
116 119
	public String getUsername() {
117 120
		return username;
118 121
	}
119
	
122

  
120 123
	/**
121
	 * @param username the username to set
124
	 * @param username
125
	 *            the username to set
122 126
	 */
123 127
	public void setUsername(String username) {
124 128
		this.username = username;
125 129
	}
126
	
130

  
127 131
	/**
128 132
	 * @return the apiKey
129 133
	 */
130 134
	public String getApiKey() {
131 135
		return apiKey;
132 136
	}
133
	
137

  
134 138
	/**
135
	 * @param apiKey the apiKey to set
139
	 * @param apiKey
140
	 *            the apiKey to set
136 141
	 */
137 142
	public void setApiKey(String apiKey) {
138 143
		this.apiKey = apiKey;
139 144
	}
140
   /**
145

  
146
	/**
141 147
    */
142 148
	public void setStorageToken(String storageToken) {
143 149
		this.storageToken = storageToken;
144
		
150

  
145 151
	}
146
	
147
}
148 152

  
153
}

Also available in: Unified diff