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

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

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

Converts a String into a URI.


Constructor Summary
TypeConverters.UriConverter()
           
 
Method Summary
 URI 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.UriConverter

public TypeConverters.UriConverter()
Method Detail

convert

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

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


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.