summaryrefslogtreecommitdiff
path: root/qpid/java/common/src
Commit message (Collapse)AuthorAgeFilesLines
* QPID-4027 The Connection object will provide a reference to theRajith Muditha Attapattu2012-06-151-1/+2
| | | | | | | | | respective MessageFactory that can be used or creating messages or decoding content for messages received. Since a connection object will contain the AMQP version it would be the logical place to provide this reference. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1350708 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3401 Interim fixes to keep the tree compiling. Most of theseRajith Muditha Attapattu2012-05-141-2/+3
| | | | | | classes will be removed when the work is completed. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1338485 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3401 Refined the code that handled the creation of an AddressRajith Muditha Attapattu2012-05-141-3/+3
| | | | | | object from a BURL. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1338484 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3401 The address object is now immutable. All fields are markedRajith Muditha Attapattu2012-05-144-57/+81
| | | | | | | | | final and should be passed in the constructor.Introduced a new class to hold the data given by the existing address parser. TODO The toString field needs to be constructed. The intermediate class AddressRaw can be eliminated with a more clever parser. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1338482 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3401 Applying changes suggest by RobertGodfrey.Rajith Muditha Attapattu2012-05-117-234/+222
| | | | | | | | Node and Link now take all values in the constructor instead of setters to make it clear that these objects are immutable. Moved all the address enums into their own classes. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1337208 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3401 Node and Link objects are now immutable once they areRajith Muditha Attapattu2012-05-103-54/+79
| | | | | | | | initialized. All maps/lists returned by them are wrapped with unmodifiable map/lists. All setter methods will throw an exception once they are marked read-only. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1336878 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3401 Marked the Address object read-only once it's processed andRajith Muditha Attapattu2012-05-093-61/+76
| | | | | | | the Node and Link data structures are populated. Marked member variables in Link and Node as private. Fixed leading/trailing spaces. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1336444 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3401 Added code to extract information from an address string andRajith Muditha Attapattu2012-04-043-43/+159
| | | | | | populate Node and Link data structures. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1309341 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3401 Adding an exception class to deal with AddressRelated issues.Rajith Muditha Attapattu2012-03-131-0/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1300145 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3401 Added a final field "type" to abstract destinationRajith Muditha Attapattu2012-03-051-0/+143
| | | | | | | | | | | | | implementation, which will be used by the common methods in the abstract implementation to make decisions based on the type. Added the DestinationStringParser which will parse an Address string or a BURL string and populate an Address data structure. Added an AddressHelper class to extract information from the address string. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1297167 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3401 Added Node and Link data structures to hold information fromRajith Muditha Attapattu2012-03-053-0/+382
| | | | | | | | address strings after it's being parsed.The Address object now contains a Node and Link object that contains the same info as in the options but in a more accessible way. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1297166 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3401 To help with the extracting information from addressing,Rajith Muditha Attapattu2012-03-051-0/+150
| | | | | | | | Added a getMap() and getList()method to the Accessor interface. Added a NestedMapAccessor which will traverse nested map in order to find a property. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1297160 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3605 : [Java Broker] Durable subscriber with no-local true receives ↵Robert Godfrey2012-02-281-1/+3
| | | | | | messages on re-connection git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1294884 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Java Broker: Remove unsed method from ContentHeaderBody.javaKeith Wall2012-02-271-11/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1294163 13f79535-47bb-0310-9956-ffa450edef68
* AMQP-24 : [Java Broker] Implement distributed transactions for AMQP 0-10Robert Godfrey2012-02-231-0/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1292984 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3789: restore one of the improvements made in this JIRA which was ↵Robert Gemmell2012-02-221-8/+13
| | | | | | inadvertantly reverted during subsequent application of an older patch elsewhere git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1292521 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3595 : Python Alternate Exchange tests fail against the Java BrokerRobert Godfrey2012-02-211-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1291964 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3597 : Python Headers Exchange tests fail against Java Broker (Java ↵Robert Godfrey2012-02-211-1/+1
| | | | | | AMQP 0-10 transport cannot cope with message transfers with no body and no headers) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1291719 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2750: remove erroneous assert about 'LongString' lengthsRobert Gemmell2012-02-201-3/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1291518 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3857: remove the protected Impl method now that we dont need the ↵Robert Gemmell2012-02-201-7/+0
| | | | | | Session reference, and just call super.sessionAttach instead. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1291345 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3857: Fix racing conditions on registering session in connection and ↵Robert Gemmell2012-02-201-0/+1
| | | | | | | | sending session.attached command. Applied patch from Oleksandr Rudyy <orudyy@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1291344 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3293: add new system properties for setting client send/receive buffer ↵Robert Gemmell2012-02-193-9/+78
| | | | | | sizes on connections, restore legacy properties git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1291056 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3854: SO_REUSEADDR should be applied to server socket before bind()Keith Wall2012-02-181-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1290907 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3714: Fix defect in BasicContentHeaderPropertiesKeith Wall2012-02-171-2/+8
| | | | | | Fix defect in BasicContentHeaderProperties when deciding whether to use the cached encoded form. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1245439 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3739: Java properties qpid.ssl.keyStoreCertType and ↵Keith Wall2012-02-131-2/+0
| | | | | | | | qpid.ssl.trustStoreCertType have misleading names and would be better called qpid.ssl.[Key|Trust]ManagerFactory.algorithm Address review comments from Robbie Gemmell. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1243449 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3801: change use of escaped single quote to a hex literal to avoid a ↵Robert Gemmell2012-02-061-4/+8
| | | | | | bug in Checkstyle after JavaCC processes it into escaped unicode. Add braces to if statements and remove tabs for clarity. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1241180 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Remove redundant code from client and common trees.Keith Wall2012-02-0610-782/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1241107 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3756: Reorder Java Broker's connection close process so that ↵Keith Wall2012-02-062-3/+8
| | | | | | | | | ConnectionCloseOk is sent only after first updating its internal state. This change means that the connection mbean will be deregistered from JMX before sending ConnectionCloseOk, thus removing the possibility of the race condition. The client side process is unaffected by this change. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1241024 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3814: ensure the 0-10 client sends its version number during ↵Robert Gemmell2012-02-056-96/+103
| | | | | | ConnectionStart(Ok) process, align properties better across protocol versions, general tidy up of the property handling git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1240813 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: remove test-only and unused connect methodsRobert Gemmell2012-02-053-23/+12
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1240812 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3810: fix log outputRobert Gemmell2012-02-041-4/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1240605 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3810: close an accepted socket when exceptions occur in order to ↵Robert Gemmell2012-02-041-4/+24
| | | | | | prevent leaking, wrap debug statement git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1240497 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3810: rework exception handling to allow the acceptor to continue after ↵Robert Gemmell2012-02-031-25/+41
| | | | | | encountering IOE such as too many open files, ensure errors are logged at error level (except at close, when a SocketException will be thrown if we are blocking on accept() at the time), make the thread non-daemon but add support for it to exit when the acceptor is closed git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1240223 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3801 : [Java] Move JMS Selector code into commonRobert Godfrey2012-02-021-4/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1239647 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3801 : [Java] Move JMS Selector code into commonRobert Godfrey2012-02-0212-0/+2616
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1239643 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3784: move the system property key into ClientPropertiesRobert Gemmell2012-02-021-0/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1239622 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3789 : [Java] Remove duplication of BytesDataOutput inner class, and ↵Robert Godfrey2012-01-311-0/+178
| | | | | | shared code in SessionAdapt[eo]rs git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1238868 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3789 : [Java] Remove dead code and empty directoriesRobert Godfrey2012-01-301-38/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1237612 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3739: Java properties qpid.ssl.keyStoreCertType and ↵Keith Wall2012-01-2912-64/+317
| | | | | | | | | | | | | | | qpid.ssl.trustStoreCertType have misleading names and would be better called qpid.ssl.[Key|Trust]ManagerFactory.algorithm * Introduced two properties qpid.ssl.KeyManagerFactory.algorithm and qpid.ssl.TrustManagerFactory.algorithm to allow a client user to override the algorithm name used when Qpid client constructs a KeyManager or TrustManager. * Continued to support qpid.ssl.keyStoreCertType and qpid.ssl.trustStoreCertType (now marked as deprecated) * Introduced a new Java Broker configuration key connector/ssl/keyManagerFactoryAlgorithm * Continued to support broker configuration key connector/ssl/certType (now marked as deprecated and will issue warning if used). * Changed the default from hardcoded 'SunX509' to the value(s) returned by KeyManagerFactory#getDefaultAlgorithm() and TrustManagerFactory#getDefaultAlgorithm(). This allows the Java Broker and Client to be used out of the box on non-Sun JDKs without having to set qpid.ssl.KeyManagerFactory.algorithm or qpid.ssl.TrustManagerFactory.algorithm. * Updated client docbook documentation. Tested both Java Broker and Client on IBM JDK and ensured all 0-10 and 0-9-1 profiles pass (including SSLTest which was failing prior to this change). git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1237504 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3789 : [Java] code tidyupsRobert Godfrey2012-01-2949-1972/+190
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1237273 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Encapsulate fields, use private members and accesors (keep ↵Robert Godfrey2012-01-2726-98/+158
| | | | | | checkstyle happy) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1236867 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Ensure all control flow statements use braces (keeping CheckStyle ↵Robert Godfrey2012-01-271-26/+62
| | | | | | happy) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1236647 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA : [Java] Tidy up import statements across the codebase, remove ↵Robert Godfrey2012-01-27119-394/+399
| | | | | | unused/redundant imports (keep Checkstyle happy) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1236638 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3783 The AddressParser will now set the subject to Null if it equals to ↵Rajith Muditha Attapattu2012-01-261-0/+4
| | | | | | | | | | None. The only drawback is that if somebody wants to use a subject called "None" which is hard to imagine :) However even if they want to use such a subject it will not be easy to distinguish due to the fact we print null subjects as None. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1236196 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3774 : allow out of order completion of persistent enqueues / dequeuesRobert Godfrey2012-01-201-2/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1234111 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3766 Committing a patch by Weston Price.Rajith Muditha Attapattu2012-01-171-12/+13
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1232612 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3758 : Reduce memory overhead of SessionsRobert Godfrey2012-01-131-40/+47
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1231141 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3730: remove ReadWriteJobQueue, it is no longer necessary as the only ↵Robert Gemmell2012-01-093-478/+4
| | | | | | things now using the thread pool are write jobs, so there is no need/benefit to request it be write-biased. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1229112 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3715: Fix the receiving of an empty ObjectMessage (without a body)Keith Wall2012-01-072-0/+206
| | | | | | Applied patch from Oleksandr Rudyy<orudyy@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1228583 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3720 : [Java Broker] Implement Message GroupingRobert Godfrey2012-01-032-2/+17
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1226930 13f79535-47bb-0310-9956-ffa450edef68