Class URLConverter

java.lang.Object
org.nuiton.converter.URLConverter
All Implemented Interfaces:
org.apache.commons.beanutils.Converter, NuitonConverter<URL>

public class URLConverter extends Object implements NuitonConverter<URL>
To convert URL from and to String.
Since:
1.0
Author:
Tony Chemit - chemit@codelutin.com
  • Constructor Details

    • URLConverter

      public URLConverter()
  • Method Details

    • convert

      public <T> T convert(Class<T> aClass, Object value)
      Specified by:
      convert in interface org.apache.commons.beanutils.Converter
    • valueOf

      protected URL valueOf(String value)
    • isEnabled

      protected boolean isEnabled(Class<?> aClass)
    • getType

      public Class<URL> getType()
      Specified by:
      getType in interface NuitonConverter<URL>
      Returns:
      the main type of the converter.