PropertyEditor
public class InetSocketAddressEditor extends AbstractPropertyEditor
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
.InetSocketAddress
Constructor | Description |
---|---|
InetSocketAddressEditor() |
Modifier and Type | Method | Description |
---|---|---|
protected String |
defaultText() |
|
protected Object |
defaultValue() |
|
protected String |
toText(Object value) |
|
protected Object |
toValue(String text) |
getAsText, getValue, setAsText, setTrimText, setValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, isPaintable, paintValue, removePropertyChangeListener, setSource, supportsCustomEditor
protected String toText(Object value)
toText
in class AbstractPropertyEditor
protected Object toValue(String text) throws IllegalArgumentException
toValue
in class AbstractPropertyEditor
IllegalArgumentException
protected String defaultText()
defaultText
in class AbstractPropertyEditor
protected Object defaultValue()
defaultValue
in class AbstractPropertyEditor
Copyright © 2004–2018 Apache MINA Project. All rights reserved.