Package Private.
@return the link which opened this application session if opened by a link click.
549686
String getSessionReferredLink() {
        String link = prefHelper_.getExternalIntentUri();
        return (link.equals(PrefHelper.NO_STRING_VALUE) ? null : link);
    }
679819
public final boolean unlink()
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "unlink", _positionString());

        if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(this, tc, "cursor count = " + _cursorCount);

        boolean unlinked = false;
        LinkedList parent = _parent;
        if (null != parent)
        {
            synchronized(parent)
            {
                if (LinkState.LINKED == _state)
                {
                    _state = LinkState.LOGICALLY_UNLINKED;
                    _tryUnlink();
                    unlinked = true;
                }
                else
                {
                    if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(this, tc, "unlink while " + _state);
                }
            }
        }

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "unlink", new Object[] { Boolean.valueOf(unlinked), _positionString()});
        return unlinked;
    }
1057819
@Override
    public StringBuffer getRequestURL() {
        // strip off any session id from the url here
        String rc = SessionInfo.stripURL(this.request.getURL(),
                                         this.sessionData);
        if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
            Tr.debug(tc, "getRequestURL: " + rc);
        }
        return new StringBuffer(rc);
    }
557707
public I withOpenStart() {

        if (this.start.isOpen()) {
            return this.getContext();
        } else {
            Boundary<T> b = Boundary.of(IntervalEdge.OPEN, this.start.getTemporal());
            return this.getFactory().between(b, this.end);
        }

    }
1158664
public final synchronized Link getNextLink(Link link)
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getNextLink", link);

        Link nextLink = null;

        if (link == null)
        {
            nextLink = _dummyHead.getNextPhysicalLink();
        }
        else
        {
            // Defect 493652/PK59872
            // If the link provided is PhysicallyUnlinked then it is 
            // likely that another thread has removed it while our 
            // thread was inspecting it. In order to avoid stopping
            // in the middle of a find/removeFirstMatching search we
            // need to start from the beginning of the list again.
            if (link.isPhysicallyUnlinked())
            {
                nextLink = _dummyHead.getNextPhysicalLink();

                if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(this, tc, "Current link is PhysicallyUnlinked so returning to beginning of list.");
            }
            else
            {
                nextLink = link.getNextPhysicalLink();
            }
        }

        while (nextLink != null && nextLink.isLogicallyUnlinked())
        {
            nextLink = nextLink.getNextPhysicalLink();
        }

        if (nextLink == _dummyTail)
        {
            nextLink = null;
        }

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "getNextLink", nextLink);
        return nextLink;
    }
1013423
public long getSessionId() {
        long sessionId = 0;
        try {
            ZooKeeper zk = zooKeeper.getZooKeeper();
            if (zk != null) {
                sessionId = zk.getSessionId();
            }
        } catch (Exception e) {
            // Ignore the exception
        }
        return sessionId;
    }
147383
@Override
	public void open() {
		String url = getUrl();
		if (url == null) {
			throw new IllegalPageObjectConfigurationException(String.format("%s.getUrl() must not return null.", this.getClass().getName()));
		}
		webDriver.get(url);
	}
57955
public final MobicentsSipSession getSipSession() {
		if(logger.isDebugEnabled()) {
			logger.debug("getSipSession");
		}

		if(sipSession == null && sessionKey == null) {
			sessionKey = getSipSessionKey();
			if(logger.isDebugEnabled()) {
				logger.debug("sessionKey is " + sessionKey);
			}
			if(sessionKey == null) {
				if(sipSession == null) {
					if(transactionApplicationData != null) {
						this.sessionKey =  transactionApplicationData.getSipSessionKey();
						if(logger.isDebugEnabled()) {
							logger.debug("session Key is " + sessionKey + ", retrieved from the txAppData " + transactionApplicationData);
						}
					} else if (transaction != null && transaction.getApplicationData() != null) {
						this.sessionKey =  ((TransactionApplicationData)transaction.getApplicationData()).getSipSessionKey();
						if(logger.isDebugEnabled()) {
							logger.debug("session Key is " + sessionKey + ", retrieved from the transaction txAppData " +
									(TransactionApplicationData)transaction.getApplicationData());
						}
					} else {
						if(logger.isDebugEnabled()) {
							logger.debug("txAppData and transaction txAppData are both null, there is no wya to retrieve the sessionKey anymore");
						}
					}
				} else {
					this.sessionKey = sipSession.getKey();
				}
			}
			if(logger.isDebugEnabled()) {
				logger.debug("sessionKey is " + sessionKey);
			}
		}
		if(sipSession == null && sessionKey != null) {
			if(logger.isDebugEnabled()) {
				logger.debug("session is null, trying to load the session from the sessionKey " + sessionKey);
			}
			final String applicationName = sessionKey.getApplicationName();
			final SipContext sipContext = sipFactoryImpl.getSipApplicationDispatcher().findSipApplication(applicationName);
			SipApplicationSessionKey sipApplicationSessionKey = new SipApplicationSessionKey(sessionKey.getApplicationSessionId(), sessionKey.getApplicationName(), null);
			MobicentsSipApplicationSession sipApplicationSession = sipContext.getSipManager().getSipApplicationSession(sipApplicationSessionKey, false);
			sipSession = sipContext.getSipManager().getSipSession(sessionKey, false, sipFactoryImpl, sipApplicationSession);
			if(logger.isDebugEnabled()) {
				if(sipSession == null) {
					logger.debug("couldn't find any session with sessionKey " + sessionKey);
				} else {
					logger.debug("reloaded session session " + sipSession + " with sessionKey " + sessionKey);
				}
			}
		}
		return sipSession;
	}
647470
String prevLink() {
    if (currentOffset == 0 || currentLimit == 0) {
      return null;
    }

    return urlWithUpdatedPagination(Math.max(0, currentOffset - currentLimit), currentLimit);
  }
882882
protected final SessionState getSessionState() {
        if (sessionTracker != null) {
            Session currentSession = sessionTracker.getSession();
            return (currentSession != null) ? currentSession.getState() : null;
        }
        return null;
    }
938695
@Override
    protected Content getNavLinkPrevious() {
        if (prev == null) {
            return getNavLinkPrevious(null);
        } else {
            DocPath path = DocPath.relativePath(packageElement, prev);
            return getNavLinkPrevious(path.resolve(DocPaths.PACKAGE_TREE));
        }
    }
1120653
public String getCurrentUrl() {
    Activity activity = serverInstrumentation.getCurrentActivity();
    if (activity == null) {
      return null;
    }
    return "and-activity://" + activity.getLocalClassName();
  }
342617
public long getBrowseID()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
      SibTr.entry(tc, "getBrowseID");
      
    long browseID = aoBrowserSession.getKey().getBrowseId();
    
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
      SibTr.exit(tc, "getBrowseID", new Long(browseID));
    return browseID;
  }
641794
public SipApplicationSession getApplicationSession() {
		MobicentsSipApplicationSession sipApplicationSession = getSipApplicationSession();
		if(sipApplicationSession == null) {
			return null;
		} else {
			return sipApplicationSession.getFacade();
		}
	}
614808
public String getLink()
    {
        String strType = this.getField(ClassInfo.CLASS_TYPE).getString();
        String strLink = this.getField(ClassInfo.CLASS_NAME).getString();
        if (this.getField(ClassInfo.CLASS_PACKAGE).getLength() > 0)
            strLink = DBConstants.ROOT_PACKAGE + this.getField(ClassInfo.CLASS_PACKAGE).toString() + "." + strLink;
        if (strType.equalsIgnoreCase("screen"))
            strLink = HtmlConstants.SERVLET_LINK + "?screen=" + strLink;
        else if (strType.equalsIgnoreCase("record"))
            strLink = HtmlConstants.SERVLET_LINK + "?record=" + strLink;
        return strLink;
    }
205609
protected final String getAccessToken() {
        if (sessionTracker != null) {
            Session currentSession = sessionTracker.getOpenSession();
            return (currentSession != null) ? currentSession.getAccessToken() : null;
        }
        return null;
    }
402879
public String getUrl() {
        if (url == null) {
            RequestHandle request = getRequest();
            url = LinkUtil.getUrl(request, getPath(), request.getSelectors(), null);
        }
        return url;
    }