|
57 | 57 | * |
58 | 58 | * <pre> |
59 | 59 | * AMQConnection conn = new AMQConnection(hostName, portNumber); |
60 | | - * conn.open(userName, portNumber, virtualHost); |
| 60 | + * conn.open(username, portNumber, virtualHost); |
61 | 61 | * </pre> |
62 | 62 | * |
63 | 63 | * <pre> |
@@ -144,7 +144,7 @@ public void ensureIsOpen() |
144 | 144 | /** Hosts retrieved from the connection.open-ok */ |
145 | 145 | private Address[] _knownHosts; |
146 | 146 |
|
147 | | - private final String _userName, _password, _virtualHost; |
| 147 | + private final String _username, _password, _virtualHost; |
148 | 148 | private final int _requestedChannelMax, _requestedFrameMax, _requestedHeartbeat; |
149 | 149 |
|
150 | 150 | /** {@inheritDoc} */ |
@@ -188,7 +188,7 @@ public AMQConnection(ConnectionFactory factory, |
188 | 188 | { |
189 | 189 | checkPreconditions(); |
190 | 190 |
|
191 | | - _userName = factory.getUserName(); |
| 191 | + _username = factory.getUsername(); |
192 | 192 | _password = factory.getPassword(); |
193 | 193 | _virtualHost = factory.getVirtualHost(); |
194 | 194 | _requestedChannelMax = factory.getRequestedChannelMax(); |
@@ -258,7 +258,7 @@ public void start(boolean insist) |
258 | 258 | throw AMQChannel.wrap(sse); |
259 | 259 | } |
260 | 260 |
|
261 | | - LongString saslResponse = LongStringHelper.asLongString("\0" + _userName + |
| 261 | + LongString saslResponse = LongStringHelper.asLongString("\0" + _username + |
262 | 262 | "\0" + _password); |
263 | 263 | AMQImpl.Connection.StartOk startOk = |
264 | 264 | new AMQImpl.Connection.StartOk(buildClientPropertiesTable(), |
@@ -716,6 +716,6 @@ public void close(int closeCode, |
716 | 716 | } |
717 | 717 |
|
718 | 718 | @Override public String toString() { |
719 | | - return "amqp://" + _userName + "@" + getHost() + ":" + getPort() + _virtualHost; |
| 719 | + return "amqp://" + _username + "@" + getHost() + ":" + getPort() + _virtualHost; |
720 | 720 | } |
721 | 721 | } |
0 commit comments