<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<br>
<div class="moz-cite-prefix">On 11/4/15 12:56 PM, Cantor, Scott
wrote:<br>
</div>
<blockquote cite="mid:D6ED424F-2427-461C-B143-656C1A621CFD@osu.edu"
type="cite">
<pre wrap="">
I didn't realize it was stateful. The cookie or request header cases obviously would be there on every request, so I assumed the mechanism relied on that.
</pre>
</blockquote>
<blockquote cite="mid:D6ED424F-2427-461C-B143-656C1A621CFD@osu.edu"
type="cite">
</blockquote>
<br>
Actually, the LocaleResolver impls are not *required* to be
stateful. The request header one and the "fixed" one don't support
setting the locale (it's immutable obviously) and so they throw an
UnsupportedOperationException on setLocale(...). So those would not
be usable with the locale handler interceptor.<br>
<br>
<br>
Off-topic: they use the same methodolgy for their ThemeResolver and
associated handler interceptor to change the "current" theme.<br>
<br>
<br>
</body>
</html>