001/*
002 *  jDTAUS Core RI Servlet Container
003 *  Copyright (C) 2005 Christian Schulte
004 *  <cs@schulte.it>
005 *
006 *  This library is free software; you can redistribute it and/or
007 *  modify it under the terms of the GNU Lesser General Public
008 *  License as published by the Free Software Foundation; either
009 *  version 2.1 of the License, or any later version.
010 *
011 *  This library is distributed in the hope that it will be useful,
012 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
013 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
014 *  Lesser General Public License for more details.
015 *
016 *  You should have received a copy of the GNU Lesser General Public
017 *  License along with this library; if not, write to the Free Software
018 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
019 *
020 */
021package org.jdtaus.core.container.ri.servlet;
022
023import java.util.Locale;
024
025/**
026 * {@code java.util.Locale} implementation.
027 * <p>This class overwrites the automatically discovered default
028 * {@code java.util.Locale} implementation and is used to provide the locale of
029 * the current servlet request in service.</p>
030 *
031 * @author <a href="mailto:cs@schulte.it">Christian Schulte</a>
032 * @version $JDTAUS: ServletRequestLocale.java 8641 2012-09-27 06:45:17Z schulte $
033 */
034public class ServletRequestLocale
035{
036    //--Constructors------------------------------------------------------------
037
038// <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:jdtausConstructors
039    // This section is managed by jdtaus-container-mojo.
040
041    /** Standard implementation constructor <code>org.jdtaus.core.container.ri.servlet.ServletRequestLocale</code>. */
042    public ServletRequestLocale()
043    {
044        super();
045    }
046
047// </editor-fold>//GEN-END:jdtausConstructors
048
049    //------------------------------------------------------------Constructors--
050    //--ServletRequestLocale----------------------------------------------------
051
052    /**
053     * Gets the current thread's locale from the servlet filter.
054     *
055     * @return The current thread's locale from the servlet filter.
056     *
057     * @see ServletFilter#getLocale()
058     */
059    public Locale java_util_Locale()
060    {
061        return ServletFilter.getLocale();
062    }
063
064    //----------------------------------------------------ServletRequestLocale--
065}