public class InetAddressEditor
extends java.beans.PropertyEditorSupport
PropertyEditor
which converts Strings into
InetAddress
objects. This may be used together with Spring to be able
to set InetAddress
bean properties, e.g.
BlacklistFilter.setBlacklist(InetAddress[])
.
Simply calls InetAddress.getByName(java.lang.String)
when
converting from a String.
Use Spring's CustomEditorConfigurer to use this property editor in a Spring configuration file. See chapter 3.14 of the Spring Reference Documentation for more info.
InetAddress
构造器和说明 |
---|
InetAddressEditor() |
限定符和类型 | 方法和说明 |
---|---|
void |
setAsText(java.lang.String text) |