root / src / com / rackspace / cloud / servers / api / client / Account.java @ 038ac9a4
History | View | Annotate | Download (2.6 kB)
1 |
/**
|
---|---|
2 |
*
|
3 |
*/
|
4 |
package com.rackspace.cloud.servers.api.client; |
5 |
|
6 |
/**
|
7 |
* @author Mike Mayo - mike.mayo@rackspace.com - twitter.com/greenisus
|
8 |
*
|
9 |
*/
|
10 |
public class Account implements java.io.Serializable { |
11 |
|
12 |
/**
|
13 |
*
|
14 |
*/
|
15 |
private static final long serialVersionUID = 2180740077014156769L; |
16 |
private String username; |
17 |
private String apiKey; |
18 |
private transient String authToken; |
19 |
private String authServer; |
20 |
private transient String serverUrl; |
21 |
private transient String storageUrl; |
22 |
private transient String storageToken; |
23 |
private transient String cdnManagementUrl; |
24 |
private transient static Account currentAccount; |
25 |
|
26 |
public static Account getAccount() { |
27 |
return currentAccount;
|
28 |
} |
29 |
|
30 |
public static void setAccount(Account account) { |
31 |
Account.currentAccount = account; |
32 |
} |
33 |
|
34 |
/**
|
35 |
* @return the serverUrl
|
36 |
*/
|
37 |
public String getServerUrl() { |
38 |
return serverUrl;
|
39 |
} |
40 |
|
41 |
/**
|
42 |
* @param serverUrl
|
43 |
* the serverUrl to set
|
44 |
*/
|
45 |
public void setServerUrl(String serverUrl) { |
46 |
this.serverUrl = serverUrl;
|
47 |
} |
48 |
|
49 |
/**
|
50 |
* @return the storageUrl
|
51 |
*/
|
52 |
public String getStorageUrl() { |
53 |
return storageUrl;
|
54 |
} |
55 |
|
56 |
/**
|
57 |
* @return the storageToken
|
58 |
*/
|
59 |
public String getStorageToken() { |
60 |
return storageToken;
|
61 |
} |
62 |
|
63 |
/**
|
64 |
* @param storageUrl
|
65 |
* the storageUrl to set
|
66 |
*/
|
67 |
public void setStorageUrl(String storageUrl) { |
68 |
this.storageUrl = storageUrl;
|
69 |
} |
70 |
|
71 |
/**
|
72 |
* @return the cdnManagementUrl
|
73 |
*/
|
74 |
public String getCdnManagementUrl() { |
75 |
return cdnManagementUrl;
|
76 |
} |
77 |
|
78 |
/**
|
79 |
* @param cdnManagementUrl
|
80 |
* the cdnManagementUrl to set
|
81 |
*/
|
82 |
public void setCdnManagementUrl(String cdnManagementUrl) { |
83 |
this.cdnManagementUrl = cdnManagementUrl;
|
84 |
} |
85 |
|
86 |
/**
|
87 |
* @return the authToken
|
88 |
*/
|
89 |
public String getAuthToken() { |
90 |
return authToken;
|
91 |
} |
92 |
|
93 |
/**
|
94 |
* @param authToken
|
95 |
* the authToken to set
|
96 |
*/
|
97 |
public void setAuthToken(String authToken) { |
98 |
this.authToken = authToken;
|
99 |
} |
100 |
|
101 |
/**
|
102 |
* @return the authToken
|
103 |
*/
|
104 |
public String getAuthServer() { |
105 |
return authServer;
|
106 |
} |
107 |
|
108 |
/**
|
109 |
* @param authToken
|
110 |
* the authToken to set
|
111 |
*/
|
112 |
public void setAuthServer(String authServer) { |
113 |
this.authServer = authServer;
|
114 |
} |
115 |
|
116 |
/**
|
117 |
* @return the username
|
118 |
*/
|
119 |
public String getUsername() { |
120 |
return username;
|
121 |
} |
122 |
|
123 |
/**
|
124 |
* @param username
|
125 |
* the username to set
|
126 |
*/
|
127 |
public void setUsername(String username) { |
128 |
this.username = username;
|
129 |
} |
130 |
|
131 |
/**
|
132 |
* @return the apiKey
|
133 |
*/
|
134 |
public String getApiKey() { |
135 |
return apiKey;
|
136 |
} |
137 |
|
138 |
/**
|
139 |
* @param apiKey
|
140 |
* the apiKey to set
|
141 |
*/
|
142 |
public void setApiKey(String apiKey) { |
143 |
this.apiKey = apiKey;
|
144 |
} |
145 |
|
146 |
/**
|
147 |
*/
|
148 |
public void setStorageToken(String storageToken) { |
149 |
this.storageToken = storageToken;
|
150 |
|
151 |
} |
152 |
|
153 |
} |