Class SessionImpl
java.lang.Object
org.eblocker.server.common.session.SessionImpl
- All Implemented Interfaces:
Session
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSessionImpl(String sessionId, String userAgent, IpAddress ip, String deviceId, Integer userId, UserAgentInfo userAgentInfo) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddForwardDecision(String url, Decision decision) createPageContext(PageContext parentContext, String url) getAppId()intintgetIp()getPageContext(String url) voidincrementBlockedAds(TransactionContext transaction) voidincrementBlockedTrackings(TransactionContext transaction) booleanbooleanbooleanbooleanbooleanbooleanAll the fields that represent an error, or warning state should be combined here to show a warning icon on the eBlocker iconbooleanvoidmarkUsed()popForwardDecision(String url) voidvoidsetBlockAds(boolean blockAds) voidsetBlockTrackings(boolean blockTrackings) voidsetCustomUserAgent(String userAgent) voidsetOutgoingUserAgent(String outgoingUserAgent) voidsetPatternFiltersEnabled(boolean patternFiltersEnabled) voidsetTorIsWorking(boolean working) voidsetUseDomainWhiteList(boolean useDomainWhiteList) voidsetWhatIfMode(boolean whatIfMode)
-
Constructor Details
-
SessionImpl
-
-
Method Details
-
getSessionId
- Specified by:
getSessionIdin interfaceSession
-
getShortId
- Specified by:
getShortIdin interfaceSession
-
getLastUsed
-
markUsed
public void markUsed() -
getUserAgent
- Specified by:
getUserAgentin interfaceSession
-
getIp
-
getUserId
-
getDeviceId
- Specified by:
getDeviceIdin interfaceSession
-
getAppId
-
setAppId
-
getOutgoingUserAgent
- Specified by:
getOutgoingUserAgentin interfaceSession
-
setOutgoingUserAgent
- Specified by:
setOutgoingUserAgentin interfaceSession
-
popForwardDecision
- Specified by:
popForwardDecisionin interfaceSession
-
addForwardDecision
- Specified by:
addForwardDecisionin interfaceSession
-
createPageContext
- Specified by:
createPageContextin interfaceSession
-
getPageContext
- Specified by:
getPageContextin interfaceSession
-
isBlockAds
public boolean isBlockAds()- Specified by:
isBlockAdsin interfaceSession
-
setBlockAds
public void setBlockAds(boolean blockAds) - Specified by:
setBlockAdsin interfaceSession
-
getBlockedAds
public int getBlockedAds()- Specified by:
getBlockedAdsin interfaceSession
-
incrementBlockedAds
- Specified by:
incrementBlockedAdsin interfaceSession
-
isBlockTrackings
public boolean isBlockTrackings()- Specified by:
isBlockTrackingsin interfaceSession
-
setBlockTrackings
public void setBlockTrackings(boolean blockTrackings) - Specified by:
setBlockTrackingsin interfaceSession
-
getBlockedTrackings
public int getBlockedTrackings()- Specified by:
getBlockedTrackingsin interfaceSession
-
incrementBlockedTrackings
- Specified by:
incrementBlockedTrackingsin interfaceSession
-
isUseDomainWhiteList
public boolean isUseDomainWhiteList()- Specified by:
isUseDomainWhiteListin interfaceSession
-
setUseDomainWhiteList
public void setUseDomainWhiteList(boolean useDomainWhiteList) - Specified by:
setUseDomainWhiteListin interfaceSession
-
setTorIsWorking
public void setTorIsWorking(boolean working) - Specified by:
setTorIsWorkingin interfaceSession
-
isTorWorking
public boolean isTorWorking()- Specified by:
isTorWorkingin interfaceSession
-
isWarningState
public boolean isWarningState()Description copied from interface:SessionAll the fields that represent an error, or warning state should be combined here to show a warning icon on the eBlocker icon- Specified by:
isWarningStatein interfaceSession- Returns:
-
isWhatIfMode
public boolean isWhatIfMode()- Specified by:
isWhatIfModein interfaceSession
-
setWhatIfMode
public void setWhatIfMode(boolean whatIfMode) - Specified by:
setWhatIfModein interfaceSession
-
getUserAgentInfo
- Specified by:
getUserAgentInfoin interfaceSession
-
getCustomUserAgent
- Specified by:
getCustomUserAgentin interfaceSession
-
setCustomUserAgent
- Specified by:
setCustomUserAgentin interfaceSession
-
isPatternFiltersEnabled
public boolean isPatternFiltersEnabled()- Specified by:
isPatternFiltersEnabledin interfaceSession
-
setPatternFiltersEnabled
public void setPatternFiltersEnabled(boolean patternFiltersEnabled) - Specified by:
setPatternFiltersEnabledin interfaceSession
-