Class BundleAddressCorrection

java.lang.Object
com.djrapitops.plan.delivery.rendering.BundleAddressCorrection

@Singleton public class BundleAddressCorrection extends Object
In charge of correcting the root address in the javascript bundle.

The javascript bundle assumes everything is hosted at /, but hosting settings affect the address and it could be hosted at a subdirectory like /plan/

  • Constructor Details

    • BundleAddressCorrection

      @Inject public BundleAddressCorrection(PlanConfig config, Addresses addresses)
  • Method Details

    • correctAddressForWebserver

      public String correctAddressForWebserver(String content, String fileName)
    • correctAddressForExport

      public String correctAddressForExport(String content, String fileName)