summaryrefslogtreecommitdiff
path: root/java/client
Commit message (Collapse)AuthorAgeFilesLines
* QPID-149Martin Ritchie2006-12-138-51/+73
| | | | | | | | | replyTo destination was invalid when using TemporaryQueues as the getEncodingName was using a simple method for encoding the Destination. This has been updated to use a BindingURL as this is more transportable. getEncodingName removed from all AMQDestination subclasses and now is implemented in AMQDestination as a call to toURL() Created static Destination.createDestination(BindingURL) to create the correct destination from a BindingURL. PropertiesFileInitialContextFactory.java and AbstractJMSMessage.java updated to use this. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@486647 13f79535-47bb-0310-9956-ffa450edef68
* Minor white space and logging changesMartin Ritchie2006-12-133-7/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@486646 13f79535-47bb-0310-9956-ffa450edef68
* QPID-175 Patch supplied by Rob Godfrey. Now allocates new autoexpanding ↵Robert Greig2006-12-132-4/+41
| | | | | | buffer for StreamMessage when clearBody is called git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@486594 13f79535-47bb-0310-9956-ffa450edef68
* QPID-9Martin Ritchie2006-12-131-3/+1
| | | | | | | | Added ability to send NULL Strings. EncodingUtils.java now returns an empty string for a zero lengthed String. To send a null string use prefix 'n' MapMessageTest.java - Updated to test emptyString and nullString behave correctly. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@486574 13f79535-47bb-0310-9956-ffa450edef68
* QPID-174 Fix submitted by Rob Godfrey. Now performs a flip() to ensure the ↵Robert Greig2006-12-124-24/+132
| | | | | | limit is set correctly. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@486255 13f79535-47bb-0310-9956-ffa450edef68
* QPID-164Martin Ritchie2006-12-124-145/+1176
| | | | | | | | | | | JMSMapMessage.java - fixed incorrect exceptions and return values. Data now sent as a Bytes message. MapMessageTest.java - updated to be more through with the testing of the returned message EncodingUtils.java - added unsignedIntegerLength() FieldTableFactory.java - removed specific PropertyFieldTable reference PropertyFieldTable.java - fixed encoding issues that were causing BufferOverflow errors. PropertyFieldTableTest.java - added test to ensure that the encoding size is correct for ALL types. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@486254 13f79535-47bb-0310-9956-ffa450edef68
* QPID-171 Patch supplied by Rob Godfrey to fix problem where close check for ↵Robert Greig2006-12-122-12/+84
| | | | | | publisher methods did not appear to be done. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@486198 13f79535-47bb-0310-9956-ffa450edef68
* More example fixes and updated pomMarnie McCormack2006-12-124-36/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@486165 13f79535-47bb-0310-9956-ffa450edef68
* Fixes to example classesMarnie McCormack2006-12-121-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@486162 13f79535-47bb-0310-9956-ffa450edef68
* printing the error stack traceBhupendra Bhusman Bhardwaj2006-12-123-25/+25
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@486149 13f79535-47bb-0310-9956-ffa450edef68
* QPID-102: fixed reset(), null handling and readBytes() processing in ↵Robert Greig2006-12-124-283/+425
| | | | | | StreamMessage. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@486118 13f79535-47bb-0310-9956-ffa450edef68
* Removed example dir from here as created under client dirMarnie McCormack2006-12-1218-1773/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@486098 13f79535-47bb-0310-9956-ffa450edef68
* Re-introduced example classesMarnie McCormack2006-12-1219-0/+1884
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@486084 13f79535-47bb-0310-9956-ffa450edef68
* complete client test reorganizationStephen Vinoski2006-12-124-6/+0
| | | | | | | | * a couple more directory moves * remove inclusions and exclusions from surefire config in pom.xml git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@486010 13f79535-47bb-0310-9956-ffa450edef68
* client test reorganizationStephen Vinoski2006-12-12100-19/+22
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@486008 13f79535-47bb-0310-9956-ffa450edef68
* QPID-102: removed some superfluous code from JMSStreamMessage.Robert Greig2006-12-111-87/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@485854 13f79535-47bb-0310-9956-ffa450edef68
* QPID-102: add type conversion logic in StreamMessage.Robert Greig2006-12-112-76/+464
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@485852 13f79535-47bb-0310-9956-ffa450edef68
* This contains a fix for QPID-165 and QPID-166Rajith Muditha Attapattu2006-12-1110-13/+137
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@485735 13f79535-47bb-0310-9956-ffa450edef68
* QPID-163 - attempting to change the client id results in an exception being ↵Robert Greig2006-12-092-11/+49
| | | | | | thrown. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@485020 13f79535-47bb-0310-9956-ffa450edef68
* QPID-102 Addition of StreamMessage supportRobert Greig2006-12-099-107/+1358
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@484987 13f79535-47bb-0310-9956-ffa450edef68
* fix for QPID-116Stephen Vinoski2006-12-082-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@484843 13f79535-47bb-0310-9956-ffa450edef68
* make hard-coded logging level variableStephen Vinoski2006-12-081-4/+1
| | | | | | | | | The log4j logging level was hard-coded to WARN. This change picks up the level from the amqj.logging.level property, so it can be varied on the command line. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@484658 13f79535-47bb-0310-9956-ffa450edef68
* added preconditions to check session status before invoking methods as per ↵Rajith Muditha Attapattu2006-12-081-0/+15
| | | | | | the JMS spec git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@483977 13f79535-47bb-0310-9956-ffa450edef68
* Added line to check setPropertyNames as useful temp system Marnie McCormack2006-12-071-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@483424 13f79535-47bb-0310-9956-ffa450edef68
* Added setObjectProperty test for now, will refactor this class anonMarnie McCormack2006-12-071-10/+69
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@483423 13f79535-47bb-0310-9956-ffa450edef68
* QPID-152Martin Ritchie2006-12-071-4/+2
| | | | | | This was just an oversight the Header has a _type string but was never used. Put in methods to call set/get it. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@483419 13f79535-47bb-0310-9956-ffa450edef68
* This is a fix for QPID-159. These implementations now throw the correct ↵Rajith Muditha Attapattu2006-12-066-18/+167
| | | | | | exceptions as required by the spec git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@483129 13f79535-47bb-0310-9956-ffa450edef68
* FieldTable change.Martin Ritchie2006-12-0513-226/+265
| | | | | | | | | | | | | | | | | | | | | | | | | | FieldTable is now an interface with a PropertyFieldTable.java implementation. This PropertyFieldTable has been updated to handle the wire level encoding and decoding of the underlying map. It also allows XML encoding of the data as used by JMSMapMessage. Currently the AMQP doesn't support all the Java primitives as a result all values are written out as XML using a prefix of 'X'. (See QPID-9 for further details) Changes where not specified are changes from new FieldTable() to FieldTableFactory.newFieldTable() AbstractJMSMessage.java - the type prefixing of properties is now not requried as all the functionality has been moved to PropertyFieldTable.java. In addition set/getObjectProperty is now implemented as PFT does this. basic Tests have been updated to send all property values. FieldTableKeyEnumeration.java has been removed as it is nolonger required. The PFT handles this internally. ToDo: The Tests need to be consolidated so that there is a clear view of the code coverage. QPID-158 git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@482733 13f79535-47bb-0310-9956-ffa450edef68
* Changed JMSReplyTo Queue to test temporary queue values to verify QPID-149Martin Ritchie2006-12-041-2/+16
| | | | | | Worked ok. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@482243 13f79535-47bb-0310-9956-ffa450edef68
* QPID-148Martin Ritchie2006-12-042-183/+348
| | | | | | | | | | | | | | | AMQMinaProtocolSession.java - updated comment AbstractJMSMessage.java - removed a lot of getHeaders() == null checks. Updated logic accordingly.. Now a request for a property that doesn't exist will be consistent with calls on an empty table rather than just creating a default value. BasicContentHeaderProperties.java - the culprit for QPID-148 changed new FieldTable() to setHeaders(new FieldTable()) to ensure propertyFlag is set to write headers to the wire. Added PropertyValueTest.java - that tests all the valid values on the Message. *NOTE*: A number of the tests are commented out as AMQP and therefore the FieldTable do not support these values. QPID-9 Added SVN ignores for the target directories. Updated AbstractJMSMessage.java _readableProperties to be set correctly in the constructor. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@482238 13f79535-47bb-0310-9956-ffa450edef68
* FieldTable.java no longer has a keys() method as it already has a keySet(). ↵Martin Ritchie2006-11-301-6/+16
| | | | | | Plus the implementation was broken. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@480973 13f79535-47bb-0310-9956-ffa450edef68
* QPID-122Martin Ritchie2006-11-289-72/+263
| | | | | | | | | | Pulled _readable (_readableMessage) boolean up to AbstractJMSMessage.java and created (_readableProperties). Checks are now carried out to ensure that the message is readable/writable for the operation so that the correct exception can be thrown. As per the spec. clearBody() method had been implemented in AbstractJMSMessage.java to reset the _readableMessage as a result implementations must now implement clearBodyImpl() which is called before the _readableMessage is reset. Test updated to check that properties and body are correctly read/write set. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@480119 13f79535-47bb-0310-9956-ffa450edef68
* Redundant files removedMarnie McCormack2006-11-283-297/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@480090 13f79535-47bb-0310-9956-ffa450edef68
* Further example tidy upMarnie McCormack2006-11-284-48/+91
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@480089 13f79535-47bb-0310-9956-ffa450edef68
* Further example tidy upMarnie McCormack2006-11-284-39/+44
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@480088 13f79535-47bb-0310-9956-ffa450edef68
* QPID-71Martin Ritchie2006-11-281-10/+43
| | | | | | Update to handle bad characters after port value. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@480032 13f79535-47bb-0310-9956-ffa450edef68
* QPID-71Martin Ritchie2006-11-282-34/+93
| | | | | | | Moved some tests from ConnectionURLTest to BrokerDetailsTest to better reflect the actual class being tested. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@480031 13f79535-47bb-0310-9956-ffa450edef68
* Changes for JMS TCK TestingRajith Muditha Attapattu2006-11-274-3/+217
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@479640 13f79535-47bb-0310-9956-ffa450edef68
* Fixed the situation where a closed session could try and close itself more ↵Martin Ritchie2006-11-271-20/+28
| | | | | | than once. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@479560 13f79535-47bb-0310-9956-ffa450edef68
* properly limit scope for test-only dependenciesStephen Vinoski2006-11-241-1/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@479050 13f79535-47bb-0310-9956-ffa450edef68
* Initial example class overhaul - still some way to go.Marnie McCormack2006-11-2420-365/+293
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@478854 13f79535-47bb-0310-9956-ffa450edef68
* Added example.properties file and amended tests to use for ↵Marnie McCormack2006-11-242-10/+76
| | | | | | PropertiesFileInitialContextFactoryTest. Good example (I hope) for users. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@478822 13f79535-47bb-0310-9956-ffa450edef68
* speed up testStephen Vinoski2006-11-231-7/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@478444 13f79535-47bb-0310-9956-ffa450edef68
* Fix for Java TCK using createTopicConnection(username,password)Martin Ritchie2006-11-231-4/+18
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@478413 13f79535-47bb-0310-9956-ffa450edef68
* client/pom.xml - removed TransactedTest.java from exclude Listener.javaMartin Ritchie2006-11-222-2/+1
| | | | | | TransactedTest.java - fixed naming of setup to setUp git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@478380 13f79535-47bb-0310-9956-ffa450edef68
* * use VMBrokerSetup test helper class where appropriateStephen Vinoski2006-11-223-14/+12
| | | | | | | * change notifyAll() to notify() in MultipleConnectionTest.java git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@478343 13f79535-47bb-0310-9956-ffa450edef68
* [Text|Object]MessageTest.java - added tests that will fail as per QPID-122 ↵Martin Ritchie2006-11-222-19/+19
| | | | | | but commented them out! So mvn passes all tests git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@478266 13f79535-47bb-0310-9956-ffa450edef68
* QPID-119Martin Ritchie2006-11-2217-34/+1008
| | | | | | | | | | | | | | | | | | | Creations: JMSMapMessageFactory.java JMSMapMessage.java MapMessageTest.java for both Object functionality and functionality being sent around. Modifications: AbstractJMSMessage.java - fixed propertyExists() Method not very elegant but when re-factored to use an AMQHeaderPropertyFieldTable it will be better. made setObjectProperty throw RuntimeException as to highlight that it implemented. removed duplicate code in checkPropertyName JMS[Bytes|Object]Message/Factory.java - swapped parameter headers around to match the order in AbstractJMSMessage.java for consistency. TestMessageHelper.java/MessageFactoryRegistry.java - added MapMessage type BytesMessageTest.java - Added tests for read and writeability of message. FieldTableMessageTest.java - Tidied imports [Text|Object]MessageTest.java - added tests that will fail as per QPID-122 git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@478253 13f79535-47bb-0310-9956-ffa450edef68
* QPID-108: remove obsolete ant build filesStephen Vinoski2006-11-223-381/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@478023 13f79535-47bb-0310-9956-ffa450edef68
* broker/pom.xml - removed test scope from junit to remove warning in build log.Martin Ritchie2006-11-203-103/+103
| | | | | | | | | | | | | | TransportConnection.java/AMQQueue.java - change log level on a print statement from warn to info log4j.properties - updated threashold to be 'all' so we can set the logging level with amqj.logging.level client/pom.xml - fixed mvn test run output. It wasn't using our log4.properties file. systests/pom.xml - added log4j.properties configuration broker/pom.xml - added log4j.properties configuration common/pom.xml - skipped tests as there are none, and it caused the build to fail Also adjusted spaceing to be 4 space per tab (and no tabs) git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@477214 13f79535-47bb-0310-9956-ffa450edef68