Class InetSocketAddressEditor
java.lang.Object
java.beans.PropertyEditorSupport
org.apache.mina.integration.spring.InetSocketAddressEditor
- All Implemented Interfaces:
PropertyEditor
Java Bean
PropertyEditor
which converts Strings into
InetSocketAddress
objects. Valid values include a hostname or ip
address and a port number separated by a ':'. If the hostname or ip address
is omitted the wildcard address will be used. E.g.:
google.com:80
, :22
, 192.168.0.1:110
.
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
-
InetSocketAddressEditor
public InetSocketAddressEditor()
-
-
Method Details
-
setAsText
- Specified by:
setAsText
in interfacePropertyEditor
- Overrides:
setAsText
in classPropertyEditorSupport
- Throws:
IllegalArgumentException
-