org.apache.mina.integration.spring
Class InetSocketAddressEditor

java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by org.apache.mina.integration.spring.InetSocketAddressEditor
All Implemented Interfaces:
PropertyEditor

public class InetSocketAddressEditor
extends PropertyEditorSupport

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.

Version:
$Revision: 451854 $, $Date: 2006-10-02 11:30:11 +0900 (월, 02 10월 2006) $
Author:
The Apache Directory Project (mina-dev@directory.apache.org)
See Also:
InetSocketAddress

Constructor Summary
InetSocketAddressEditor()
           
 
Method Summary
 void setAsText(String text)
           
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getAsText, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, 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

setAsText

public void setAsText(String text)
               throws IllegalArgumentException
Specified by:
setAsText in interface PropertyEditor
Overrides:
setAsText in class PropertyEditorSupport
Throws:
IllegalArgumentException