Clean the class names
Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
parent
b416aa9c35
commit
be956f60a9
|
@ -31,8 +31,8 @@ import io.cloudevents.v03.ContextAttributes;
|
||||||
* @author fabiojose
|
* @author fabiojose
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class HTTPAttributeMapper {
|
public class AttributeMapper {
|
||||||
private HTTPAttributeMapper() {}
|
private AttributeMapper() {}
|
||||||
|
|
||||||
static final String HEADER_PREFIX = "ce-";
|
static final String HEADER_PREFIX = "ce-";
|
||||||
|
|
|
@ -30,12 +30,12 @@ import io.cloudevents.v03.ContextAttributes;
|
||||||
* @author fabiojose
|
* @author fabiojose
|
||||||
* @version 0.2
|
* @version 0.2
|
||||||
*/
|
*/
|
||||||
public class HTTPExtensionMapper {
|
public class ExtensionMapper {
|
||||||
private HTTPExtensionMapper() {}
|
private ExtensionMapper() {}
|
||||||
|
|
||||||
private static final List<String> RESERVED_HEADERS =
|
private static final List<String> RESERVED_HEADERS =
|
||||||
ContextAttributes.VALUES.stream()
|
ContextAttributes.VALUES.stream()
|
||||||
.map(attribute -> HTTPAttributeMapper
|
.map(attribute -> AttributeMapper
|
||||||
.HEADER_PREFIX + attribute)
|
.HEADER_PREFIX + attribute)
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
static {
|
static {
|
|
@ -15,7 +15,7 @@
|
||||||
*/
|
*/
|
||||||
package io.cloudevents.v03.http;
|
package io.cloudevents.v03.http;
|
||||||
|
|
||||||
import static io.cloudevents.v03.http.HTTPAttributeMapper.HEADER_PREFIX;
|
import static io.cloudevents.v03.http.AttributeMapper.HEADER_PREFIX;
|
||||||
|
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
@ -31,8 +31,8 @@ import io.cloudevents.v03.ContextAttributes;
|
||||||
* @author fabiojose
|
* @author fabiojose
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class HTTPHeaderMapper {
|
public class HeaderMapper {
|
||||||
private HTTPHeaderMapper() {}
|
private HeaderMapper() {}
|
||||||
|
|
||||||
public static Map<String, Object> map(Map<String, String> attributes,
|
public static Map<String, Object> map(Map<String, String> attributes,
|
||||||
Map<String, String> extensions) {
|
Map<String, String> extensions) {
|
Loading…
Reference in New Issue