use of org.apache.wicket.protocol.http.WebRequestCycle 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