public Object convert(Object obj, Class<?> propertyFieldType, String propertyName, String propertyValue, boolean check_scope) throws Exception { // get the existing bind address - possibly null InetAddress old_bind_addr = (InetAddress)Configurator.getValueFromProtocol((Protocol)obj, "bind_addr"); // apply a bind interface constraint InetAddress new_bind_addr = Util.validateBindAddressFromInterface(old_bind_addr, propertyValue); if (new_bind_addr != null) setBindAddress((Protocol)obj, new_bind_addr) ; // if no bind_interface specified, set it to the empty string to avoid exception return propertyValue != null? propertyValue : ""; }
public Object convert(Object obj, Class<?> propertyFieldType, String propertyName, String propertyValue, boolean check_scope) throws Exception { // get the existing bind address - possibly null InetAddress old_bind_addr = (InetAddress)Configurator.getValueFromProtocol((Protocol)obj, "bind_addr"); // apply a bind interface constraint InetAddress new_bind_addr = Util.validateBindAddressFromInterface(old_bind_addr, propertyValue); if (new_bind_addr != null) setBindAddress((Protocol)obj, new_bind_addr) ; // if no bind_interface specified, set it to the empty string to avoid exception return propertyValue != null? propertyValue : ""; }
public Object convert(Object obj, Class<?> propertyFieldType, String propertyName, String propertyValue, boolean check_scope) throws Exception { // get the existing bind address - possibly null InetAddress old_bind_addr = (InetAddress)Configurator.getValueFromProtocol((Protocol)obj, "bind_addr"); // apply a bind interface constraint InetAddress new_bind_addr = Util.validateBindAddressFromInterface(old_bind_addr, propertyValue); if (new_bind_addr != null) setBindAddress((Protocol)obj, new_bind_addr) ; // if no bind_interface specified, set it to the empty string to avoid exception return propertyValue != null? propertyValue : ""; }