|
| 1 | +/* |
| 2 | + * Copyright 2018-Present The CloudEvents Authors |
| 3 | + * <p> |
| 4 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | + * you may not use this file except in compliance with the License. |
| 6 | + * You may obtain a copy of the License at |
| 7 | + * <p> |
| 8 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | + * <p> |
| 10 | + * Unless required by applicable law or agreed to in writing, software |
| 11 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | + * See the License for the specific language governing permissions and |
| 14 | + * limitations under the License. |
| 15 | + * |
| 16 | + */ |
1 | 17 | package io.cloudevents.mqtt.core;
|
2 | 18 |
|
3 | 19 | import io.cloudevents.SpecVersion;
|
@@ -25,9 +41,10 @@ public abstract class BaseMqttBinaryMessageReader extends BaseGenericBinaryMessa
|
25 | 41 |
|
26 | 42 | /**
|
27 | 43 | * Initialise the binary message reader.
|
28 |
| - * @param version The CloudEvent message version. |
| 44 | + * |
| 45 | + * @param version The CloudEvent message version. |
29 | 46 | * @param contentType The assigned media content type.
|
30 |
| - * @param payload The raw data payload from the MQTT message. |
| 47 | + * @param payload The raw data payload from the MQTT message. |
31 | 48 | */
|
32 | 49 | protected BaseMqttBinaryMessageReader(final SpecVersion version, final String contentType, final byte[] payload) {
|
33 | 50 | super(version, payload != null && payload.length > 0 ? BytesCloudEventData.wrap(payload) : null);
|
@@ -82,6 +99,7 @@ protected String toCloudEventsValue(Object value) {
|
82 | 99 |
|
83 | 100 | /**
|
84 | 101 | * Visit each MQTT user-property and invoke the supplied function.
|
| 102 | + * |
85 | 103 | * @param fn The function to invoke for each MQTT User property.
|
86 | 104 | */
|
87 | 105 | protected abstract void forEachUserProperty(BiConsumer<String, Object> fn);
|
|
0 commit comments