org.apache.logging.log4j.core.config.plugins.convert
Class TypeConverters.UrlConverter

java.lang.Object
  extended by org.apache.logging.log4j.core.config.plugins.convert.TypeConverters.UrlConverter
All Implemented Interfaces:
TypeConverter<URL>
Enclosing class:
TypeConverters

@Plugin(name="URL",
        category="TypeConverter")
public static class TypeConverters.UrlConverter
extends Object
implements TypeConverter<URL>

Converts a String into a URL.


Constructor Summary
TypeConverters.UrlConverter()
           
 
Method Summary
 URL convert(String s)
          Converts a String to a given type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeConverters.UrlConverter

public TypeConverters.UrlConverter()
Method Detail

convert

public URL convert(String s)
            throws MalformedURLException
Description copied from interface: TypeConverter
Converts a String to a given type.

Specified by:
convert in interface TypeConverter<URL>
Parameters:
s - the String to convert. Cannot be null.
Returns:
the converted object.
Throws:
MalformedURLException


Copyright © 1999-2014 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.