Interface WebResourceTranslator


@Deprecated public interface WebResourceTranslator
Deprecated.
since 3.2.0 - will be removed when deprecated WebResourceRegistry are being removed
Interface used by WebResourceRegistryInterceptor to translate WebResources before rendering.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Deprecated.
    Verifies if the WebResource matches for this translator.
    void
    Deprecated.
    Modifies the WebResource.
  • Method Details

    • shouldTranslate

      boolean shouldTranslate(WebResource resource)
      Deprecated.
      Verifies if the WebResource matches for this translator. Calls to shouldTranslate() should never modify the WebResource.
      Parameters:
      resource - WebResource to inspect if it needs to be translated.
      Returns:
      True if the resource should be modified.
    • translate

      void translate(WebResource resource)
      Deprecated.
      Modifies the WebResource.
      Parameters:
      resource - WebResource to inspect and modify.