org.apache.tapestry5.services.assets

## Interface AssetChecksumGenerator

- All Known Implementing Classes:
    AssetChecksumGeneratorImpl

      public interface AssetChecksumGenerator

  Generates a checksum of an arbitrary `Resource` or `StreamableResource` which can be incorporated into the client URL of an Asset.
  Since:
    5.4

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `generateChecksum(Resource resource)` Given a raw resource, generates an MD5 checksum of the resource's contents.
    `String` | `generateChecksum(StreamableResource resource)` Given a streamable resource, generates an MD5 checksum of the resource's contents.

- - ### Method Detail

    - #### generateChecksum

          String generateChecksum(Resource resource)
                           throws IOException

      Given a raw resource, generates an MD5 checksum of the resource's contents.
      Parameters:
        `resource` -
      Returns:
        checksum of contents
      Throws:
        `IOException`

    - #### generateChecksum

          String generateChecksum(StreamableResource resource)
                           throws IOException

      Given a streamable resource, generates an MD5 checksum of the resource's contents.
      Parameters:
        `resource` -
      Returns:
        checksum of contents
      Throws:
        `IOException`

${project.version} - Copyright © 2003-2015 The Apache Software Foundation.