Class RestEntity<T>

java.lang.Object
com.atlassian.confluence.rest.v2.api.model.RestObject
com.atlassian.confluence.rest.v2.api.model.RestEntity<T>
Type Parameters:
T -

@ExperimentalApi public class RestEntity<T> extends RestObject
This entity participates in our object serialization by jackson, and allows objects to be enriched with extra properties during serialization. It wraps a model object, but also exposes all JsonProperty annotated fields in the map as jsonProperties. This map of properties is added to by the property enrichers, and is ultimately used by the RestEntitySerializer to convert the object to json
Since:
9.0
  • Constructor Details

    • RestEntity

      public RestEntity(T delegate)
  • Method Details

    • getDelegate

      public T getDelegate()
    • toString

      public String toString()
      Overrides:
      toString in class Object