01 /*
02 *
03 * Licensed to the Apache Software Foundation (ASF) under one
04 * or more contributor license agreements. See the NOTICE file
05 * distributed with this work for additional information
06 * regarding copyright ownership. The ASF licenses this file
07 * to you under the Apache License, Version 2.0 (the
08 * "License"); you may not use this file except in compliance
09 * with the License. You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied. See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 */
21 package org.apache.qpid.framing.abstraction;
22
23 import org.apache.qpid.framing.abstraction.MessagePublishInfo;
24 import org.apache.qpid.framing.AMQShortString;
25
26 public class MessagePublishInfoImpl implements MessagePublishInfo
27 {
28 private AMQShortString _exchange;
29 private boolean _immediate;
30 private boolean _mandatory;
31 private AMQShortString _routingKey;
32
33 public MessagePublishInfoImpl()
34 {
35 }
36
37 public MessagePublishInfoImpl(AMQShortString exchange, boolean immediate, boolean mandatory,
38 AMQShortString routingKey)
39 {
40 _exchange = exchange;
41 _immediate = immediate;
42 _mandatory = mandatory;
43 _routingKey = routingKey;
44 }
45
46 public AMQShortString getExchange()
47 {
48 return _exchange;
49 }
50
51 public void setExchange(AMQShortString exchange)
52 {
53 _exchange = exchange;
54 }
55
56 public boolean isImmediate()
57 {
58 return _immediate;
59 }
60
61 public void setImmediate(boolean immedate)
62 {
63 _immediate = immedate;
64 }
65
66 public boolean isMandatory()
67 {
68 return _mandatory;
69 }
70
71 public void setMandatory(boolean mandatory)
72 {
73 _mandatory = mandatory;
74 }
75
76 public AMQShortString getRoutingKey()
77 {
78 return _routingKey;
79 }
80
81 public void setRoutingKey(AMQShortString routingKey)
82 {
83 _routingKey = routingKey;
84 }
85 }
|