本文整理汇总了Java中org.apache.wicket.protocol.http.ClientProperties类的典型用法代码示例。如果您正苦于以下问题:Java ClientProperties类的具体用法?Java ClientProperties怎么用?Java ClientProperties使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ClientProperties类属于org.apache.wicket.protocol.http包,在下文中一共展示了ClientProperties类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: setClientCustomization
import org.apache.wicket.protocol.http.ClientProperties; //导入依赖的package包/类
public void setClientCustomization() {
MidPointPrincipal principal = SecurityUtils.getPrincipalUser();
if (principal == null) {
return;
}
//setting locale
setLocale(WebModelServiceUtils.getLocale());
LOGGER.debug("Using {} as locale", getLocale());
//set time zone
ClientProperties props = WebSession.get().getClientInfo().getProperties();
props.setTimeZone(WebModelServiceUtils.getTimezone());
LOGGER.debug("Using {} as time zone", props.getTimeZone());
}
开发者ID:Pardus-Engerek,项目名称:engerek,代码行数:17,代码来源:MidPointAuthWebSession.java
示例2: getFromClientProperties
import org.apache.wicket.protocol.http.ClientProperties; //导入依赖的package包/类
public static Browser getFromClientProperties(ClientProperties client) {
if (client.isBrowserChrome()) {
return Chrome;
} else if (client.isBrowserInternetExplorer()) {
return InternetExplorer;
} else if (client.isBrowserKonqueror()) {
return Konqueror;
} else if (client.isBrowserMozilla()) {
return Mozilla;
} else if (client.isBrowserMozillaFirefox()) {
return MozillaFirefox;
} else if (client.isBrowserOpera()) {
return Opera;
} else if (client.isBrowserSafari()) {
return Safari;
}
return Unknown;
}
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:19,代码来源:WebEnvironment.java
示例3: populateFromClientProperties
import org.apache.wicket.protocol.http.ClientProperties; //导入依赖的package包/类
private void populateFromClientProperties(ClientProperties props) {
setBrowser(Browser.getFromClientProperties(props));
setBrowserVersionMajor(props.getBrowserVersionMajor());
setBrowserVersionMinor(props.getBrowserVersionMinor());
setColorDepth(props.getScreenColorDepth());
setCookiesEnabled(props.isCookiesEnabled());
setHostname(props.getHostname());
setJavaEnabled(props.isJavaEnabled());
setNavigatorLanguage(props.getNavigatorLanguage());
setNavigatorPlatform(props.getNavigatorPlatform());
setNavigatorUserAgent(props.getNavigatorUserAgent());
setRemoteAddress(props.getRemoteAddress());
setScreenHeight(props.getScreenHeight());
setScreenWidth(props.getScreenWidth());
}
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:16,代码来源:WebEnvironment.java
示例4: WebEnvironment
import org.apache.wicket.protocol.http.ClientProperties; //导入依赖的package包/类
public WebEnvironment(ClientProperties props) {
populateFromClientProperties(props);
}
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:4,代码来源:WebEnvironment.java
示例5: fromClientProperties
import org.apache.wicket.protocol.http.ClientProperties; //导入依赖的package包/类
public static WebEnvironment fromClientProperties(ClientProperties properties) {
return new WebEnvironment(properties);
}
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:4,代码来源:WebEnvironment.java
示例6: getClientProperties
import org.apache.wicket.protocol.http.ClientProperties; //导入依赖的package包/类
/**
* @return the clientProperties
*/
public ClientProperties getClientProperties()
{
return clientProperties;
}
开发者ID:micromata,项目名称:projectforge-webapp,代码行数:8,代码来源:MySession.java
注:本文中的org.apache.wicket.protocol.http.ClientProperties类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论