summaryrefslogtreecommitdiff
path: root/java/common/src
Commit message (Collapse)AuthorAgeFilesLines
* I have added the license header to the files included in this commit.Rajith Muditha Attapattu2010-02-1212-1/+253
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@909641 13f79535-47bb-0310-9956-ffa450edef68
* Fixed an error in retrieving the SSL parameterRajith Muditha Attapattu2010-02-111-0/+2
| | | | | | | Added a log message in IoTransport to denote successfull creation of SSL Sender and Receiver git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@909150 13f79535-47bb-0310-9956-ffa450edef68
* Removed the ClientProperties.java I added to a wrong package nameRajith Muditha Attapattu2010-02-031-142/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@906156 13f79535-47bb-0310-9956-ffa450edef68
* This is related to QPID-2343Rajith Muditha Attapattu2010-02-034-0/+562
| | | | | | | | Added the Accessor.java to abstract the access strategies. Added several acess strategies including one which takes a list of Accessors. Added a constrcutor in the QpidProperty class to take an Accessor. The other constructor defaults to SystemPropertyAccessor git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@906135 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2379 : Initial work on adding QMF and federation to the Java BrokerRobert Godfrey2010-01-3112-135/+301
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@904934 13f79535-47bb-0310-9956-ffa450edef68
* Corrected a mistake I made in rev904375Rajith Muditha Attapattu2010-01-291-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@904566 13f79535-47bb-0310-9956-ffa450edef68
* added a null check for connection settingsRajith Muditha Attapattu2010-01-291-2/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@904375 13f79535-47bb-0310-9956-ffa450edef68
* moved pprint from JAddr into separate utility class and use it from Address ↵Rafael H. Schloming2010-01-283-112/+156
| | | | | | to implement a property toString git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@904162 13f79535-47bb-0310-9956-ffa450edef68
* This is related to QPID-2352Rajith Muditha Attapattu2010-01-284-1/+233
| | | | | | | The SASL encryption layer is not fully functional, however it's dormant unless explicitly enabled using the jvm arg "qpid.sasl_encryption" or the connection parameter "sasl_encryption". git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@903942 13f79535-47bb-0310-9956-ffa450edef68
* This is related to QPID-2363Rajith Muditha Attapattu2010-01-281-1/+3
| | | | | | | I added use_legacy_map_msg_format as a connection paramter to force the client to use the old map message format. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@903940 13f79535-47bb-0310-9956-ffa450edef68
* added boolean literals to java & python address parser; added validation to ↵Rafael H. Schloming2010-01-222-1/+15
| | | | | | python address usage git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@902095 13f79535-47bb-0310-9956-ffa450edef68
* The commit contains fixes for QPID-2351, QPID-2350 and some ground work for ↵Rajith Muditha Attapattu2010-01-215-45/+256
| | | | | | | | | | | | | | QPID-2352 - Modified Connection.java to add more than one ConnectionListener. This was done to facilitate the SASL encryption patch - QPID-2352. - Changed the access modifier for getSaslClient method to "public" to allow the SaslClient to be retrieved by the SASL encryption code -QPID-2352. - Introduced ConnectionSettings object to hold all the configuration options. Previous constructor methods remains unchanged. - Modified the ClientDelegate to handle heartbeat and idelTimeout value properly. - Added support to specify config options via the connection URL - QPID-2351 - Added support to handle the heartbeat/idle_timeout options properly in the 0-10 code - QPID-2350. However once QPID-2343 is completed, the code will be further simplified. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@901506 13f79535-47bb-0310-9956-ffa450edef68
* This is related to QPID-2350Rajith Muditha Attapattu2010-01-201-0/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@901448 13f79535-47bb-0310-9956-ffa450edef68
* added java address parser (QPID-1831)Rafael H. Schloming2010-01-2010-0/+1206
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@901268 13f79535-47bb-0310-9956-ffa450edef68
* fixed generics warnings; added join methodRafael H. Schloming2010-01-201-2/+24
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@901267 13f79535-47bb-0310-9956-ffa450edef68
* This is related to QPID-2343Rajith Muditha Attapattu2010-01-192-2/+154
| | | | | | | | | I have added the basis for using a single config source for resolving property names. We could now add a set of new properties that follows the naming convention agreed on the list while providing support for old property names. Next step is to dig the code for all the properties and populate the correct tables in ClientProperties.java git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@901002 13f79535-47bb-0310-9956-ffa450edef68
* Changed the setIdleTimeout method to take an int instead of a long.Rajith Muditha Attapattu2010-01-1911-24/+22
| | | | | | | | The socket interface takes the so_timeout as an int and also the AMQP heartbeat interval is taken as an int. This change will help simplify the code that handles heartbeats. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@901000 13f79535-47bb-0310-9956-ffa450edef68
* This is a first step towards QPID-2343Rajith Muditha Attapattu2010-01-181-0/+113
| | | | | | | | The common module also contains code for the client, and therefore contains configuration required for the client to be accessible from within the common module. Therefore the ClientProperties.java is best be placed inside the common module. The goal is to have a place holder for all configuration properties. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@900595 13f79535-47bb-0310-9956-ffa450edef68
* Added a null check for SASL client in the connectionOpenOk methodRajith Muditha Attapattu2010-01-131-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@898634 13f79535-47bb-0310-9956-ffa450edef68
* This is a fix for QPID-2339Rajith Muditha Attapattu2010-01-121-9/+28
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@898570 13f79535-47bb-0310-9956-ffa450edef68
* This is a fix for QPID-2174Rajith Muditha Attapattu2010-01-122-2/+64
| | | | | | | | I couldn't find any straight forward way to grab the proper ID from the SASL client. Therefore I had to use the java GSSAPI classes to create a security context to grab the ID. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@898505 13f79535-47bb-0310-9956-ffa450edef68
* This is a fix for QPID-2173Rajith Muditha Attapattu2010-01-111-2/+32
| | | | | | | | | The qpid.client_process could also be set to something more descriptive as follows using a jvm argument. -Dqpid.client_process="My Billing App" Currently added the prop names as plain strings. They will be moved to a single location as part of wider effort in organizing our configuration. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@897985 13f79535-47bb-0310-9956-ffa450edef68
* This is a fix for QPID-2336Rajith Muditha Attapattu2010-01-111-1/+6
| | | | | | | The fix allows an idle_timeout of zero to be set as the heartbeat interval with a warning message to say heartbeats are disabled. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@897922 13f79535-47bb-0310-9956-ffa450edef68
* There is mistake in a commit made for QPID-1830 in rev 891805Rajith Muditha Attapattu2010-01-081-2/+2
| | | | | | | | Due to the mistake a get operation could reference an index out of bounds or it could print fewer items than what is required. This commit corrects that mistake. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@897323 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2273 : Fix Protocol NegotiationRobert Godfrey2009-12-182-4/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@892301 13f79535-47bb-0310-9956-ffa450edef68
* This is a fix for QPID-1830Rajith Muditha Attapattu2009-12-171-1/+6
| | | | | | | | | I have removed the checkReadable() method from the toBodyString() This will enable the toString() method to be used any time on message. I have also modified the Functions.str() to take in an additional parameter to denote to the starting position of the buffer. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@891805 13f79535-47bb-0310-9956-ffa450edef68
* Update OSGI/Eclipse bundle versions and filenames for the 0.6 releaseRobert Gemmell2009-12-101-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@889271 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2242 : Update to 0-8 producer to set the JMS_QPID_DESTTYPE when sending ↵Martin Ritchie2009-12-081-3/+4
| | | | | | | | | | | messages. This update required a change to the FieldTable to clear any _encodedBuffer when setting a new value Provided test in JMSDestintationTest. This test requires a broker that supports both 0-8/9 and 0-10 as we must first use a 0-10 connection to send a message, which does not set JMS_QPID_DESTTYPE, then receive the message on 0-8/9. This allows us to validate that messages recieved without JMS_QPID_DESTTYPE set will can correctly set the value without a BufferOverflow Exception when simply forwarding the message. Excluded test from all cpp and InVM runs as test requires a 0-8/9 and 0-10 capable broker. Can reinstate to InVM when multiprotocol testing is capable. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@888345 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2192: remove extraneous printStackTrace()sAidan Skinner2009-12-021-1/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@886031 13f79535-47bb-0310-9956-ffa450edef68
* Fixes for 0-9-1 supportRobert Godfrey2009-11-262-8/+13
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@884619 13f79535-47bb-0310-9956-ffa450edef68
* Remove more 1.6 @Override on interfaces.Aidan Skinner2009-11-092-12/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@834259 13f79535-47bb-0310-9956-ffa450edef68
* This is for QPID-2176Rajith Muditha Attapattu2009-11-032-1/+37
| | | | | | | | Rob had already added the null check. I added a ProtocolViolationException, that will be thrown if we receive any frames for an already detached session. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@832441 13f79535-47bb-0310-9956-ffa450edef68
* Added AMQP 0-9-1 supportRobert Godfrey2009-10-266-347/+350
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@829944 13f79535-47bb-0310-9956-ffa450edef68
* Merged from java-broker-0-10 branchRobert Godfrey2009-10-2517-52/+288
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@829675 13f79535-47bb-0310-9956-ffa450edef68
* Merge java-network-refactor branchAidan Skinner2009-10-1521-932/+1748
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@825362 13f79535-47bb-0310-9956-ffa450edef68
* Fix compiler compliance levels, not allowed @Override on interfaces in 1.5Aidan Skinner2009-10-111-1/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@824129 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2040: add a copy method to FileUtils that throws checked exceptions ↵Robert Gemmell2009-08-171-18/+31
| | | | | | instead of wrapping as them runtime exceptions git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@805016 13f79535-47bb-0310-9956-ffa450edef68
* fixed session memory leak exposed by SessionCreateTestRafael H. Schloming2009-07-251-2/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@797705 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1992 : Addition of new Broker Logging FrameworkMartin Ritchie2009-07-222-78/+184
| | | | | | | | | | | | | | | | | | | | | | | | | | | Provided static CurrentActor for accessing ThreadLocal. Included Test to validate setting of ThreadLocals. Added Test for AMQPActor Added getRootMessageLogger() to IApplicationRegistry Adjusted *ProtocolSessions to start counting at 0. Allowed Setting of Vhost on the MockProtocolSession Created a fixed Principle in MockProtocolSession Changes to MockProtocolSession, prevent NPEs when the AMQPActor creates its log string. Converted CurrentActor to use a Stack allowing a variety of actors to take their turn on a thread. Improved package structure Added testing for Actors Moved FileMonitorTools functionality to FileUtils and provided a Test Converted Log4jMessageLoggerTest to a proper UnitTest Moved Test cases to test package Updated other broker tests to set the authenticated user before setting the virtualhost, Whilst the logging could output null as the username it would be better if the tests correctly set the authorizedID. Update to include tests for disabled logging Fully tested LogSubjects Updated MockAMQQueue to be able to take a Virtualhost as per a normal Queue. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@796650 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1797: update bundle version format and output filenames, modify ant ↵Robert Gemmell2009-07-111-2/+2
| | | | | | | | | bundle task only to run for required modules git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@793184 13f79535-47bb-0310-9956-ffa450edef68
* fixed hang in SSL client, ssl profile still fails due to port conflicts, but ↵Rafael H. Schloming2009-07-012-14/+24
| | | | | | it should no longer hang git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@790161 13f79535-47bb-0310-9956-ffa450edef68
* cleaned up extraneous whitespaceRafael H. Schloming2009-06-302-83/+83
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@789887 13f79535-47bb-0310-9956-ffa450edef68
* made test ports configurable; this required adding variable expansion to ↵Rafael H. Schloming2009-06-181-0/+144
| | | | | | PropertiesFileInitialContextFactory git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@786269 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1893: echo back a heartbeat when we receive oneRafael H. Schloming2009-06-081-0/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@782633 13f79535-47bb-0310-9956-ffa450edef68
* This is related to QPID-1875Rajith Muditha Attapattu2009-05-281-1/+1
| | | | | | | | The BindingURLParser is updated to grab the clientID and subscription to form the queue name. I also added a test case to cover this. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@779651 13f79535-47bb-0310-9956-ffa450edef68
* This is related to QPID-1854Rajith Muditha Attapattu2009-05-141-1/+8
| | | | | | | | | The sender.close is now surrounded with a try catch to handle the exception thrown by the IoSender.close(). The ideal situation would have been to pass false to the IoSender.close(boolean reportException) method which will then not throw the exception up the stack. But that method is not exposed in the Sender interface. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@774817 13f79535-47bb-0310-9956-ffa450edef68
* This is related to QPID-1853. Since the socket is being closed inside the ↵Rajith Muditha Attapattu2009-05-141-1/+0
| | | | | | finnaly block we can remove the socket.close after the while loop inside the run method. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@774812 13f79535-47bb-0310-9956-ffa450edef68
* This is a fix for QPID-1857Rajith Muditha Attapattu2009-05-131-0/+2
| | | | | | | We now create a new session id, instead of reusing the same when it tries to attach the session after failover. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@774452 13f79535-47bb-0310-9956-ffa450edef68
* This is a fix for QPID-1854Rajith Muditha Attapattu2009-05-131-0/+1
| | | | | | | | I have added a sender.close() inside the closed() method in the Connection.java This ensures the sender is closed and the IoSender thread is shutdown gracefully. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@774305 13f79535-47bb-0310-9956-ffa450edef68
* This is a fix for QPID-1853. We now close the socket in the finnally block.Rajith Muditha Attapattu2009-05-131-0/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@774297 13f79535-47bb-0310-9956-ffa450edef68