use of org.apache.wicket.request.ClientInfo in project gitblit by gitblit.
the class ObjectContainer method getClientProperties.
// shortcut to the client properties:
protected ClientProperties getClientProperties() {
if (clientProperties == null) {
ClientInfo clientInfo = WebSession.get().getClientInfo();
if (clientInfo == null || !(clientInfo instanceof WebClientInfo)) {
clientInfo = new WebClientInfo((WebRequestCycle) getRequestCycle());
WebSession.get().setClientInfo(clientInfo);
}
clientProperties = ((WebClientInfo) clientInfo).getProperties();
}
return (clientProperties);
}
Aggregations