view artifacts/src/main/java/de/intevation/artifacts/CallMeta.java @ 78:55eefe63a777

Repaired the javadoc stuff for almost all artifact interfaces. artifacts/trunk@760 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Thu, 11 Mar 2010 10:53:59 +0000
parents 48d1a9a082c2
children 933bbc9fc11f
line wrap: on
line source
package de.intevation.artifacts;

import java.util.Locale;

/**
 * Interface to inject meta data like languages to CallContexts.
 *
 * @author <a href="mailto:sascha.teichmann@intevation.de">Sascha L. Teichmann</a>
 */
public interface CallMeta
{
    /**
     * Returns a list of the languages the calling client is willing to accept.
     * @return the list.
     */
    PreferredLocale [] getLanguages();

    /**
     * Intersects the list of preferred client languages with a server
     * given list and returns the one which is best fitting.
     * @param locales The list of languages the server provides.
     * @return The best fitting language.
     */
    Locale getPreferredLocale(Locale [] locales);
}
// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org