Class SerializedEntity

java.lang.Object
org.apache.juneau.http.classic.entity.BasicHttpEntity<SerializedEntity>
org.apache.juneau.http.classic.entity.SerializedEntity
All Implemented Interfaces:
HttpEntity
Direct Known Subclasses:
SerializedEntity.Unmodifiable

HttpEntity for serializing POJOs as the body of HTTP requests.
See Also:
  • Constructor Details

    • SerializedEntity

      Constructor.
    • SerializedEntity

      public SerializedEntity(ContentType contentType, Object content, Serializer serializer, HttpPartSchema schema)
      Constructor.
      Parameters:
      contentType - The entity content type. Can be null, in which case the Content-Type header falls back to the serializer's primary media type (if a serializer is set) or is omitted.
      content - The entity content. Can be null, in which case it's converted to an empty string if no serializer is set, or passed through to the serializer as-is otherwise.
      serializer - The entity serializer. Can be null, in which case the content is written via its toString() value (or an empty string if the content is also null) instead of being serialized.
      schema - The entity schema. Can be null (no schema is applied to the serializer).
    • SerializedEntity

      Copy constructor.
      Parameters:
      copyFrom - The bean being copied. Must not be null.
  • Method Details