diff options
author | Alan Conway <aconway@apache.org> | 2007-01-31 23:28:38 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2007-01-31 23:28:38 +0000 |
commit | d71bc6e3f85c90d5f22d186aceadd1894c55383b (patch) | |
tree | d4210b428cd57c1cea4a86db175ac44566bf84dd /cpp/lib/broker/BrokerMessageMessage.cpp | |
parent | ee4d5ffba8167348ea2751202c6065e8de0fc92c (diff) | |
download | qpid-python-d71bc6e3f85c90d5f22d186aceadd1894c55383b.tar.gz |
From Andrew Stitcher <astitcher@redhat.com>
r723@fuschia: andrew | 2007-01-12 00:35:16 +0000
Branch for my work on Qpid.0-9
r724@fuschia: andrew | 2007-01-12 00:59:28 +0000
Added in empty implementation of handler class for protocol Message class
r768@fuschia: andrew | 2007-01-17 01:25:16 +0000
* Added Test for new MessageHandlerImpl (but no actual tests yet)
* Filled in lots of the blanks in the MessageHandlerImpl with code
stolen from the BasicHandlerImpl
r800@fuschia: andrew | 2007-01-17 17:34:13 +0000
Updated to latest upstream changes
r840@fuschia: andrew | 2007-01-19 00:31:59 +0000
Fixed merge errors
r841@fuschia: andrew | 2007-01-19 00:47:29 +0000
Another merge problem fixed
r878@fuschia: andrew | 2007-01-24 11:27:48 +0000
Started work on the Message class handler implementation
r976@fuschia: andrew | 2007-01-30 17:05:05 +0000
Working again after broker Message refactor
r980@fuschia: andrew | 2007-01-30 18:39:18 +0000
Fix for extra parameter to transfer
r992@fuschia: andrew | 2007-01-31 18:29:57 +0000
Checkpoint of work on broker MessageMessage
r1001@fuschia: andrew | 2007-01-31 22:02:27 +0000
MessageMessage work now compiles
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@502038 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/lib/broker/BrokerMessageMessage.cpp')
-rw-r--r-- | cpp/lib/broker/BrokerMessageMessage.cpp | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/cpp/lib/broker/BrokerMessageMessage.cpp b/cpp/lib/broker/BrokerMessageMessage.cpp new file mode 100644 index 0000000000..46f583b978 --- /dev/null +++ b/cpp/lib/broker/BrokerMessageMessage.cpp @@ -0,0 +1,94 @@ +/* + * + * 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. + * + */ +#include "BrokerMessageMessage.h" + +using namespace qpid::broker; + +MessageMessage::MessageMessage(const qpid::framing::AMQMethodBody& _methodBody, + const std::string& _exchange, const std::string& _routingKey, + bool _mandatory, bool _immediate) : + Message(_exchange, _routingKey, _mandatory, _immediate), + methodBody(_methodBody) +{ +} + +void MessageMessage::deliver(qpid::framing::OutputHandler* /*out*/, + int /*channel*/, + const std::string& /*consumerTag*/, + u_int64_t /*deliveryTag*/, + u_int32_t /*framesize*/, + qpid::framing::ProtocolVersion* /*version*/) +{ +} + +void MessageMessage::sendGetOk(qpid::framing::OutputHandler* /*out*/, + int /*channel*/, + u_int32_t /*messageCount*/, + u_int64_t /*deliveryTag*/, + u_int32_t /*framesize*/, + qpid::framing::ProtocolVersion* /*version*/) +{ +} + +bool MessageMessage::isComplete() +{ + return true; +} + +u_int64_t MessageMessage::contentSize() const +{ + return 0; +} + +qpid::framing::BasicHeaderProperties* MessageMessage::getHeaderProperties() +{ + return 0; +} +bool MessageMessage::isPersistent() +{ + return false; +} + +const ConnectionToken* const MessageMessage::getPublisher() +{ + return 0; +} + +u_int32_t MessageMessage::encodedSize() +{ + return 0; +} + +u_int32_t MessageMessage::encodedHeaderSize() +{ + return 0; +} + +u_int32_t MessageMessage::encodedContentSize() +{ + return 0; +} + +u_int64_t MessageMessage::expectedContentSize() +{ + return 0; +} + |