@Override @Deprecated public void setTransientLang(Lang lang) { wrapped.setTransientLang(lang); }
@Override @Deprecated public void setTransientLang(Lang lang) { wrapped.setTransientLang(lang); }
@Override @Deprecated public void setTransientLang(String code) { wrapped.setTransientLang(code); }
/** * Set the language for the current request, but don't * change the language cookie. This means the language * will be set for this request, but will not change for * future requests. * * @param code the language code to set (e.g. "en-US") * @throws IllegalArgumentException If the given language * is not supported by the application. * * @deprecated Deprecated as of 2.7.0. <a href="https://www.playframework.com/documentation/latest/JavaHttpContextMigration27">See migration guide.</a>. */ @Deprecated public void setTransientLang(String code) { setTransientLang(Lang.forCode(code)); }
/** * Set the language for the current request, but don't * change the language cookie. This means the language * will be set for this request, but will not change for * future requests. * * @param code the language code to set (e.g. "en-US") * @throws IllegalArgumentException If the given language * is not supported by the application. * * @deprecated Deprecated as of 2.7.0. <a href="https://www.playframework.com/documentation/latest/JavaHttpContextMigration27">See migration guide.</a>. */ @Deprecated public void setTransientLang(String code) { setTransientLang(Lang.forCode(code)); }
/** * Set the language for the current request, but don't * change the language cookie. This means the language * will be set for this request, but will not change for * future requests. * * @param code the language code to set (e.g. "en-US") * @throws IllegalArgumentException If the given language * is not supported by the application. * * @deprecated Deprecated as of 2.7.0. <a href="https://www.playframework.com/documentation/latest/JavaHttpContextMigration27">See migration guide.</a>. */ @Deprecated public void setTransientLang(String code) { setTransientLang(Lang.forCode(code)); }
@Override @Deprecated public void setTransientLang(Lang lang) { wrapped.setTransientLang(lang); }
@Override @Deprecated public void setTransientLang(String code) { wrapped.setTransientLang(code); }
@Override @Deprecated public void setTransientLang(String code) { wrapped.setTransientLang(code); }
/** * Set the language for the current request, but don't * change the language cookie. This means the language * will be set for this request, but will not change for * future requests. * * @throws IllegalArgumentException If the given language * is not supported by the application. */ public void setTransientLang(String code) { setTransientLang(Lang.forCode(code)); }