Author: kpvdr
Date: Mon Dec 11 07:55:42 2006
New Revision: 485730

URL: http://svn.apache.org/viewvc?view=rev&rev=485730
Log:
Added stubs for new Content interface to support new AMQP 0-9 transport

Added:
    
incubator/qpid/trunk/qpid/java/common/src/main/java/org/apache/qpid/framing/Content.java
Modified:
    
incubator/qpid/trunk/qpid/java/common/src/main/java/org/apache/qpid/framing/EncodingUtils.java

Added: 
incubator/qpid/trunk/qpid/java/common/src/main/java/org/apache/qpid/framing/Content.java
URL: 
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/java/common/src/main/java/org/apache/qpid/framing/Content.java?view=auto&rev=485730
==============================================================================
--- 
incubator/qpid/trunk/qpid/java/common/src/main/java/org/apache/qpid/framing/Content.java
 (added)
+++ 
incubator/qpid/trunk/qpid/java/common/src/main/java/org/apache/qpid/framing/Content.java
 Mon Dec 11 07:55:42 2006
@@ -0,0 +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.framing;
+
+public interface Content
+{
+       // TODO: New Content class required for AMQP 0-9.
+}

Modified: 
incubator/qpid/trunk/qpid/java/common/src/main/java/org/apache/qpid/framing/EncodingUtils.java
URL: 
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/java/common/src/main/java/org/apache/qpid/framing/EncodingUtils.java?view=diff&rev=485730&r1=485729&r2=485730
==============================================================================
--- 
incubator/qpid/trunk/qpid/java/common/src/main/java/org/apache/qpid/framing/EncodingUtils.java
 (original)
+++ 
incubator/qpid/trunk/qpid/java/common/src/main/java/org/apache/qpid/framing/EncodingUtils.java
 Mon Dec 11 07:55:42 2006
@@ -98,6 +98,12 @@
         }
     }
 
+    public static int encodedContentLength(Content table)
+    {
+       // TODO: New Content class required for AMQP 0-9.
+        return 0;
+    }
+
     public static void writeShortStringBytes(ByteBuffer buffer, String s)
     {
         if (s != null)
@@ -225,6 +231,11 @@
         }
     }
 
+    public static void writeContentBytes(ByteBuffer buffer, Content content)
+    {
+       // TODO: New Content class required for AMQP 0-9.
+    }
+
     public static void writeBooleans(ByteBuffer buffer, boolean[] values)
     {
         byte packedValue = 0;
@@ -287,6 +298,12 @@
         {
             return FieldTableFactory.newFieldTable(buffer, length);
         }
+    }
+
+    public static Content readContent(ByteBuffer buffer) throws 
AMQFrameDecodingException
+    {
+       // TODO: New Content class required for AMQP 0-9.
+       return new Content();
     }
 
     public static String readShortString(ByteBuffer buffer)


Reply via email to