Class Entity<T>

java.lang.Object
com.woorea.openstack.base.client.Entity<T>

public class Entity<T> extends Object
  • Field Details

    • entity

      private T entity
    • contentType

      private String contentType
  • Constructor Details

    • Entity

      public Entity(T entity, String contentType)
  • Method Details

    • json

      public static <T> Entity<T> json(T entity)
    • stream

      public static <T> Entity<T> stream(T entity)
    • getEntity

      public T getEntity()
      Returns:
      the entity
    • setEntity

      public void setEntity(T entity)
      Parameters:
      entity - the entity to set
    • getContentType

      public String getContentType()
      Returns:
      the contentType
    • setContentType

      public void setContentType(String contentType)
      Parameters:
      contentType - the contentType to set