Class ResourceResponse

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static ResourceResponse skipResource() Constructs a resource response that skips resource loading.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ResourceResponse

        ResourceResponse(InputStream inputStream, String mimeType)
        Constructs a resource response provided by the input stream.
        Parameters:
        inputStream - The input stream with the resource data.
        mimeType - The MIME type of the resource, for example "text/html".
      • ResourceResponse

        ResourceResponse(InputStream inputStream, String mimeType, String charset)
        Constructs a resource response provided by the input stream.
        Parameters:
        inputStream - The input stream with the resource data.
        mimeType - The MIME type of the resource, for example "text/html".
        charset - The character encoding of the resource, for example "utf-8".
      • ResourceResponse

        ResourceResponse(DataProvider dataProvider, String mimeType)
        Constructs a resource response provided by the data provider.
        Parameters:
        dataProvider - The data provider with the resource data.
        mimeType - The MIME type of the resource, for example "text/html".
      • ResourceResponse

        ResourceResponse(DataProvider dataProvider, String mimeType, String charset)
        Constructs a resource response provided by the data provider.
        Parameters:
        dataProvider - The data provider with the resource data.
        mimeType - The MIME type of the resource, for example "text/html".
        charset - The character encoding of the resource, for example "utf-8".