Example usage for org.springframework.web.servlet.i18n LocaleChangeInterceptor getParamName

List of usage examples for org.springframework.web.servlet.i18n LocaleChangeInterceptor getParamName

Introduction

In this page you can find the example usage for org.springframework.web.servlet.i18n LocaleChangeInterceptor getParamName.

Prototype

public String getParamName() 

Source Link

Document

Return the name of the parameter that contains a locale specification in a locale change request.

Usage

From source file:it.f2informatica.webapp.test.context.WebApplicationContextTest.java

@Test
public void localeChangeInterceptor() {
    LocaleChangeInterceptor localeChangeInterceptor = webApplicationConfig.localeChangeInterceptor();
    assertThat(localeChangeInterceptor.getParamName()).isEqualTo("siteLanguage");
}