本文整理了Java中javax.servlet.http.HttpServletRequestWrapper.getLocale()
方法的一些代码示例,展示了HttpServletRequestWrapper.getLocale()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HttpServletRequestWrapper.getLocale()
方法的具体详情如下:
包路径:javax.servlet.http.HttpServletRequestWrapper
类名称:HttpServletRequestWrapper
方法名:getLocale
暂无
代码示例来源:origin: cloudfoundry/uaa
@Override
public Locale getLocale() {
return super.getLocale();
}
代码示例来源:origin: com.atlassian.jira/jira-core
@Override
public Locale getLocale()
{
Locale locale = super.getLocale();
return locale;
}
代码示例来源:origin: appfuse/appfuse
/**
* {@inheritDoc}
*/
public Locale getLocale() {
if (null != preferredLocale) {
return preferredLocale;
} else {
return super.getLocale();
}
}
代码示例来源:origin: com.github.wuic/wuic-servlet
/**
* {@inheritDoc}
*/
@Override
public Locale getLocale() {
// Synchronized access
synchronized (mutex) {
return super.getLocale();
}
}
代码示例来源:origin: org.onehippo.cms7.hst.components/hst-core
@Override
public Locale getLocale() {
Locale preferredLocale = requestContext.getPreferredLocale();
if (preferredLocale == null) {
preferredLocale = super.getLocale();
}
return preferredLocale;
}
代码示例来源:origin: Jasig/uPortal
@Override
public Locale getLocale() {
this.checkState();
return super.getLocale();
}
代码示例来源:origin: org.jasig.portal/uPortal-rendering
@Override
public Locale getLocale() {
this.checkState();
return super.getLocale();
}
代码示例来源:origin: org.apache.wink/wink-server
@Override
public Locale getLocale() {
return getCorrectRequest().getLocale();
}
代码示例来源:origin: com.haulmont.cuba/cuba-web-auth
@Override
public Locale getLocale() {
if (principal.getLocale() != null) {
return principal.getLocale();
}
return super.getLocale();
}
}
代码示例来源:origin: org.apache.juneau/juneau-server
@Override /* ServletRequest */
public Locale getLocale() {
String h = getOverriddenHeader("Accept-Language");
if (h != null) {
MediaRange[] mr = MediaRange.parse(h);
if (mr.length > 0)
return toLocale(mr[0].getType());
}
return super.getLocale();
}
代码示例来源:origin: apache/juneau
@Override /* ServletRequest */
public Locale getLocale() {
String h = headers.getString("Accept-Language");
if (h != null) {
MediaTypeRange[] mr = MediaTypeRange.parse(h);
if (mr.length > 0)
return toLocale(mr[0].getMediaType().getType());
}
return super.getLocale();
}
代码示例来源:origin: apache/juneau
@Override /* ServletRequest */
public Locale getLocale() {
String h = headers.getString("Accept-Language");
if (h != null) {
MediaTypeRange[] mr = MediaTypeRange.parse(h);
if (mr.length > 0)
return toLocale(mr[0].getMediaType().getType());
}
return super.getLocale();
}
代码示例来源:origin: org.apache.juneau/juneau-rest-server
@Override /* ServletRequest */
public Locale getLocale() {
String h = headers.getString("Accept-Language");
if (h != null) {
MediaTypeRange[] mr = MediaTypeRange.parse(h);
if (mr.length > 0)
return toLocale(mr[0].getMediaType().getType());
}
return super.getLocale();
}
内容来源于网络,如有侵权,请联系作者删除!