Package com.intellectualsites.http
Interface EntityMapper.EntitySerializer<T>
- Type Parameters:
T- Object type
- Enclosing class:
- EntityMapper
public static interface EntityMapper.EntitySerializer<T>
Serializer for HTTP request bodies
-
Method Summary
Modifier and TypeMethodDescriptionGet the content type of the object@org.jetbrains.annotations.NotNull byte[]Serialize the input into a byte array, which can then be written to the HTTP request
-
Method Details
-
serialize
Serialize the input into a byte array, which can then be written to the HTTP request- Parameters:
input- Input that should be serialized- Returns:
- The serialized object
-
getContentType
ContentType getContentType()Get the content type of the object- Returns:
- Content Type
-