Changeset 3434


Ignore:
Timestamp:
04/28/2009 03:46:42 PM (6 years ago)
Author:
mosipov
Message:

Improved JavaDocs

Location:
FCKeditor.Java/trunk/java-core/src/main/java/net/fckeditor/localization
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • FCKeditor.Java/trunk/java-core/src/main/java/net/fckeditor/localization/LocaleResolver.java

    r2868 r3434  
    3535 
    3636        /** 
     37         * Returns the locale of a give request. 
    3738         *  
    3839         * @param request 
    39          *            The current request instance. 
    40          * @return The locale of the user or <code>null</code> if the locale 
    41          *         cannot be resolved. 
     40         *            the current request instance 
     41         * @return the locale of the request, <code>null</code> if the locale 
     42         *         couldn't be resolved 
    4243         */ 
    4344        public Locale resolveLocale(final HttpServletRequest request); 
  • FCKeditor.Java/trunk/java-core/src/main/java/net/fckeditor/localization/impl/AcceptLanguageHeaderResolver.java

    r2868 r3434  
    3030 
    3131/** 
    32  * This implementation simply returns the user locale with 
    33  * {@link ServletRequest#getLocale()} but it has an advantage over the named 
    34  * method. If the <code>Accept-Language</code> header is empty, the default 
    35  * server locale will be returned. This behavior is undesired and can lead to 
    36  * wrong localized messages. Instead, this implementation will only return the 
    37  * locale if the header is not empty. 
     32 * Resolves the current user locale by calling 
     33 * {@link ServletRequest#getLocale()}. This method is somewhat superior to the 
     34 * <code>getLocale</code> method because it returns a locale if and only if the 
     35 * <code>Accept-Language</code> header is not empty. 
    3836 *  
    3937 * @version $Id$ 
     
    4240public class AcceptLanguageHeaderResolver implements LocaleResolver { 
    4341 
    44         /* 
    45          * (non-Javadoc) 
    46          *  
    47          * @see net.fckeditor.localization.LocaleResolver#resolveLocale(javax.servlet.http.HttpServletRequest) 
    48          */ 
    4942        public Locale resolveLocale(final HttpServletRequest request) { 
    5043 
  • FCKeditor.Java/trunk/java-core/src/main/java/net/fckeditor/localization/impl/JstlResolver.java

    r2868 r3434  
    2929 
    3030/** 
    31  * This implementation maps directly to the JSTL locale mechanism. This is 
     31 * Resolves the current user locale against JSTL/FMT session locale. This is 
    3232 * recommended for those who use FMT tags for example. 
    3333 *  
     
    4141        } 
    4242 
    43         /* 
    44          * (non-Javadoc) 
    45          * @see net.fckeditor.localization.LocaleResolver#resolveLocale(javax.servlet.http.HttpServletRequest) 
    46          */ 
    4743        public Locale resolveLocale(final HttpServletRequest request) { 
    4844 
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy