@Override public <Type> Type getProperty(GuacamoleProperty<Type> property, Type defaultValue) throws GuacamoleException { Type value = getProperty(property); if (value == null) return defaultValue; return value; }
@Override public GuacamoleProxyConfiguration getDefaultGuacamoleProxyConfiguration() throws GuacamoleException { // Parse guacd hostname/port/ssl properties return new GuacamoleProxyConfiguration( getProperty(Environment.GUACD_HOSTNAME, DEFAULT_GUACD_HOSTNAME), getProperty(Environment.GUACD_PORT, DEFAULT_GUACD_PORT), getProperty(Environment.GUACD_SSL, DEFAULT_GUACD_SSL) ); }
@Override public <Type> Type getRequiredProperty(GuacamoleProperty<Type> property) throws GuacamoleException { Type value = getProperty(property); if (value == null) throw new GuacamoleServerException("Property " + property.getName() + " is required."); return value; }