Class PageContext

java.lang.Object
org.eblocker.server.common.page.PageContext

public class PageContext extends Object
  • Constructor Details

  • Method Details

    • reset

      public void reset()
    • getId

      public String getId()
    • getShortId

      public String getShortId()
    • setParentContext

      public void setParentContext(PageContext parentContext)
    • getUrl

      public String getUrl()
    • getIpAddress

      public IpAddress getIpAddress()
    • incrementBlockedAds

      public void incrementBlockedAds(String url)
      Add a new blocked ad url.
      Parameters:
      url - blocked ad url
    • incrementBlockedTrackings

      public void incrementBlockedTrackings(String url)
      Add a new blocked tracking url.
      Parameters:
      url - blocked tracking url
    • getBlockedAds

      public int getBlockedAds()
    • getBlockedAdsSet

      public Set<String> getBlockedAdsSet()
    • getBlockedTrackingsSet

      public Set<String> getBlockedTrackingsSet()
    • getBlockedTrackings

      public int getBlockedTrackings()
    • getWhiteListConfig

      public WhiteListConfig getWhiteListConfig()
    • setWhiteListConfig

      public void setWhiteListConfig(WhiteListConfig whiteListConfig)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object