Class 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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String defaultText()  
      protected java.lang.Object defaultValue()  
      protected java.lang.String toText​(java.lang.Object value)
      Returns a String representation of the given value
      protected java.lang.Object toValue​(java.lang.String text)
      Returns an instance from a String representation of an object
      • 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
    • Constructor Detail

      • InetSocketAddressEditor

        public InetSocketAddressEditor()
    • Method Detail

      • toText

        protected java.lang.String toText​(java.lang.Object value)
        Description copied from class: AbstractPropertyEditor
        Returns a String representation of the given value
        Specified by:
        toText in class AbstractPropertyEditor
        Parameters:
        value - The value
        Returns:
        A String representation of the value
      • toValue

        protected java.lang.Object toValue​(java.lang.String text)
                                    throws java.lang.IllegalArgumentException
        Description copied from class: AbstractPropertyEditor
        Returns an instance from a String representation of an object
        Specified by:
        toValue in class AbstractPropertyEditor
        Parameters:
        text - The String representation to convert
        Returns:
        A instance of an object
        Throws:
        java.lang.IllegalArgumentException