Search in sources :

Example 1 with ClientInfo

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);
}
Also used : WebRequestCycle(org.apache.wicket.protocol.http.WebRequestCycle) WebClientInfo(org.apache.wicket.protocol.http.request.WebClientInfo) WebClientInfo(org.apache.wicket.protocol.http.request.WebClientInfo) ClientInfo(org.apache.wicket.request.ClientInfo)

Aggregations

WebRequestCycle (org.apache.wicket.protocol.http.WebRequestCycle)1 WebClientInfo (org.apache.wicket.protocol.http.request.WebClientInfo)1 ClientInfo (org.apache.wicket.request.ClientInfo)1