|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.beans.PropertyEditorSupport
org.apache.mina.integration.spring.InetAddressEditor
public class InetAddressEditor
Java Bean PropertyEditor
which converts Strings into
InetAddress
objects. This may be used together with Spring to be able
to set InetAddress
bean properties, e.g.
org.apache.mina.filter.BlacklistFilter#setBlacklist(InetAddress[])
.
Simply calls InetAddress.getByName(java.lang.String)
when
converting from a String.
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.
InetAddress
Constructor Summary | |
---|---|
InetAddressEditor()
|
Method Summary | |
---|---|
void |
setAsText(java.lang.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 |
---|
public InetAddressEditor()
Method Detail |
---|
public void setAsText(java.lang.String text) throws java.lang.IllegalArgumentException
setAsText
in interface java.beans.PropertyEditor
setAsText
in class java.beans.PropertyEditorSupport
java.lang.IllegalArgumentException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |