Class ResourceInfo

java.lang.Object
jadex.publishservice.publish.mapper.ResourceInfo

public class ResourceInfo extends Object
  • Field Details

    • path

      protected String path
      The resource file path.
    • data

      protected byte[] data
      The direct data as alternative to the path.
    • mediatype

      protected String mediatype
      The media type.
    • status

      protected Integer status
      The response http state.
    • headers

      protected Map<String,String> headers
      The headers.
  • Constructor Details

    • ResourceInfo

      public ResourceInfo(String path, String mediatype)
      Create a new ResourceInfo.
    • ResourceInfo

      public ResourceInfo(byte[] data, String mediatype)
      Create a new ResourceInfo.
    • ResourceInfo

      public ResourceInfo(String path, String mediatype, Integer status)
      Create a new ResourceInfo.
    • ResourceInfo

      public ResourceInfo(byte[] data, String mediatype, Integer status)
      Create a new ResourceInfo.
  • Method Details

    • getMediatype

      public String getMediatype()
      Get the mediatype. return The mediatype.
    • setMediatype

      public void setMediatype(String mediatype)
      Set the mediatype.
      Parameters:
      mediatype - The mediatype to set.
    • getPath

      public String getPath()
      Get the path. return The path.
    • setPath

      public void setPath(String path)
      Set the path.
      Parameters:
      path - The path to set.
    • getData

      public byte[] getData()
      Get the data. return The data.
    • setData

      public void setData(byte[] data)
      Set the data.
      Parameters:
      data - The data to set.
    • getStatus

      public Integer getStatus()
      Get the state.
      Returns:
      The state.
    • setStatus

      public void setStatus(Integer status)
      Set the state.
      Parameters:
      state - The state to set.
    • getHeaders

      public Map<String,String> getHeaders()
      Get the response headers (if any).
    • setHeaders

      public void setHeaders(Map<String,String> headers)
      Set the response headers.