Mercurial > dive4elements > framework
view artifacts/src/main/java/de/intevation/artifacts/CallMeta.java @ 98:a24ab98f858d 1.0
ChangeLog: Tagging version 1.0; explaining the reason for 1.0
artifacts/trunk@1033 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Hans Plum <hans.plum@intevation.de> |
---|---|
date | Wed, 28 Apr 2010 20:14:05 +0000 |
parents | 55eefe63a777 |
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 :