Modified: 
incubator/qpid/trunk/qpid/java/client-java14/src/test/java/org/apache/qpid/test/integration/client/ConnectionTest.java
URL: 
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/java/client-java14/src/test/java/org/apache/qpid/test/integration/client/ConnectionTest.java?rev=651325&r1=651324&r2=651325&view=diff
==============================================================================
--- 
incubator/qpid/trunk/qpid/java/client-java14/src/test/java/org/apache/qpid/test/integration/client/ConnectionTest.java
 (original)
+++ 
incubator/qpid/trunk/qpid/java/client-java14/src/test/java/org/apache/qpid/test/integration/client/ConnectionTest.java
 Thu Apr 24 10:49:03 2008
@@ -1,66 +1,66 @@
-/*
- *
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
- */
-package org.apache.qpid.test.integration.client;
-
-import junit.framework.Assert;
-import junit.framework.TestCase;
-
-import org.apache.log4j.Logger;
-import org.apache.log4j.NDC;
-
-import org.apache.qpid.client.AMQConnection;
-
-/**
- * Implements a trivial broker connection test, to a broker on the default 
port on localhost, to check that SASL
- * authentication works.
- *
- * <p><table id="crc"><caption>CRC Card</caption>
- * <tr><th> Responsibilities <th> Collaborations
- * <tr><td> Check that a connection to a broker can be established.
- * </table>
- */
-public class ConnectionTest extends TestCase
-{
-    private String BROKER_URL = "tcp://localhost:5672";
-
-    public ConnectionTest(String name)
-    {
-        super(name);
-    }
-
-    /** Check that a connection to a broker can be established. */
-    public void testConnection() throws Exception
-    {
-        // Open a connection to the broker and close it again.
-        AMQConnection conn = new AMQConnection(BROKER_URL, "guest", "guest", 
"clientid", "test");
-        conn.close();
-    }
-
-    protected void setUp()
-    {
-        NDC.push(getName());
-    }
-
-    protected void tearDown()
-    {
-        NDC.pop();
-    }
-}
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+package org.apache.qpid.test.integration.client;
+
+import junit.framework.Assert;
+import junit.framework.TestCase;
+
+import org.apache.log4j.Logger;
+import org.apache.log4j.NDC;
+
+import org.apache.qpid.client.AMQConnection;
+
+/**
+ * Implements a trivial broker connection test, to a broker on the default 
port on localhost, to check that SASL
+ * authentication works.
+ *
+ * <p><table id="crc"><caption>CRC Card</caption>
+ * <tr><th> Responsibilities <th> Collaborations
+ * <tr><td> Check that a connection to a broker can be established.
+ * </table>
+ */
+public class ConnectionTest extends TestCase
+{
+    private String BROKER_URL = "tcp://localhost:5672";
+
+    public ConnectionTest(String name)
+    {
+        super(name);
+    }
+
+    /** Check that a connection to a broker can be established. */
+    public void testConnection() throws Exception
+    {
+        // Open a connection to the broker and close it again.
+        AMQConnection conn = new AMQConnection(BROKER_URL, "guest", "guest", 
"clientid", "test");
+        conn.close();
+    }
+
+    protected void setUp()
+    {
+        NDC.push(getName());
+    }
+
+    protected void tearDown()
+    {
+        NDC.pop();
+    }
+}

Propchange: 
incubator/qpid/trunk/qpid/java/client-java14/src/test/java/org/apache/qpid/test/integration/client/ConnectionTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
incubator/qpid/trunk/qpid/java/client/example/src/main/java/org/apache/qpid/example/amqpexample/direct/DeclareQueue.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
incubator/qpid/trunk/qpid/java/client/example/src/main/java/org/apache/qpid/example/amqpexample/direct/DirectProducer.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
incubator/qpid/trunk/qpid/java/client/example/src/main/java/org/apache/qpid/example/amqpexample/direct/Listener.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
incubator/qpid/trunk/qpid/java/client/example/src/main/java/org/apache/qpid/example/amqpexample/fanout/DeclareQueue.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
incubator/qpid/trunk/qpid/java/client/example/src/main/java/org/apache/qpid/example/amqpexample/fanout/FannoutProducer.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
incubator/qpid/trunk/qpid/java/client/example/src/main/java/org/apache/qpid/example/amqpexample/fanout/Listener.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
incubator/qpid/trunk/qpid/java/client/example/src/main/java/org/apache/qpid/example/amqpexample/pubsub/TopicListener.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
incubator/qpid/trunk/qpid/java/client/example/src/main/java/org/apache/qpid/example/amqpexample/pubsub/TopicPublisher.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
incubator/qpid/trunk/qpid/java/client/example/src/main/java/org/apache/qpid/example/jmsexample/fanout/Consumer.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
incubator/qpid/trunk/qpid/java/client/example/src/main/java/org/apache/qpid/example/jmsexample/fanout/Listener.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
incubator/qpid/trunk/qpid/java/client/example/src/main/java/org/apache/qpid/example/jmsexample/fanout/Producer.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
incubator/qpid/trunk/qpid/java/client/example/src/main/java/org/apache/qpid/example/transport/ExistingSocketConnectorDemo.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/mina/transport/socket/nio/ExistingSocketConnector.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQConnectionDelegate.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQConnectionDelegate_0_10.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQConnectionDelegate_0_8.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: 
incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSessionAdapter.java
URL: 
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSessionAdapter.java?rev=651325&r1=651324&r2=651325&view=diff
==============================================================================
--- 
incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSessionAdapter.java
 (original)
+++ 
incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSessionAdapter.java
 Thu Apr 24 10:49:03 2008
@@ -1,26 +1,26 @@
-/*
- *
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
- */
-package org.apache.qpid.client;
-
-public interface AMQSessionAdapter
-{
-    public AMQSession getSession();
-}
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+package org.apache.qpid.client;
+
+public interface AMQSessionAdapter
+{
+    public AMQSession getSession();
+}

Propchange: 
incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSessionAdapter.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSessionDirtyException.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession_0_8.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: 
incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQUndefinedDestination.java
URL: 
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQUndefinedDestination.java?rev=651325&r1=651324&r2=651325&view=diff
==============================================================================
--- 
incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQUndefinedDestination.java
 (original)
+++ 
incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQUndefinedDestination.java
 Thu Apr 24 10:49:03 2008
@@ -1,40 +1,40 @@
-/*
- *
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
- */
-package org.apache.qpid.client;
-
-import org.apache.qpid.framing.AMQShortString;
-
-public class AMQUndefinedDestination extends AMQDestination
-{
-
-    private static final AMQShortString UNKNOWN_EXCHANGE_CLASS = new 
AMQShortString("unknown");
-
-
-    public AMQUndefinedDestination(AMQShortString exchange, AMQShortString 
routingKey, AMQShortString queueName)
-    {
-        super(exchange, UNKNOWN_EXCHANGE_CLASS, routingKey, queueName);
-    }
-
-    public boolean isNameRequired()
-    {
-        return getAMQQueueName() == null;
-    }
-}
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+package org.apache.qpid.client;
+
+import org.apache.qpid.framing.AMQShortString;
+
+public class AMQUndefinedDestination extends AMQDestination
+{
+
+    private static final AMQShortString UNKNOWN_EXCHANGE_CLASS = new 
AMQShortString("unknown");
+
+
+    public AMQUndefinedDestination(AMQShortString exchange, AMQShortString 
routingKey, AMQShortString queueName)
+    {
+        super(exchange, UNKNOWN_EXCHANGE_CLASS, routingKey, queueName);
+    }
+
+    public boolean isNameRequired()
+    {
+        return getAMQQueueName() == null;
+    }
+}

Propchange: 
incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQUndefinedDestination.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageConsumer_0_8.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageProducer_0_8.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/ClientProperties.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: 
incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/CustomJMSXProperty.java
URL: 
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/CustomJMSXProperty.java?rev=651325&r1=651324&r2=651325&view=diff
==============================================================================
--- 
incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/CustomJMSXProperty.java
 (original)
+++ 
incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/CustomJMSXProperty.java
 Thu Apr 24 10:49:03 2008
@@ -1,66 +1,66 @@
-/*
- *
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
- */
-package org.apache.qpid.client;
-
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.Enumeration;
-
-import org.apache.qpid.framing.AMQShortString;
-
-public enum CustomJMSXProperty
-{
-    JMS_AMQP_NULL,
-    JMS_QPID_DESTTYPE,
-    JMSXGroupID,
-    JMSXGroupSeq,
-    JMSXUserID;
-
-
-    private final AMQShortString _nameAsShortString;
-
-    CustomJMSXProperty()
-    {
-        _nameAsShortString = new AMQShortString(toString());
-    }
-
-    public AMQShortString getShortStringName()
-    {
-        return _nameAsShortString;
-    }
-
-    private static Enumeration _names;
-
-    public static synchronized Enumeration asEnumeration()
-    {
-        if(_names == null)
-        {
-            CustomJMSXProperty[] properties = values();
-            ArrayList<String> nameList = new 
ArrayList<String>(properties.length);
-            for(CustomJMSXProperty property :  properties)
-            {
-                nameList.add(property.toString());
-            }
-            _names = Collections.enumeration(nameList);
-        }
-        return _names;    
-    }
-}
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+package org.apache.qpid.client;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.Enumeration;
+
+import org.apache.qpid.framing.AMQShortString;
+
+public enum CustomJMSXProperty
+{
+    JMS_AMQP_NULL,
+    JMS_QPID_DESTTYPE,
+    JMSXGroupID,
+    JMSXGroupSeq,
+    JMSXUserID;
+
+
+    private final AMQShortString _nameAsShortString;
+
+    CustomJMSXProperty()
+    {
+        _nameAsShortString = new AMQShortString(toString());
+    }
+
+    public AMQShortString getShortStringName()
+    {
+        return _nameAsShortString;
+    }
+
+    private static Enumeration _names;
+
+    public static synchronized Enumeration asEnumeration()
+    {
+        if(_names == null)
+        {
+            CustomJMSXProperty[] properties = values();
+            ArrayList<String> nameList = new 
ArrayList<String>(properties.length);
+            for(CustomJMSXProperty property :  properties)
+            {
+                nameList.add(property.toString());
+            }
+            _names = Collections.enumeration(nameList);
+        }
+        return _names;    
+    }
+}

Propchange: 
incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/CustomJMSXProperty.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/QpidConnectionMetaData.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/QueueSenderAdapter.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: 
incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/TemporaryDestination.java
URL: 
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/TemporaryDestination.java?rev=651325&r1=651324&r2=651325&view=diff
==============================================================================
--- 
incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/TemporaryDestination.java
 (original)
+++ 
incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/TemporaryDestination.java
 Thu Apr 24 10:49:03 2008
@@ -1,38 +1,38 @@
-/*
- *  Licensed to the Apache Software Foundation (ASF) under one
- *  or more contributor license agreements.  See the NOTICE file
- *  distributed with this work for additional information
- *  regarding copyright ownership.  The ASF licenses this file
- *  to you under the Apache License, Version 2.0 (the
- *  "License"); you may not use this file except in compliance
- *  with the License.  You may obtain a copy of the License at
- *
- *    http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing,
- *  software distributed under the License is distributed on an
- *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- *  KIND, either express or implied.  See the License for the
- *  specific language governing permissions and limitations
- *  under the License.
- *
- *
- */
-
-package org.apache.qpid.client;
-
-import javax.jms.Destination;
-import javax.jms.JMSException;
-
-/**
- * Provides support for covenience interface implemented by both 
AMQTemporaryTopic and AMQTemporaryQueue
- * so that operations related to their "temporary-ness" can be abstracted out.
- */
-interface TemporaryDestination extends Destination
-{
-
-    public void delete() throws JMSException;
-    public AMQSession getSession();
-    public boolean isDeleted();
-
-}
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ *
+ *
+ */
+
+package org.apache.qpid.client;
+
+import javax.jms.Destination;
+import javax.jms.JMSException;
+
+/**
+ * Provides support for covenience interface implemented by both 
AMQTemporaryTopic and AMQTemporaryQueue
+ * so that operations related to their "temporary-ness" can be abstracted out.
+ */
+interface TemporaryDestination extends Destination
+{
+
+    public void delete() throws JMSException;
+    public AMQSession getSession();
+    public boolean isDeleted();
+
+}

Propchange: 
incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/TemporaryDestination.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/TopicPublisherAdapter.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: 
incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/failover/FailoverNoopSupport.java
URL: 
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/failover/FailoverNoopSupport.java?rev=651325&r1=651324&r2=651325&view=diff
==============================================================================
--- 
incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/failover/FailoverNoopSupport.java
 (original)
+++ 
incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/failover/FailoverNoopSupport.java
 Thu Apr 24 10:49:03 2008
@@ -1,75 +1,75 @@
-/*
- *  Licensed to the Apache Software Foundation (ASF) under one
- *  or more contributor license agreements.  See the NOTICE file
- *  distributed with this work for additional information
- *  regarding copyright ownership.  The ASF licenses this file
- *  to you under the Apache License, Version 2.0 (the
- *  "License"); you may not use this file except in compliance
- *  with the License.  You may obtain a copy of the License at
- *
- *    http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing,
- *  software distributed under the License is distributed on an
- *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- *  KIND, either express or implied.  See the License for the
- *  specific language governing permissions and limitations
- *  under the License.
- *
- *
- */
-
-package org.apache.qpid.client.failover;
-
-import org.apache.qpid.client.AMQConnection;
-
-/**
- * FailoverNoopSupport is a [EMAIL PROTECTED] FailoverSupport} implementation 
that does not really provide any failover support
- * at all. It wraps a [EMAIL PROTECTED] FailoverProtectedOperation} but should 
that operation throw [EMAIL PROTECTED] FailoverException} this
- * support class simply re-raises that exception as an IllegalStateException. 
This support wrapper should only be
- * used where the caller can be certain that the failover protected operation 
cannot acutally throw a failover exception,
- * for example, because the caller already holds a lock preventing that 
condition from arising.
- *
- * <p><table id="crc"><caption>CRC Card</caption>
- * <tr><th> Responsibilities <th> Collaborations
- * <tr><td> Perform a fail-over protected operation raising providing no 
handling of fail-over conditions.
- * </table>
- */
-public class FailoverNoopSupport<T, E extends Exception> implements 
FailoverSupport<T, E>
-{
-    /** The protected operation that is to be retried in the event of 
fail-over. */
-    FailoverProtectedOperation<T, E> operation;
-
-    /** The connection on which the fail-over protected operation is to be 
performed. */
-    AMQConnection connection;
-
-    /**
-     * Creates an automatic retrying fail-over handler for the specified 
operation.
-     *
-     * @param operation The fail-over protected operation to wrap in this 
handler.
-     */
-    public FailoverNoopSupport(FailoverProtectedOperation<T, E> operation, 
AMQConnection con)
-    {
-        this.operation = operation;
-        this.connection = con;
-    }
-
-    /**
-     * Delegates to another continuation which is to be provided with 
fail-over handling.
-     *
-     * @return The return value from the delegated to continuation.
-     * @throws E Any exception that the delegated to continuation may raise.
-     */
-    public T execute() throws E
-    {
-        try
-        {
-            return operation.execute();
-        }
-        catch (FailoverException e)
-        {
-            throw new IllegalStateException("Fail-over interupted no-op 
failover support. "
-                + "No-op support should only be used where the caller is 
certain fail-over cannot occur.", e);
-        }
-    }
-}
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ *
+ *
+ */
+
+package org.apache.qpid.client.failover;
+
+import org.apache.qpid.client.AMQConnection;
+
+/**
+ * FailoverNoopSupport is a [EMAIL PROTECTED] FailoverSupport} implementation 
that does not really provide any failover support
+ * at all. It wraps a [EMAIL PROTECTED] FailoverProtectedOperation} but should 
that operation throw [EMAIL PROTECTED] FailoverException} this
+ * support class simply re-raises that exception as an IllegalStateException. 
This support wrapper should only be
+ * used where the caller can be certain that the failover protected operation 
cannot acutally throw a failover exception,
+ * for example, because the caller already holds a lock preventing that 
condition from arising.
+ *
+ * <p><table id="crc"><caption>CRC Card</caption>
+ * <tr><th> Responsibilities <th> Collaborations
+ * <tr><td> Perform a fail-over protected operation raising providing no 
handling of fail-over conditions.
+ * </table>
+ */
+public class FailoverNoopSupport<T, E extends Exception> implements 
FailoverSupport<T, E>
+{
+    /** The protected operation that is to be retried in the event of 
fail-over. */
+    FailoverProtectedOperation<T, E> operation;
+
+    /** The connection on which the fail-over protected operation is to be 
performed. */
+    AMQConnection connection;
+
+    /**
+     * Creates an automatic retrying fail-over handler for the specified 
operation.
+     *
+     * @param operation The fail-over protected operation to wrap in this 
handler.
+     */
+    public FailoverNoopSupport(FailoverProtectedOperation<T, E> operation, 
AMQConnection con)
+    {
+        this.operation = operation;
+        this.connection = con;
+    }
+
+    /**
+     * Delegates to another continuation which is to be provided with 
fail-over handling.
+     *
+     * @return The return value from the delegated to continuation.
+     * @throws E Any exception that the delegated to continuation may raise.
+     */
+    public T execute() throws E
+    {
+        try
+        {
+            return operation.execute();
+        }
+        catch (FailoverException e)
+        {
+            throw new IllegalStateException("Fail-over interupted no-op 
failover support. "
+                + "No-op support should only be used where the caller is 
certain fail-over cannot occur.", e);
+        }
+    }
+}

Propchange: 
incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/failover/FailoverNoopSupport.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: 
incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/failover/FailoverProtectedOperation.java
URL: 
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/failover/FailoverProtectedOperation.java?rev=651325&r1=651324&r2=651325&view=diff
==============================================================================
--- 
incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/failover/FailoverProtectedOperation.java
 (original)
+++ 
incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/failover/FailoverProtectedOperation.java
 Thu Apr 24 10:49:03 2008
@@ -1,49 +1,49 @@
-/*
- *  Licensed to the Apache Software Foundation (ASF) under one
- *  or more contributor license agreements.  See the NOTICE file
- *  distributed with this work for additional information
- *  regarding copyright ownership.  The ASF licenses this file
- *  to you under the Apache License, Version 2.0 (the
- *  "License"); you may not use this file except in compliance
- *  with the License.  You may obtain a copy of the License at
- *
- *    http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing,
- *  software distributed under the License is distributed on an
- *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- *  KIND, either express or implied.  See the License for the
- *  specific language governing permissions and limitations
- *  under the License.
- *
- *
- */
-
-package org.apache.qpid.client.failover;
-
-/**
- * FailoverProtectedOperation is a continuation for an operation that may 
throw a [EMAIL PROTECTED] FailoverException} because
- * it has been interrupted by the fail-over process. The [EMAIL PROTECTED] 
FailoverRetrySupport} class defines support wrappers
- * for failover protected operations, in order to provide different handling 
schemes when failovers occurr.
- *
- * <p/>The type of checked exception that the operation may perform has been 
generified, in order that fail over
- * protected operations can be defined that raise arbitrary exceptions. The 
actuall exception types used should not
- * be sub-classes of FailoverException, or else catching FailoverException in 
the [EMAIL PROTECTED] FailoverRetrySupport} classes
- * will mask the exception.
- *
- * <p><table id="crc"><caption>CRC Card</caption>
- * <tr><th> Responsibilities
- * <tr><td> Perform an operation that may be interrupted by fail-over.
- * </table>
- */
-public interface FailoverProtectedOperation<T, E extends Exception>
-{
-    /**
-     * Performs the continuations work.
-     *
-     * @return Provdes scope for the continuation to return an arbitrary value.
-     *
-     * @throws FailoverException If the operation is interrupted by a 
fail-over notification.
-     */
-    public abstract T execute() throws E, FailoverException;
-}
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ *
+ *
+ */
+
+package org.apache.qpid.client.failover;
+
+/**
+ * FailoverProtectedOperation is a continuation for an operation that may 
throw a [EMAIL PROTECTED] FailoverException} because
+ * it has been interrupted by the fail-over process. The [EMAIL PROTECTED] 
FailoverRetrySupport} class defines support wrappers
+ * for failover protected operations, in order to provide different handling 
schemes when failovers occurr.
+ *
+ * <p/>The type of checked exception that the operation may perform has been 
generified, in order that fail over
+ * protected operations can be defined that raise arbitrary exceptions. The 
actuall exception types used should not
+ * be sub-classes of FailoverException, or else catching FailoverException in 
the [EMAIL PROTECTED] FailoverRetrySupport} classes
+ * will mask the exception.
+ *
+ * <p><table id="crc"><caption>CRC Card</caption>
+ * <tr><th> Responsibilities
+ * <tr><td> Perform an operation that may be interrupted by fail-over.
+ * </table>
+ */
+public interface FailoverProtectedOperation<T, E extends Exception>
+{
+    /**
+     * Performs the continuations work.
+     *
+     * @return Provdes scope for the continuation to return an arbitrary value.
+     *
+     * @throws FailoverException If the operation is interrupted by a 
fail-over notification.
+     */
+    public abstract T execute() throws E, FailoverException;
+}

Propchange: 
incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/failover/FailoverProtectedOperation.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: 
incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/failover/FailoverRetrySupport.java
URL: 
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/failover/FailoverRetrySupport.java?rev=651325&r1=651324&r2=651325&view=diff
==============================================================================
--- 
incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/failover/FailoverRetrySupport.java
 (original)
+++ 
incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/failover/FailoverRetrySupport.java
 Thu Apr 24 10:49:03 2008
@@ -1,135 +1,135 @@
-/*
- *
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
- */
-package org.apache.qpid.client.failover;
-
-import org.apache.qpid.client.AMQConnection;
-
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-/**
- * FailoverRetrySupport is a continuation that wraps another continuation, 
delaying its execution until it is notified
- * that a blocking condition has been met, and executing the continuation 
within a mutex. If the continuation fails, due
- * to the original condition being broken, whilst the continuation is waiting 
for a reponse to a synchronous request,
- * FailoverRetrySupport automatcally rechecks the condition and re-acquires 
the mutex and re-runs the continution. This
- * automatic retrying is continued until the continuation succeeds, or throws 
an exception (different to
- * FailoverException, which is used to signal the failure of the original 
condition).
- *
- * <p/>The blocking condition used is that the connection is not currently 
failing over, and the mutex used is the
- * connection failover mutex, which guards against the fail-over process being 
run during fail-over vulnerable methods.
- * These are used like a lock and condition variable.
- *
- * <p/>The wrapped operation may throw a FailoverException, this is an 
exception that can be raised by a
- * [EMAIL PROTECTED] 
org.apache.qpid.client.protocol.BlockingMethodFrameListener}, in response to it 
being notified that a
- * fail-over wants to start whilst it was waiting. Methods that are vulnerable 
to fail-over are those that are
- * synchronous, where a failure will prevent them from getting the reply they 
are waiting for and asynchronous
- * methods that should not be attempted when a fail-over is in progress.
- *
- * <p/>Wrapping a synchronous method in a FailoverRetrySupport will have the 
effect that the operation will not be
- * started during fail-over, but be delayed until any current fail-over has 
completed. Should a fail-over process want
- * to start whilst waiting for the synchrnous reply, the FailoverRetrySupport 
will detect this and rety the operation
- * until it succeeds. Synchronous methods are usually coordinated with a
- * [EMAIL PROTECTED] 
org.apache.qpid.client.protocol.BlockingMethodFrameListener} which is notified 
when a fail-over process wants
- * to start and throws a FailoverException in response to this.
- *
- * <p/>Wrapping an asynchronous method in a FailoverRetrySupport will have the 
effect that the operation will not be
- * started during fail-over, but be delayed until any current fail-over has 
completed.
- *
- * <p/><table id="crc"><caption>CRC Card</caption>
- * <tr><th> Responsibilities <th> Collaborations
- * <tr><td> Provide a continuation synchronized on a fail-over lock and 
condition.
- * <tr><td> Automatically retry the continuation accross fail-overs until it 
succeeds, or raises an exception.
- * </table>
- *
- * @todo Another continuation. Could use an interface Continuation (as 
described in other todos, for example, see
- *      [EMAIL PROTECTED] org.apache.qpid.pool.Job}). Then have a wrapping 
continuation (this), which blocks on an arbitrary
- *      Condition or Latch (specified in constructor call), that this blocks 
on before calling the wrapped Continuation.
- *      Must work on Java 1.4, so check retrotranslator works on 
Lock/Condition or latch first. Argument and return type
- *      to match wrapped condition as type parameters. Rename to 
AsyncConditionalContinuation or something like that.
- *
- * @todo InterruptedException not handled well.
- */
-public class FailoverRetrySupport<T, E extends Exception> implements 
FailoverSupport<T, E>
-{
-    /** Used for debugging. */
-    private static final Logger _log = 
LoggerFactory.getLogger(FailoverRetrySupport.class);
-
-    /** The protected operation that is to be retried in the event of 
fail-over. */
-    FailoverProtectedOperation<T, E> operation;
-
-    /** The connection on which the fail-over protected operation is to be 
performed. */
-    AMQConnection connection;
-
-    /**
-     * Creates an automatic retrying fail-over handler for the specified 
operation.
-     *
-     * @param operation The fail-over protected operation to wrap in this 
handler.
-     */
-    public FailoverRetrySupport(FailoverProtectedOperation<T, E> operation, 
AMQConnection con)
-    {
-        this.operation = operation;
-        this.connection = con;
-    }
-
-    /**
-     * Delays a continuation until the "not failing over" condition is met on 
the specified connection. Repeats
-     * until the operation throws AMQException or succeeds without being 
interrupted by fail-over.
-     *
-     * @return The result of executing the continuation.
-     *
-     * @throws E Any underlying exception is allowed to fall through.
-     */
-    public T execute() throws E
-    {
-        while (true)
-        {
-            try
-            {
-                connection.blockUntilNotFailingOver();
-            }
-            catch (InterruptedException e)
-            {
-                _log.debug("Interrupted: " + e, e);
-
-                return null;
-            }
-
-            synchronized (connection.getFailoverMutex())
-            {
-                try
-                {
-                    return operation.execute();
-                }
-                catch (FailoverException e)
-                {
-                    _log.debug("Failover exception caught during operation: " 
+ e, e);
-                }
-                catch (IllegalStateException e)
-                {
-                    if (!(e.getMessage().startsWith("Fail-over interupted 
no-op failover support")))
-                    {
-                        throw e;
-                    }
-                }
-            }
-        }
-    }
-}
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+package org.apache.qpid.client.failover;
+
+import org.apache.qpid.client.AMQConnection;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+/**
+ * FailoverRetrySupport is a continuation that wraps another continuation, 
delaying its execution until it is notified
+ * that a blocking condition has been met, and executing the continuation 
within a mutex. If the continuation fails, due
+ * to the original condition being broken, whilst the continuation is waiting 
for a reponse to a synchronous request,
+ * FailoverRetrySupport automatcally rechecks the condition and re-acquires 
the mutex and re-runs the continution. This
+ * automatic retrying is continued until the continuation succeeds, or throws 
an exception (different to
+ * FailoverException, which is used to signal the failure of the original 
condition).
+ *
+ * <p/>The blocking condition used is that the connection is not currently 
failing over, and the mutex used is the
+ * connection failover mutex, which guards against the fail-over process being 
run during fail-over vulnerable methods.
+ * These are used like a lock and condition variable.
+ *
+ * <p/>The wrapped operation may throw a FailoverException, this is an 
exception that can be raised by a
+ * [EMAIL PROTECTED] 
org.apache.qpid.client.protocol.BlockingMethodFrameListener}, in response to it 
being notified that a
+ * fail-over wants to start whilst it was waiting. Methods that are vulnerable 
to fail-over are those that are
+ * synchronous, where a failure will prevent them from getting the reply they 
are waiting for and asynchronous
+ * methods that should not be attempted when a fail-over is in progress.
+ *
+ * <p/>Wrapping a synchronous method in a FailoverRetrySupport will have the 
effect that the operation will not be
+ * started during fail-over, but be delayed until any current fail-over has 
completed. Should a fail-over process want
+ * to start whilst waiting for the synchrnous reply, the FailoverRetrySupport 
will detect this and rety the operation
+ * until it succeeds. Synchronous methods are usually coordinated with a
+ * [EMAIL PROTECTED] 
org.apache.qpid.client.protocol.BlockingMethodFrameListener} which is notified 
when a fail-over process wants
+ * to start and throws a FailoverException in response to this.
+ *
+ * <p/>Wrapping an asynchronous method in a FailoverRetrySupport will have the 
effect that the operation will not be
+ * started during fail-over, but be delayed until any current fail-over has 
completed.
+ *
+ * <p/><table id="crc"><caption>CRC Card</caption>
+ * <tr><th> Responsibilities <th> Collaborations
+ * <tr><td> Provide a continuation synchronized on a fail-over lock and 
condition.
+ * <tr><td> Automatically retry the continuation accross fail-overs until it 
succeeds, or raises an exception.
+ * </table>
+ *
+ * @todo Another continuation. Could use an interface Continuation (as 
described in other todos, for example, see
+ *      [EMAIL PROTECTED] org.apache.qpid.pool.Job}). Then have a wrapping 
continuation (this), which blocks on an arbitrary
+ *      Condition or Latch (specified in constructor call), that this blocks 
on before calling the wrapped Continuation.
+ *      Must work on Java 1.4, so check retrotranslator works on 
Lock/Condition or latch first. Argument and return type
+ *      to match wrapped condition as type parameters. Rename to 
AsyncConditionalContinuation or something like that.
+ *
+ * @todo InterruptedException not handled well.
+ */
+public class FailoverRetrySupport<T, E extends Exception> implements 
FailoverSupport<T, E>
+{
+    /** Used for debugging. */
+    private static final Logger _log = 
LoggerFactory.getLogger(FailoverRetrySupport.class);
+
+    /** The protected operation that is to be retried in the event of 
fail-over. */
+    FailoverProtectedOperation<T, E> operation;
+
+    /** The connection on which the fail-over protected operation is to be 
performed. */
+    AMQConnection connection;
+
+    /**
+     * Creates an automatic retrying fail-over handler for the specified 
operation.
+     *
+     * @param operation The fail-over protected operation to wrap in this 
handler.
+     */
+    public FailoverRetrySupport(FailoverProtectedOperation<T, E> operation, 
AMQConnection con)
+    {
+        this.operation = operation;
+        this.connection = con;
+    }
+
+    /**
+     * Delays a continuation until the "not failing over" condition is met on 
the specified connection. Repeats
+     * until the operation throws AMQException or succeeds without being 
interrupted by fail-over.
+     *
+     * @return The result of executing the continuation.
+     *
+     * @throws E Any underlying exception is allowed to fall through.
+     */
+    public T execute() throws E
+    {
+        while (true)
+        {
+            try
+            {
+                connection.blockUntilNotFailingOver();
+            }
+            catch (InterruptedException e)
+            {
+                _log.debug("Interrupted: " + e, e);
+
+                return null;
+            }
+
+            synchronized (connection.getFailoverMutex())
+            {
+                try
+                {
+                    return operation.execute();
+                }
+                catch (FailoverException e)
+                {
+                    _log.debug("Failover exception caught during operation: " 
+ e, e);
+                }
+                catch (IllegalStateException e)
+                {
+                    if (!(e.getMessage().startsWith("Fail-over interupted 
no-op failover support")))
+                    {
+                        throw e;
+                    }
+                }
+            }
+        }
+    }
+}

Propchange: 
incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/failover/FailoverRetrySupport.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: 
incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/handler/AccessRequestOkMethodHandler.java
URL: 
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/handler/AccessRequestOkMethodHandler.java?rev=651325&r1=651324&r2=651325&view=diff
==============================================================================
--- 
incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/handler/AccessRequestOkMethodHandler.java
 (original)
+++ 
incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/handler/AccessRequestOkMethodHandler.java
 Thu Apr 24 10:49:03 2008
@@ -1,36 +1,36 @@
-package org.apache.qpid.client.handler;
-
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-import org.apache.qpid.framing.*;
-import org.apache.qpid.client.state.StateAwareMethodListener;
-import org.apache.qpid.client.state.AMQStateManager;
-import org.apache.qpid.client.protocol.AMQProtocolSession;
-import org.apache.qpid.client.AMQNoConsumersException;
-import org.apache.qpid.client.AMQNoRouteException;
-import org.apache.qpid.AMQException;
-import org.apache.qpid.AMQInvalidRoutingKeyException;
-import org.apache.qpid.AMQChannelClosedException;
-import org.apache.qpid.protocol.AMQConstant;
-
-public class AccessRequestOkMethodHandler implements 
StateAwareMethodListener<AccessRequestOkBody>
-{
-    private static final Logger _logger = 
LoggerFactory.getLogger(AccessRequestOkMethodHandler.class);
-
-    private static AccessRequestOkMethodHandler _handler = new 
AccessRequestOkMethodHandler();
-
-    public static AccessRequestOkMethodHandler getInstance()
-    {
-        return _handler;
-    }
-
-    public void methodReceived(AMQStateManager stateManager, 
AccessRequestOkBody method, int channelId)
-        throws AMQException
-    {
-        _logger.debug("AccessRequestOk method received");
-        final AMQProtocolSession session = stateManager.getProtocolSession();
-        session.setTicket(method.getTicket(), channelId);
-
-    }
-}
+package org.apache.qpid.client.handler;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.client.state.StateAwareMethodListener;
+import org.apache.qpid.client.state.AMQStateManager;
+import org.apache.qpid.client.protocol.AMQProtocolSession;
+import org.apache.qpid.client.AMQNoConsumersException;
+import org.apache.qpid.client.AMQNoRouteException;
+import org.apache.qpid.AMQException;
+import org.apache.qpid.AMQInvalidRoutingKeyException;
+import org.apache.qpid.AMQChannelClosedException;
+import org.apache.qpid.protocol.AMQConstant;
+
+public class AccessRequestOkMethodHandler implements 
StateAwareMethodListener<AccessRequestOkBody>
+{
+    private static final Logger _logger = 
LoggerFactory.getLogger(AccessRequestOkMethodHandler.class);
+
+    private static AccessRequestOkMethodHandler _handler = new 
AccessRequestOkMethodHandler();
+
+    public static AccessRequestOkMethodHandler getInstance()
+    {
+        return _handler;
+    }
+
+    public void methodReceived(AMQStateManager stateManager, 
AccessRequestOkBody method, int channelId)
+        throws AMQException
+    {
+        _logger.debug("AccessRequestOk method received");
+        final AMQProtocolSession session = stateManager.getProtocolSession();
+        session.setTicket(method.getTicket(), channelId);
+
+    }
+}

Propchange: 
incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/handler/AccessRequestOkMethodHandler.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/handler/ChannelFlowMethodHandler.java
------------------------------------------------------------------------------
    svn:eol-style = native


Reply via email to