/** * @deprecated Deprecated as of 2.7.0. Inject {@link FileMimeTypes} instead. */ @Deprecated public FileMimeTypes fileMimeTypes() { return components.fileMimeTypes(); }
private Langs langs() { return components.langs(); }
private MessagesApi messagesApi() { return components.messagesApi(); }
private String sessionPath() { return components.httpConfiguration().context(); }
private String sessionPath() { return components.httpConfiguration().context(); }
private String sessionPath() { return components.httpConfiguration().context(); }
private Langs langs() { return components.langs(); }
/** * @deprecated Deprecated as of 2.7.0. Inject {@link FileMimeTypes} instead. */ @Deprecated public FileMimeTypes fileMimeTypes() { return components.fileMimeTypes(); }
private MessagesApi messagesApi() { return components.messagesApi(); }
private scala.Option<String> sessionDomain() { return components.httpConfiguration().session().domain(); }
private Langs langs() { return components.langs(); }
/** * @deprecated Deprecated as of 2.7.0. Inject {@link FileMimeTypes} instead. */ @Deprecated public FileMimeTypes fileMimeTypes() { return components.fileMimeTypes(); }
private MessagesApi messagesApi() { return components.messagesApi(); }
private scala.Option<String> sessionDomain() { return components.httpConfiguration().session().domain(); }
/** * 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 lang the language to set * @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(Lang lang) { final Langs langs = components.langs(); if (langs.availables().contains(lang)) { this.lang = lang; } else { throw new IllegalArgumentException("Language not supported in this application: " + lang + " not in " + langs.availables()); } }
private scala.Option<String> sessionDomain() { return components.httpConfiguration().session().domain(); }
/** * 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 lang the language to set * @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(Lang lang) { final Langs langs = components.langs(); if (langs.availables().contains(lang)) { this.lang = lang; } else { throw new IllegalArgumentException("Language not supported in this application: " + lang + " not in " + langs.availables()); } }
/** * 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 lang the language to set * @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(Lang lang) { final Langs langs = components.langs(); if (langs.availables().contains(lang)) { this.lang = lang; } else { throw new IllegalArgumentException("Language not supported in this application: " + lang + " not in " + langs.availables()); } }