Interface RestEntity

All Known Subinterfaces:
RestResponse
All Known Implementing Classes:
ByteArrayRestEntityOkHttp, FileRestEntityOkHttp, InputStreamEntityOkHttp, RestResponseOkHttp, StringRestEntityOkHttp

public interface RestEntity
Since:
10.0
Author:
Tristan Tarrant <tristan@infinispan.org>
  • Method Summary

    Modifier and Type
    Method
    Description
    org.infinispan.commons.dataconversion.MediaType
     
    static RestEntity
    create(File file)
     
    static RestEntity
    create(org.infinispan.commons.dataconversion.MediaType contentType, byte[] body)
     
    static RestEntity
    create(org.infinispan.commons.dataconversion.MediaType contentType, File file)
     
    static RestEntity
    create(org.infinispan.commons.dataconversion.MediaType contentType, InputStream inputStream)
     
    static RestEntity
    create(org.infinispan.commons.dataconversion.MediaType contentType, String body)
     
     
  • Method Details

    • getBody

      String getBody()
    • contentType

      org.infinispan.commons.dataconversion.MediaType contentType()
    • create

      static RestEntity create(org.infinispan.commons.dataconversion.MediaType contentType, String body)
    • create

      static RestEntity create(org.infinispan.commons.dataconversion.MediaType contentType, byte[] body)
    • create

      static RestEntity create(org.infinispan.commons.dataconversion.MediaType contentType, File file)
    • create

      static RestEntity create(org.infinispan.commons.dataconversion.MediaType contentType, InputStream inputStream)
    • create

      static RestEntity create(File file)