/** * Sets the requested uri.<p> * * @param requestedUri the requested uri to set * * @see CmsRequestContext#setUri(String) */ public void setRequestedUri(String requestedUri) { checkFrozen(); m_requestedUri = requestedUri; }
/** * Sets the siteroot.<p> * * @param siteRoot the siteroot to set * * @see CmsRequestContext#setSiteRoot(String) */ public void setSiteRoot(String siteRoot) { checkFrozen(); m_siteRoot = siteRoot; }
/** * Sets the remote ip address.<p> * * @param remoteAddr the remote ip address * * @see CmsRequestContext#getRemoteAddress() */ public void setRemoteAddr(String remoteAddr) { checkFrozen(); m_remoteAddr = remoteAddr; }
/** * Sets the project name.<p> * * @param projectName the project name to set * * @see CmsRequestContext#currentProject() */ public void setProjectName(String projectName) { checkFrozen(); m_projectName = projectName; }
/** * Sets the fully qualified name of the organizational unit.<p> * * @param ouFqn the fully qualified name of the organizational unit to set */ public void setOuFqn(String ouFqn) { checkFrozen(); m_ouFqn = ouFqn; }
/** * Sets the project name.<p> * * @param projectName the project name to set * * @see CmsRequestContext#getCurrentProject() */ public void setProjectName(String projectName) { checkFrozen(); m_projectName = projectName; }
/** * Sets the remote ip address.<p> * * @param remoteAddr the remote ip address * * @see CmsRequestContext#getRemoteAddress() */ public void setRemoteAddr(String remoteAddr) { checkFrozen(); m_remoteAddr = remoteAddr; }
/** * Sets the fully qualified name of the organizational unit.<p> * * @param ouFqn the fully qualified name of the organizational unit to set */ public void setOuFqn(String ouFqn) { checkFrozen(); m_ouFqn = ouFqn; }
/** * Sets the siteroot.<p> * * @param siteRoot the siteroot to set * * @see CmsRequestContext#setSiteRoot(String) */ public void setSiteRoot(String siteRoot) { checkFrozen(); m_siteRoot = siteRoot; }
/** * Sets the requested uri.<p> * * @param requestedUri the requested uri to set * * @see CmsRequestContext#setUri(String) */ public void setRequestedUri(String requestedUri) { checkFrozen(); m_requestedUri = requestedUri; }
/** * Sets the request time used for validation of resource publication and expiration dates.<p> * * @param requestTime the request time to set * * @see CmsRequestContext#getRequestTime() */ public void setRequestTime(long requestTime) { checkFrozen(); if (requestTime == CURRENT_TIME) { m_requestTime = System.currentTimeMillis(); } else { m_requestTime = requestTime; } }
/** * Sets the locale.<p> * * Setting the locale name will override the currently selected locale * and vice-versa. The locale name and the locale will always match.<p> * * @param locale the locale to set * * @see #setLocaleName(String) * @see CmsRequestContext#getLocale() */ public void setLocale(Locale locale) { checkFrozen(); m_locale = locale; m_localeName = m_locale.toString(); }
/** * Sets the request time used for validation of resource publication and expiration dates.<p> * * @param requestTime the request time to set * * @see CmsRequestContext#getRequestTime() */ public void setRequestTime(long requestTime) { checkFrozen(); if (requestTime == CURRENT_TIME) { m_requestTime = System.currentTimeMillis(); } else { m_requestTime = requestTime; } }
/** * Sets the locale.<p> * * Setting the locale name will override the currently selected locale * and vice-versa. The locale name and the locale will always match.<p> * * @param locale the locale to set * * @see #setLocaleName(String) * @see CmsRequestContext#getLocale() */ public void setLocale(Locale locale) { checkFrozen(); m_locale = locale; m_localeName = m_locale.toString(); }
/** * Sets the locale name.<p> * * Setting the locale name will override the currently selected locale * and vice-versa. The locale name and the locale will always match.<p> * * @param localeName the locale name to set * * @see #setLocale(Locale) * @see CmsRequestContext#getLocale() */ public void setLocaleName(String localeName) { checkFrozen(); m_localeName = localeName; m_locale = CmsLocaleManager.getLocale(localeName); }
/** * Sets the locale name.<p> * * Setting the locale name will override the currently selected locale * and vice-versa. The locale name and the locale will always match.<p> * * @param localeName the locale name to set * * @see #setLocale(Locale) * @see CmsRequestContext#getLocale() */ public void setLocaleName(String localeName) { checkFrozen(); m_localeName = localeName; m_locale = CmsLocaleManager.getLocale(localeName); }
/** * Sets the username.<p> * * @param userName the username to set * * @see CmsRequestContext#getCurrentUser() */ public void setUserName(String userName) { checkFrozen(); m_userName = userName; setOuFqn(CmsOrganizationalUnit.getParentFqn(userName)); }
/** * Sets the username.<p> * * @param userName the username to set * * @see CmsRequestContext#currentUser() */ public void setUserName(String userName) { checkFrozen(); m_userName = userName; setOuFqn(CmsOrganizationalUnit.getParentFqn(userName)); }
/** * Sets the encoding.<p> * * @param encoding the encoding to set * * @see CmsRequestContext#setEncoding(String) */ public void setEncoding(String encoding) { checkFrozen(); m_encoding = CmsEncoder.lookupEncoding(encoding, OpenCms.getSystemInfo().getDefaultEncoding()); }
/** * Sets the encoding.<p> * * @param encoding the encoding to set * * @see CmsRequestContext#setEncoding(String) */ public void setEncoding(String encoding) { checkFrozen(); m_encoding = CmsEncoder.lookupEncoding(encoding, OpenCms.getSystemInfo().getDefaultEncoding()); }