/** * Gets the new agent info object for this session. This method calls * {@link Session#getClientInfo()}, which may or may not cache the client info object and * typically calls {@link #newClientInfo()} when no client info object was cached. * * @return the agent info object based on this request */ public final ClientInfo getClientInfo() { return getSession().getClientInfo(); }
/** * Gets the new agent info object for this session. This method calls * {@link Session#getClientInfo()}, which may or may not cache the client info object and * typically calls {@link #newClientInfo()} when no client info object was cached. * * @return the agent info object based on this request */ public final ClientInfo getClientInfo() { return getSession().getClientInfo(); }
public static WebClientInfo getClientInfo() { return (WebClientInfo) Session.get().getClientInfo(); }
public LayoutPage(PageParameters params) { super(params); clientProperties = ((WebClientInfo)getSession().getClientInfo()).getProperties(); }
/** * Gets the client's time zone. * * @return The client's time zone or null */ protected TimeZone getClientTimeZone() { ClientInfo info = Session.get().getClientInfo(); if (info instanceof WebClientInfo) { return ((WebClientInfo)info).getProperties().getTimeZone(); } return null; }
/** * Gets the client's time zone. * * @return The client's time zone or null */ protected TimeZone getClientTimeZone() { ClientInfo info = Session.get().getClientInfo(); if (info instanceof WebClientInfo) { return ((WebClientInfo)info).getProperties().getTimeZone(); } return null; }
/** * What is the {@link ZoneId} of the client. * * @see RequestCycleSettings#getGatherExtendedBrowserInfo() * @see ZoneId#systemDefault() */ protected ZoneId getClientTimeZone() { ClientInfo info = Session.get().getClientInfo(); if (info instanceof WebClientInfo) { TimeZone timeZone = ((WebClientInfo)info).getProperties().getTimeZone(); return timeZone != null ? timeZone.toZoneId() : null; } return ZoneId.systemDefault(); }
/** * Gets the client's time zone. * * @return The client's time zone or null */ protected TimeZone getClientTimeZone() { ClientInfo info = Session.get().getClientInfo(); if (info instanceof WebClientInfo) { return ((WebClientInfo)info).getProperties().getTimeZone(); } return null; }
/** * Gets the client's time zone. * * @return The client's time zone or null */ protected TimeZone getClientTimeZone() { ClientInfo info = Session.get().getClientInfo(); if (info instanceof WebClientInfo) { return ((WebClientInfo)info).getProperties().getTimeZone(); } return null; }
ClientInfo ci = WebSession.get().getClientInfo(); if (ci instanceof WebClientInfo) { ClientProperties properties = ((WebClientInfo)ci).getProperties();