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
|
||||
*
|
||||
*/
|
||||
public class HTTPAttributeMapper {
|
||||
private HTTPAttributeMapper() {}
|
||||
public class AttributeMapper {
|
||||
private AttributeMapper() {}
|
||||
|
||||
static final String HEADER_PREFIX = "ce-";
|
||||
|
|
@ -30,12 +30,12 @@ import io.cloudevents.v03.ContextAttributes;
|
|||
* @author fabiojose
|
||||
* @version 0.2
|
||||
*/
|
||||
public class HTTPExtensionMapper {
|
||||
private HTTPExtensionMapper() {}
|
||||
public class ExtensionMapper {
|
||||
private ExtensionMapper() {}
|
||||
|
||||
private static final List<String> RESERVED_HEADERS =
|
||||
ContextAttributes.VALUES.stream()
|
||||
.map(attribute -> HTTPAttributeMapper
|
||||
.map(attribute -> AttributeMapper
|
||||
.HEADER_PREFIX + attribute)
|
||||
.collect(Collectors.toList());
|
||||
static {
|
|
@ -15,7 +15,7 @@
|
|||
*/
|
||||
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.Map;
|
||||
|
@ -31,8 +31,8 @@ import io.cloudevents.v03.ContextAttributes;
|
|||
* @author fabiojose
|
||||
*
|
||||
*/
|
||||
public class HTTPHeaderMapper {
|
||||
private HTTPHeaderMapper() {}
|
||||
public class HeaderMapper {
|
||||
private HeaderMapper() {}
|
||||
|
||||
public static Map<String, Object> map(Map<String, String> attributes,
|
||||
Map<String, String> extensions) {
|
Loading…
Reference in New Issue