org.apache.mina.integration.beans
Class InetSocketAddressEditor
java.lang.Object
java.beans.PropertyEditorSupport
org.apache.mina.integration.beans.AbstractPropertyEditor
org.apache.mina.integration.beans.InetSocketAddressEditor
- All Implemented Interfaces:
- java.beans.PropertyEditor
public class InetSocketAddressEditor
- extends AbstractPropertyEditor
A PropertyEditor
which converts a String
into an
InetSocketAddress
. 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
Method Summary |
protected java.lang.String |
defaultText()
|
protected java.lang.Object |
defaultValue()
|
protected java.lang.String |
toText(java.lang.Object value)
|
protected java.lang.Object |
toValue(java.lang.String text)
|
Methods inherited from class java.beans.PropertyEditorSupport |
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, isPaintable, paintValue, removePropertyChangeListener, setSource, supportsCustomEditor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InetSocketAddressEditor
public InetSocketAddressEditor()
toText
protected java.lang.String toText(java.lang.Object value)
- Specified by:
toText
in class AbstractPropertyEditor
toValue
protected java.lang.Object toValue(java.lang.String text)
throws java.lang.IllegalArgumentException
- Specified by:
toValue
in class AbstractPropertyEditor
- Throws:
java.lang.IllegalArgumentException
defaultText
protected java.lang.String defaultText()
- Overrides:
defaultText
in class AbstractPropertyEditor
defaultValue
protected java.lang.Object defaultValue()
- Overrides:
defaultValue
in class AbstractPropertyEditor
Copyright © 2004-2011 Apache MINA Project. All Rights Reserved.