Debian Codegraph @

proton-j/src/main/java/org/apache/qpid/proton/amqp/messaging/Properties.java

raw
1
2 /*
3 *
4 * Licensed to the Apache Software Foundation (ASF) under one
5 * or more contributor license agreements. See the NOTICE file
6 * distributed with this work for additional information
7 * regarding copyright ownership. The ASF licenses this file
8 * to you under the Apache License, Version 2.0 (the
9 * "License"); you may not use this file except in compliance
10 * with the License. You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing,
15 * software distributed under the License is distributed on an
16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 * KIND, either express or implied. See the License for the
18 * specific language governing permissions and limitations
19 * under the License.
20 *
21 */
22
23
24 package org.apache.qpid.proton.amqp.messaging;
25
26 import java.util.Date;
27
28 import org.apache.qpid.proton.amqp.Binary;
29 import org.apache.qpid.proton.amqp.Symbol;
30 import org.apache.qpid.proton.amqp.UnsignedInteger;
31
32 public final class Properties implements Section
33 {
34 private Object _messageId;
35 private Binary _userId;
36 private String _to;
37 private String _subject;
38 private String _replyTo;
39 private Object _correlationId;
40 private Symbol _contentType;
41 private Symbol _contentEncoding;
42 private Date _absoluteExpiryTime;
43 private Date _creationTime;
44 private String _groupId;
45 private UnsignedInteger _groupSequence;
46 private String _replyToGroupId;
47
48 public Properties()
49 {
50 }
51
52 public Properties(Properties other)
53 {
54 this._messageId = other._messageId;
55 this._userId = other._userId;
56 this._to = other._to;
57 this._subject = other._subject;
58 this._replyTo = other._replyTo;
59 this._correlationId = other._correlationId;
60 this._contentType = other._contentType;
61 this._contentEncoding = other._contentEncoding;
62 this._absoluteExpiryTime = other._absoluteExpiryTime;
63 this._creationTime = other._creationTime;
64 this._groupId = other._groupId;
65 this._groupSequence = other._groupSequence;
66 this._replyToGroupId = other._replyToGroupId;
67 }
68
69 public Object getMessageId()
70 {
71 return _messageId;
72 }
73
74 public void setMessageId(Object messageId)
75 {
76 _messageId = messageId;
77 }
78
79 public Binary getUserId()
80 {
81 return _userId;
82 }
83
84 public void setUserId(Binary userId)
85 {
86 _userId = userId;
87 }
88
89 public String getTo()
90 {
91 return _to;
92 }
93
94 public void setTo(String to)
95 {
96 _to = to;
97 }
98
99 public String getSubject()
100 {
101 return _subject;
102 }
103
104 public void setSubject(String subject)
105 {
106 _subject = subject;
107 }
108
109 public String getReplyTo()
110 {
111 return _replyTo;
112 }
113
114 public void setReplyTo(String replyTo)
115 {
116 _replyTo = replyTo;
117 }
118
119 public Object getCorrelationId()
120 {
121 return _correlationId;
122 }
123
124 public void setCorrelationId(Object correlationId)
125 {
126 _correlationId = correlationId;
127 }
128
129 public Symbol getContentType()
130 {
131 return _contentType;
132 }
133
134 public void setContentType(Symbol contentType)
135 {
136 _contentType = contentType;
137 }
138
139 public Symbol getContentEncoding()
140 {
141 return _contentEncoding;
142 }
143
144 public void setContentEncoding(Symbol contentEncoding)
145 {
146 _contentEncoding = contentEncoding;
147 }
148
149 public Date getAbsoluteExpiryTime()
150 {
151 return _absoluteExpiryTime;
152 }
153
154 public void setAbsoluteExpiryTime(Date absoluteExpiryTime)
155 {
156 _absoluteExpiryTime = absoluteExpiryTime;
157 }
158
159 public Date getCreationTime()
160 {
161 return _creationTime;
162 }
163
164 public void setCreationTime(Date creationTime)
165 {
166 _creationTime = creationTime;
167 }
168
169 public String getGroupId()
170 {
171 return _groupId;
172 }
173
174 public void setGroupId(String groupId)
175 {
176 _groupId = groupId;
177 }
178
179 public UnsignedInteger getGroupSequence()
180 {
181 return _groupSequence;
182 }
183
184 public void setGroupSequence(UnsignedInteger groupSequence)
185 {
186 _groupSequence = groupSequence;
187 }
188
189 public String getReplyToGroupId()
190 {
191 return _replyToGroupId;
192 }
193
194 public void setReplyToGroupId(String replyToGroupId)
195 {
196 _replyToGroupId = replyToGroupId;
197 }
198
199 @Override
200 public String toString()
201 {
202 return "Properties{" +
203 "messageId=" + _messageId +
204 ", userId=" + _userId +
205 ", to='" + _to + '\'' +
206 ", subject='" + _subject + '\'' +
207 ", replyTo='" + _replyTo + '\'' +
208 ", correlationId=" + _correlationId +
209 ", contentType=" + _contentType +
210 ", contentEncoding=" + _contentEncoding +
211 ", absoluteExpiryTime=" + _absoluteExpiryTime +
212 ", creationTime=" + _creationTime +
213 ", groupId='" + _groupId + '\'' +
214 ", groupSequence=" + _groupSequence +
215 ", replyToGroupId='" + _replyToGroupId + '\'' +
216 '}';
217 }
218
219 @Override
220 public SectionType getType() {
221 return SectionType.Properties;
222 }
223 }