44
44
import com .rabbitmq .utility .BlockingCell ;
45
45
import com .rabbitmq .utility .Utility ;
46
46
47
+ final class Copyright {
48
+ final static String COPYRIGHT ="Copyright (C) 2007-2012 VMware, Inc." ;
49
+ final static String LICENSE ="Licensed under the MPL. See http://www.rabbitmq.com/" ;
50
+ }
51
+
47
52
/**
48
53
* Concrete class representing and managing an AMQP connection to a broker.
49
54
* <p>
@@ -63,21 +68,22 @@ public class AMQConnection extends ShutdownNotifierComponent implements Connecti
63
68
* @see Connection#getClientProperties
64
69
*/
65
70
public static final Map <String , Object > defaultClientProperties () {
71
+ Map <String ,Object > props = new HashMap <String , Object >();
72
+ props .put ("product" , LongStringHelper .asLongString ("RabbitMQ" ));
73
+ props .put ("version" , LongStringHelper .asLongString (ClientVersion .VERSION ));
74
+ props .put ("platform" , LongStringHelper .asLongString ("Java" ));
75
+ props .put ("copyright" , LongStringHelper .asLongString (Copyright .COPYRIGHT ));
76
+ props .put ("information" , LongStringHelper .asLongString (Copyright .LICENSE ));
77
+
66
78
Map <String , Object > capabilities = new HashMap <String , Object >();
67
79
capabilities .put ("publisher_confirms" , true );
68
80
capabilities .put ("exchange_exchange_bindings" , true );
69
81
capabilities .put ("basic.nack" , true );
70
82
capabilities .put ("consumer_cancel_notify" , true );
71
- return buildTable (new Object [] {
72
- "product" , LongStringHelper .asLongString ("RabbitMQ" ),
73
- "version" , LongStringHelper .asLongString (ClientVersion .VERSION ),
74
- "platform" , LongStringHelper .asLongString ("Java" ),
75
- "copyright" , LongStringHelper .asLongString (
76
- "Copyright (C) 2007-2012 VMware, Inc." ),
77
- "information" , LongStringHelper .asLongString (
78
- "Licensed under the MPL. See http://www.rabbitmq.com/" ),
79
- "capabilities" , capabilities
80
- });
83
+
84
+ props .put ("capabilities" , capabilities );
85
+
86
+ return props ;
81
87
}
82
88
83
89
private static final Version clientVersion =
0 commit comments