Interface ChunkedToXContentObject

All Superinterfaces:
ChunkedToXContent
All Known Implementing Classes:
AbstractAllocationDecision, AllocateUnassignedDecision, BulkResponse, ChunkedBroadcastResponse, ClusterAllocationExplainResponse, ClusterAllocationExplanation, ClusterFeatures, ClusterRerouteResponse, DesiredBalanceResponse, DesiredBalanceResponse.DesiredShards, FieldCapabilitiesResponse, FieldUsageStatsResponse, GetIndexResponse, GetMappingsResponse, GetSettingsResponse, GetSnapshotsResponse, HealthIndicatorResult, IndicesSegmentResponse, IndicesShardStoresResponse, IndicesStatsResponse, MoveDecision, MultiSearchResponse, PendingClusterTasksResponse, RecoveryResponse, SearchResponse, ShardAllocationDecision, ShutdownShardMigrationStatus, SnapshotsStatusResponse, SnapshotStatus

public interface ChunkedToXContentObject extends ChunkedToXContent
Chunked equivalent of ToXContentObject that serializes as a full object.
  • Method Details

    • isFragment

      default boolean isFragment()
      Specified by:
      isFragment in interface ChunkedToXContent
      Returns:
      true iff this instance serializes as a fragment. See ToXContentObject for additional details.
    • wrapAsToXContentObject

      static ToXContentObject wrapAsToXContentObject(ChunkedToXContentObject chunkedToXContent)
      Wraps the given instance in a ToXContentObject that will fully serialize the instance when serialized.
      Parameters:
      chunkedToXContent - instance to wrap
      Returns:
      x-content instance