org.opencms.i18n
Class CmsDefaultLocaleHandler

java.lang.Object
  extended by org.opencms.i18n.CmsDefaultLocaleHandler
All Implemented Interfaces:
I_CmsLocaleHandler

public class CmsDefaultLocaleHandler
extends java.lang.Object
implements I_CmsLocaleHandler

Default implementation of the locale handler.

Since:
6.0.0
Version:
$Revision: 1.28 $
Author:
Carsten Weinholz, Alexander Kandzior

Constructor Summary
CmsDefaultLocaleHandler()
          Constructor, no action is required.
 
Method Summary
 CmsI18nInfo getI18nInfo(javax.servlet.http.HttpServletRequest req, CmsUser user, CmsProject project, java.lang.String resourceName)
          Returns the i18n information to use in the request context.
 void initHandler(CmsObject cms)
          Will be called during system startup.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsDefaultLocaleHandler

public CmsDefaultLocaleHandler()
Constructor, no action is required.

Method Detail

getI18nInfo

public CmsI18nInfo getI18nInfo(javax.servlet.http.HttpServletRequest req,
                               CmsUser user,
                               CmsProject project,
                               java.lang.String resourceName)
Description copied from interface: I_CmsLocaleHandler
Returns the i18n information to use in the request context.

Specified by:
getI18nInfo in interface I_CmsLocaleHandler
Parameters:
req - the current http request
user - the current user
project - the current project
resourceName - the URI of the requested resource (with full site root added)
Returns:
the i18n information to use for the given request context
See Also:
I_CmsLocaleHandler.getI18nInfo(javax.servlet.http.HttpServletRequest, org.opencms.file.CmsUser, org.opencms.file.CmsProject, java.lang.String)

initHandler

public void initHandler(CmsObject cms)
Description copied from interface: I_CmsLocaleHandler
Will be called during system startup.

Specified by:
initHandler in interface I_CmsLocaleHandler
Parameters:
cms - an initialized cms permission context for VFS access
See Also:
I_CmsLocaleHandler.initHandler(org.opencms.file.CmsObject)