Class InetAddressEditor
java.lang.Object
java.beans.PropertyEditorSupport
org.apache.mina.integration.spring.InetAddressEditor
- All Implemented Interfaces:
PropertyEditor
Java Bean
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.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getAsText, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
-
Constructor Details
-
InetAddressEditor
public InetAddressEditor()
-
-
Method Details
-
setAsText
- Specified by:
setAsTextin interfacePropertyEditor- Overrides:
setAsTextin classPropertyEditorSupport- Throws:
IllegalArgumentException
-