Class CaptivePortalCheckProcessor

java.lang.Object
org.eblocker.server.icap.transaction.processor.CaptivePortalCheckProcessor
All Implemented Interfaces:
TransactionProcessor

public class CaptivePortalCheckProcessor extends Object implements TransactionProcessor
Responds to captive portal check URLs if the feature "GoogleCaptivePortalRedirector" is enabled. If the feature is not enabled and the transaction is a response, stop further processing, so the eBlocker icon is not injected into the HTML. This avoids triggering the client's captive portal check service (e.g. on iOS 18.4 and later).
  • Constructor Details

    • CaptivePortalCheckProcessor

      @Inject public CaptivePortalCheckProcessor(FeatureServiceSubscriber featureService, boolean simulateCaptivePortal)
  • Method Details

    • process

      public boolean process(Transaction transaction)
      Description copied from interface: TransactionProcessor
      Returns false, if processing should be interrupted here.

      All other results have to be stored in the transaction object.

      Specified by:
      process in interface TransactionProcessor
      Returns: