Class InetSocketAddressEditor
- java.lang.Object
-
- java.beans.PropertyEditorSupport
-
- org.apache.mina.integration.beans.AbstractPropertyEditor
-
- org.apache.mina.integration.beans.InetSocketAddressEditor
-
- All Implemented Interfaces:
PropertyEditor
public class InetSocketAddressEditor extends AbstractPropertyEditor
APropertyEditor
which converts aString
into anInetSocketAddress
. 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
.- Author:
- Apache MINA Project
- See Also:
InetSocketAddress
-
-
Constructor Summary
Constructors Constructor Description InetSocketAddressEditor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
defaultText()
protected Object
defaultValue()
protected String
toText(Object value)
Returns a String representation of the given valueprotected Object
toValue(String text)
Returns an instance from a String representation of an object-
Methods inherited from class org.apache.mina.integration.beans.AbstractPropertyEditor
getAsText, getValue, setAsText, setTrimText, setValue
-
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, isPaintable, paintValue, removePropertyChangeListener, setSource, supportsCustomEditor
-
-
-
-
Method Detail
-
toText
protected String toText(Object value)
Description copied from class:AbstractPropertyEditor
Returns a String representation of the given value- Specified by:
toText
in classAbstractPropertyEditor
- Parameters:
value
- The value- Returns:
- A String representation of the value
-
toValue
protected Object toValue(String text) throws IllegalArgumentException
Description copied from class:AbstractPropertyEditor
Returns an instance from a String representation of an object- Specified by:
toValue
in classAbstractPropertyEditor
- Parameters:
text
- The String representation to convert- Returns:
- A instance of an object
- Throws:
IllegalArgumentException
-
defaultText
protected String defaultText()
- Overrides:
defaultText
in classAbstractPropertyEditor
- Returns:
- The default text
-
defaultValue
protected Object defaultValue()
- Overrides:
defaultValue
in classAbstractPropertyEditor
- Returns:
- The default value
-
-