From commits-return-2970-archive-asf-public=cust-asf.ponee.io@turbine.apache.org Tue May 21 03:35:41 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id B409D18076D for ; Tue, 21 May 2019 05:35:40 +0200 (CEST) Received: (qmail 91666 invoked by uid 500); 21 May 2019 03:35:40 -0000 Mailing-List: contact commits-help@turbine.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@turbine.apache.org Delivered-To: mailing list commits@turbine.apache.org Received: (qmail 91641 invoked by uid 99); 21 May 2019 03:35:39 -0000 Received: from Unknown (HELO svn01-us-west.apache.org) (209.188.14.144) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 May 2019 03:35:39 +0000 Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id D34BC3A382B for ; Tue, 21 May 2019 03:35:38 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: svn commit: r1045251 [3/34] - in /websites/production/turbine/content/fulcrum/fulcrum-localization: ./ announcements/ apidocs/ apidocs/org/apache/fulcrum/localization/ apidocs/org/apache/fulcrum/localization/class-use/ apidocs/resources/ apidocs/src-ht... Date: Tue, 21 May 2019 03:35:36 -0000 To: commits@turbine.apache.org From: painter@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20190521033538.D34BC3A382B@svn01-us-west.apache.org> Modified: websites/production/turbine/content/fulcrum/fulcrum-localization/apidocs/org/apache/fulcrum/localization/DefaultLocalizationService.html ============================================================================== --- websites/production/turbine/content/fulcrum/fulcrum-localization/apidocs/org/apache/fulcrum/localization/DefaultLocalizationService.html (original) +++ websites/production/turbine/content/fulcrum/fulcrum-localization/apidocs/org/apache/fulcrum/localization/DefaultLocalizationService.html Tue May 21 03:35:35 2019 @@ -1,121 +1,149 @@ - - - - - - -DefaultLocalizationService (Fulcrum Localization 1.0.7-SNAPSHOT API) - - - - - - - - - - - - - - + + + + + +DefaultLocalizationService (Fulcrum Localization 1.0.7 API) + + + + + + - - - - - - - - - - - - - - - - -
- -
- + + +
+ + +
+ + + - -
-

- -org.apache.fulcrum.localization -
-Class DefaultLocalizationService

-
-java.lang.Object
-  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
-      extended by org.apache.fulcrum.localization.SimpleLocalizationServiceImpl
-          extended by org.apache.fulcrum.localization.DefaultLocalizationService
-
-
-
All Implemented Interfaces:
org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.logger.LogEnabled, LocalizationService, SimpleLocalizationService
-
-
-
-
public class DefaultLocalizationService
extends SimpleLocalizationServiceImpl
implements LocalizationService
- - -

-

This class is the single point of access to all localization +

+
org.apache.fulcrum.localization
+

Class DefaultLocalizationService

+
+
+ +
+
+
+
Version:
+
$Id: DefaultLocalizationService.java 1851909 2019-01-23 13:16:31Z painter $ + avalon.component name="localization" lifestyle="singleton" + avalon.service type="org.apache.fulcrum.localization.LocalizationService"
+
Author:
+
Jonas Maurus, Jon S. Stevens, Frank Y. Kim, Daniel Rall, Leonard Richardson, Stephen McConnell, Thomas Vandahl
+
+ + +
+
+ + + +
+
+
    +
  • - - - - - - -
    -Constructor Detail
    - -

    -DefaultLocalizationService

    -
    -public DefaultLocalizationService()
    -
    -
    Creates a new instance. -

    -

    - + - - - - - - -
    -Method Detail
    - -

    -getBundle

    -
    -public ResourceBundle getBundle(String bundleName,
    -                                String languageHeader)
    -
    -
    This method returns a ResourceBundle given the bundle name and +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getBundle

        +
        public ResourceBundle getBundle(String bundleName,
        +                                String languageHeader)
        +
        This method returns a ResourceBundle given the bundle name and the Locale information supplied in the HTTP "Accept-Language" - header. -

        -

        -
        Specified by:
        getBundle in interface LocalizationService
        -
        -
        -
        Parameters:
        bundleName - Name of bundle.
        languageHeader - A String with the language header. -
        Returns:
        A localized ResourceBundle.
        -
        -
    -
    - -

    -getBundle

    -
    -public ResourceBundle getBundle(javax.servlet.http.HttpServletRequest req)
    -
    -
    This method returns a ResourceBundle given the Locale + header.
+
+
Specified by:
+
getBundle in interface LocalizationService
+
Parameters:
+
bundleName - Name of bundle.
+
languageHeader - A String with the language header.
+
Returns:
+
A localized ResourceBundle.
+
See Also:
+
LocalizationService.getBundle(java.lang.String, java.lang.String)
+
+ + + + + +
    +
  • +

    getBundle

    +
    public ResourceBundle getBundle(HttpServletRequest req)
    +
    This method returns a ResourceBundle given the Locale information supplied in the HTTP "Accept-Language" header which - is stored in HttpServletRequest. -

    -

    -
    Specified by:
    getBundle in interface LocalizationService
    -
    -
    -
    Parameters:
    req - HttpServletRequest. -
    Returns:
    A localized ResourceBundle.
    -
    - -
    - -

    -getBundle

    -
    -public ResourceBundle getBundle(String bundleName,
    -                                javax.servlet.http.HttpServletRequest req)
    -
    -
    This method returns a ResourceBundle given the bundle name and + is stored in HttpServletRequest.
    +
    +
    Specified by:
    +
    getBundle in interface LocalizationService
    +
    Parameters:
    +
    req - HttpServletRequest.
    +
    Returns:
    +
    A localized ResourceBundle.
    +
    +
  • +
+ + + + + + + + + + + +
    +
  • +

    getLocale

    +
    public Locale getLocale(String header)
    +
    Description copied from interface: LocalizationService
    +
    Parses the Accept-Language header and attempts to + create a Locale from it.
    +
    +
    Specified by:
    +
    getLocale in interface LocalizationService
    +
    Parameters:
    +
    header - The language header (i.e. en, es;q=0.8, + zh-TW;q=0.1), or null for the locale + corresponding to the default language and country.
    +
    Returns:
    +
    The parsed locale, or a locale corresponding to the + language and country defaults.
    +
    +
  • +
+ + + + + + -
- - - - - - - - - - - - - - - - - - -
- -
- + + +
+ + +
+ + + - -
-Copyright © 2005-2009 The Apache Software Foundation. All Rights Reserved. - - +

Copyright © 2005–2019 The Apache Software Foundation. All rights reserved.

+ + \ No newline at end of file